本文整理汇总了Java中com.sun.tools.internal.ws.wscompile.AbortException类的典型用法代码示例。如果您正苦于以下问题:Java AbortException类的具体用法?Java AbortException怎么用?Java AbortException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbortException类属于com.sun.tools.internal.ws.wscompile包,在下文中一共展示了AbortException类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: addBodyBlock
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
public void addBodyBlock(Block b) {
if (_bodyBlocks.containsKey(b.getName())) {
errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName()));
throw new AbortException();
}
_bodyBlocks.put(b.getName(), b);
b.setLocation(Block.BODY);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:Message.java
示例2: addHeaderBlock
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
public void addHeaderBlock(Block b) {
if (_headerBlocks.containsKey(b.getName())) {
errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName()));
throw new AbortException();
}
_headerBlocks.put(b.getName(), b);
b.setLocation(Block.HEADER);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:Message.java
示例3: addAttachmentBlock
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
/** attachment block */
public void addAttachmentBlock(Block b) {
if (_attachmentBlocks.containsKey(b.getName())) {
errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName()));
throw new AbortException();
}
_attachmentBlocks.put(b.getName(), b);
b.setLocation(Block.ATTACHMENT);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:Message.java
示例4: addParameter
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
public void addParameter(Parameter p) {
if (_parametersByName.containsKey(p.getName())) {
errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(p.getName(), p.getName()));
throw new AbortException();
}
_parameters.add(p);
String name = p.getCustomName() != null ? p.getCustomName() : p.getName();
_parametersByName.put(name, p);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:Message.java
示例5: initializeParametersByName
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
private void initializeParametersByName() {
_parametersByName = new HashMap();
if (_parameters != null) {
for (Iterator iter = _parameters.iterator(); iter.hasNext();) {
Parameter param = (Parameter) iter.next();
if (param.getName() != null &&
_parametersByName.containsKey(param.getName())) {
errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getName()));
throw new AbortException();
}
_parametersByName.put(param.getName(), param);
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:Message.java
示例6: processError
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
@Override
public void processError(String message) {
if (isCommandLineInvocation) {
processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, message);
throw new AbortException();
} else {
throw new ModelerException(message);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:WebServiceAp.java
示例7: createRpcLitParameters
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
public static List<Parameter> createRpcLitParameters(Message message, Block block, S2JJAXBModel jaxbModel, ErrorReceiverFilter errReceiver){
RpcLitStructure rpcStruct = (RpcLitStructure)block.getType();
List<Parameter> parameters = new ArrayList<Parameter>();
for(MessagePart part : message.getParts()){
if(!ModelerUtils.isBoundToSOAPBody(part))
continue;
QName name = part.getDescriptor();
TypeAndAnnotation typeAndAnn = jaxbModel.getJavaType(name);
if(typeAndAnn == null){
String msgQName = "{"+message.getDefining().getTargetNamespaceURI()+"}"+message.getName();
errReceiver.error(part.getLocator(), ModelerMessages.WSDLMODELER_RPCLIT_UNKOWNSCHEMATYPE(name.toString(),
part.getName(), msgQName));
throw new AbortException();
}
String type = typeAndAnn.getTypeClass().fullName();
type = ClassNameInfo.getGenericClass(type);
RpcLitMember param = new RpcLitMember(new QName("", part.getName()), type);
JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAndAnn));
param.setJavaType(javaType);
rpcStruct.addRpcLitMember(param);
Parameter parameter = ModelerUtils.createParameter(part.getName(), param, block);
parameter.setEmbedded(true);
parameters.add(parameter);
}
return parameters;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:ModelerUtils.java
示例8: error
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
protected void error(Entity entity, String message){
if (entity == null) {
errReceiver.error(null, message);
} else {
errReceiver.error(entity.getLocator(), message);
}
throw new AbortException();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:WSDLModelerBase.java
示例9: bind
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
protected void bind(){
S2JJAXBModel rawJaxbModel = schemaCompiler.bind();
if(rawJaxbModel == null)
throw new AbortException();
options.setCodeModel(rawJaxbModel.generateCode(null, errReceiver));
jaxbModel = new JAXBModel(rawJaxbModel);
jaxbModel.setGeneratedClassNames(_classNameAllocator.getJaxbGeneratedClasses());
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:JAXBModelBuilder.java
示例10: add
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
public void add(MessagePart part) {
if (_partsByName.get(part.getName()) != null){
errorReceiver.error(part.getLocator(), WsdlMessages.VALIDATION_DUPLICATE_PART_NAME(getName(), part.getName()));
throw new AbortException();
}
if(part.getDescriptor() != null && part.getDescriptorKind() != null) {
_partsByName.put(part.getName(), part);
_parts.add(part);
} else
errorReceiver.warning(part.getLocator(), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(part.getName()));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:Message.java
示例11: resolveBinding
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
public Binding resolveBinding(AbstractDocument document) {
try{
return (Binding) document.find(Kinds.BINDING, _binding);
} catch (NoSuchEntityException e) {
errorReceiver.error(getLocator(), WsdlMessages.ENTITY_NOT_FOUND_BINDING(_binding, new QName(getNamespaceURI(), getName())));
throw new AbortException();
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:Port.java
示例12: resolvePortType
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
public PortType resolvePortType(AbstractDocument document) {
try {
return (PortType) document.find(Kinds.PORT_TYPE, _portType);
} catch (NoSuchEntityException e) {
errorReceiver.error(getLocator(), WsdlMessages.ENTITY_NOT_FOUND_PORT_TYPE(_portType, new QName(getNamespaceURI(), getName())));
throw new AbortException();
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:Binding.java
示例13: define
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
public void define(GloballyKnown e) {
Map map = getMap(e.getKind());
if (e.getName() == null)
return;
QName name =
new QName(e.getDefining().getTargetNamespaceURI(), e.getName());
if (map.containsKey(name)){
errReceiver.error(e.getLocator(), WsdlMessages.ENTITY_DUPLICATE_WITH_TYPE(e.getElementName().getLocalPart(), e.getName()));
throw new AbortException();
}else{
map.put(name, e);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:AbstractDocument.java
示例14: find
import com.sun.tools.internal.ws.wscompile.AbortException; //导入依赖的package包/类
public GloballyKnown find(Kind k, QName name) {
Map map = getMap(k);
Object result = map.get(name);
if (result == null){
errReceiver.error(null, WsdlMessages.ENTITY_NOT_FOUND_BY_Q_NAME(k.getName(), name, _systemId));
throw new AbortException();
}
return (GloballyKnown) result;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:AbstractDocument.java
注:本文中的com.sun.tools.internal.ws.wscompile.AbortException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论