public Parameter(String name, Entity entity) { super(entity); this.name = name; if(entity instanceof com.sun.tools.ws.wsdl.document.Message){ this.entityName = ((com.sun.tools.ws.wsdl.document.Message)entity).getName(); }else if(entity instanceof MessagePart){ this.entityName = ((MessagePart)entity).getName(); }else{ this.entityName = name; } }
public Parameter(String name, Entity entity) { super(entity); this.name = name; if(entity instanceof com.sun.tools.ws.wsdl.document.Message){ this.entityName = ((com.sun.tools.ws.wsdl.document.Message)entity).getName(); }else if(entity instanceof MessagePart){ this.entityName = ((MessagePart)entity).getName(); }else{ this.entityName = name; } }
public Parameter(String name, Entity entity) { super(entity); this.name = name; if(entity instanceof com.sun.tools.ws.wsdl.document.Message){ this.entityName = ((com.sun.tools.ws.wsdl.document.Message)entity).getName(); }else if(entity instanceof MessagePart){ this.entityName = ((MessagePart)entity).getName(); }else{ this.entityName = name; } }
public void validateThis() { if (getName() == null) { errorReceiver.error(getLocator(), WsdlMessages.VALIDATION_MISSING_REQUIRED_ATTRIBUTE("name", "wsdl:message")); throw new AbortException(); } }
public void validateThis() { if (getName() == null) { errorReceiver.error(getLocator(), WsdlMessages.VALIDATION_MISSING_REQUIRED_ATTRIBUTE("name", "wsdl:message")); throw new AbortException(); } }
public void addBodyBlock(Block b) { if (_bodyBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _bodyBlocks.put(b.getName(), b); b.setLocation(Block.BODY); }
/** attachment block */ public void addAttachmentBlock(Block b) { if (_attachmentBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _attachmentBlocks.put(b.getName(), b); b.setLocation(Block.ATTACHMENT); }
/** attachment block */ public void addAttachmentBlock(Block b) { if (_attachmentBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _attachmentBlocks.put(b.getName(), b); b.setLocation(Block.ATTACHMENT); }
public void addHeaderBlock(Block b) { if (_headerBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _headerBlocks.put(b.getName(), b); b.setLocation(Block.HEADER); }
/** attachment block */ public void addAttachmentBlock(Block b) { if (_attachmentBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _attachmentBlocks.put(b.getName(), b); b.setLocation(Block.ATTACHMENT); }
public void addHeaderBlock(Block b) { if (_headerBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _headerBlocks.put(b.getName(), b); b.setLocation(Block.HEADER); }
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())); }
public void addHeaderBlock(Block b) { if (_headerBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _headerBlocks.put(b.getName(), b); b.setLocation(Block.HEADER); }
public void addBodyBlock(Block b) { if (_bodyBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _bodyBlocks.put(b.getName(), b); b.setLocation(Block.BODY); }
public void addBodyBlock(Block b) { if (_bodyBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _bodyBlocks.put(b.getName(), b); b.setLocation(Block.BODY); }
public void addHeaderBlock(Block b) { if (_headerBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _headerBlocks.put(b.getName(), b); b.setLocation(Block.HEADER); }
public void addBodyBlock(Block b) { if (_bodyBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _bodyBlocks.put(b.getName(), b); b.setLocation(Block.BODY); }
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())); }
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())); }
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())); }