java abort_Java AbortException類代碼示例

本文整理匯總了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

​點讚 2

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,

示例2: addHeaderBlock

​點讚 2

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,

示例3: addAttachmentBlock

​點讚 2

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,

示例4: addParameter

​點讚 2

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,

示例5: initializeParametersByName

​點讚 2

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,

示例6: processError

​點讚 2

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,

示例7: createRpcLitParameters

​點讚 2

import com.sun.tools.internal.ws.wscompile.AbortException; //導入依賴的package包/類

public static List createRpcLitParameters(Message message, Block block, S2JJAXBModel jaxbModel, ErrorReceiverFilter errReceiver){

RpcLitStructure rpcStruct = (RpcLitStructure)block.getType();

List parameters = new ArrayList();

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,

示例8: error

​點讚 2

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,

示例9: bind

​點讚 2

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,

示例10: add

​點讚 2

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,

示例11: resolveBinding

​點讚 2

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,

示例12: resolvePortType

​點讚 2

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,

示例13: define

​點讚 2

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,

示例14: find

​點讚 2

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,

注:本文中的com.sun.tools.internal.ws.wscompile.AbortException類示例整理自Github/MSDocs等源碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值