public void validateThis() { if (getName() == null) { failValidation("validation.missingRequiredAttribute", "name"); } if (_portType == null) { failValidation("validation.missingRequiredAttribute", "type"); } }
public QName getWSDLElementName() { return getElementName(); }
context.push(); context.registerNamespaces(e); Binding binding = new Binding(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); binding.setName(name); String typeAttr = Util.getRequiredAttribute(e, Constants.ATTR_TYPE); binding.setPortType(context.translateQualifiedName(context.getLocation(e), typeAttr)); binding.setDocumentation(getDocumentationFor(e2)); } else if ( XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_OPERATION)) { BindingOperation op = parseBindingOperation(context, e2); binding.add(op); } else {
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(); } }
while (bindings.hasNext()) { Binding binding = (Binding) bindings.next(); if (bName.getLocalPart().equals(binding.getName()) && bName.getNamespaceURI().equals(binding.getNamespaceURI())) { List<TWSDLExtension> bindextends = (List<TWSDLExtension>) binding .extensions(); for (TWSDLExtension wsdlext : bindextends) { value = resolveBindingValue(wsdlext); if (b != null) { List<TWSDLExtension> bindextends = (List<TWSDLExtension>) b .extensions(); for (TWSDLExtension wsdlext : bindextends) { value = resolveBindingValue(wsdlext);
PortType portType = binding.resolvePortType(document); for (Iterator itr = binding.operations(); iter.hasNext(); ) { for (Iterator iter = binding.operations(); iter.hasNext();) { BindingOperation bindingOperation = (BindingOperation) iter.next(); if (operations.isEmpty()) { error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(bindingOperation.getName(), binding.getName())); } else if (operations.size() == 1) { portTypeOperation = error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(bindingOperation.getName(), binding.getName())); PortType pt = binding.resolvePortType(document); String jd = (pt.getDocumentation() != null) ? pt.getDocumentation().getContent() : null; port.getJavaInterface().setJavaDoc(jd); applyWrapperStyleCustomization(port, binding.resolvePortType(document));
public String getNamespaceURI() { return getDefining().getTargetNamespaceURI(); }
public String getNameValue() { return getName(); }
public void accept(WSDLDocumentVisitor visitor) throws Exception { visitor.preVisit(this); for (Iterator iter = _imports.iterator(); iter.hasNext();) { ((Import) iter.next()).accept(visitor); } if (_types != null) { _types.accept(visitor); } for (Iterator iter = _messages.iterator(); iter.hasNext();) { ((Message) iter.next()).accept(visitor); } for (Iterator iter = _portTypes.iterator(); iter.hasNext();) { ((PortType) iter.next()).accept(visitor); } for (Iterator iter = _bindings.iterator(); iter.hasNext();) { ((Binding) iter.next()).accept(visitor); } for (Iterator iter = _services.iterator(); iter.hasNext();) { ((Service) iter.next()).accept(visitor); } _helper.accept(visitor); visitor.postVisit(this); }
context.push(); context.registerNamespaces(e); Binding binding = new Binding(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); binding.setName(name); String typeAttr = Util.getRequiredAttribute(e, Constants.ATTR_TYPE); binding.setPortType(context.translateQualifiedName(context.getLocation(e), typeAttr)); binding.setDocumentation(getDocumentationFor(e2)); } else if ( XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_OPERATION)) { BindingOperation op = parseBindingOperation(context, e2); binding.add(op); } else {
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(); } }
while (bindings.hasNext()) { Binding binding = (Binding) bindings.next(); if (bName.getLocalPart().equals(binding.getName()) && bName.getNamespaceURI().equals(binding.getNamespaceURI())) { List<TWSDLExtension> bindextends = (List<TWSDLExtension>) binding .extensions(); for (TWSDLExtension wsdlext : bindextends) { value = resolveBindingValue(wsdlext); if (b != null) { List<TWSDLExtension> bindextends = (List<TWSDLExtension>) b .extensions(); for (TWSDLExtension wsdlext : bindextends) { value = resolveBindingValue(wsdlext);
PortType portType = binding.resolvePortType(document); for (Iterator itr = binding.operations(); iter.hasNext(); ) { for (Iterator iter = binding.operations(); iter.hasNext();) { BindingOperation bindingOperation = (BindingOperation) iter.next(); if (operations.isEmpty()) { error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(bindingOperation.getName(), binding.getName())); } else if (operations.size() == 1) { portTypeOperation = error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(bindingOperation.getName(), binding.getName())); PortType pt = binding.resolvePortType(document); String jd = (pt.getDocumentation() != null) ? pt.getDocumentation().getContent() : null; port.getJavaInterface().setJavaDoc(jd); applyWrapperStyleCustomization(port, binding.resolvePortType(document));
public String getNamespaceURI() { return getDefining().getTargetNamespaceURI(); }
public String getNameValue() { return getName(); }
public void accept(WSDLDocumentVisitor visitor) throws Exception { visitor.preVisit(this); for (Iterator iter = _imports.iterator(); iter.hasNext();) { ((Import) iter.next()).accept(visitor); } if (_types != null) { _types.accept(visitor); } for (Iterator iter = _messages.iterator(); iter.hasNext();) { ((Message) iter.next()).accept(visitor); } for (Iterator iter = _portTypes.iterator(); iter.hasNext();) { ((PortType) iter.next()).accept(visitor); } for (Iterator iter = _bindings.iterator(); iter.hasNext();) { ((Binding) iter.next()).accept(visitor); } for (Iterator iter = _services.iterator(); iter.hasNext();) { ((Service) iter.next()).accept(visitor); } _helper.accept(visitor); visitor.postVisit(this); }
context.push(); context.registerNamespaces(e); Binding binding = new Binding(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); binding.setName(name); String typeAttr = Util.getRequiredAttribute(e, Constants.ATTR_TYPE); binding.setPortType(context.translateQualifiedName(context.getLocation(e), typeAttr)); binding.setDocumentation(getDocumentationFor(e2)); } else if ( XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_OPERATION)) { BindingOperation op = parseBindingOperation(context, e2); binding.add(op); } else {
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(); } }
while (bindings.hasNext()) { Binding binding = (Binding) bindings.next(); if (bName.getLocalPart().equals(binding.getName()) && bName.getNamespaceURI().equals(binding.getNamespaceURI())) { List<TWSDLExtension> bindextends = (List<TWSDLExtension>) binding .extensions(); for (TWSDLExtension wsdlext : bindextends) { value = resolveBindingValue(wsdlext); if (b != null) { List<TWSDLExtension> bindextends = (List<TWSDLExtension>) b .extensions(); for (TWSDLExtension wsdlext : bindextends) { value = resolveBindingValue(wsdlext);
PortType portType = binding.resolvePortType(document); for (Iterator itr = binding.operations(); iter.hasNext(); ) { for (Iterator iter = binding.operations(); iter.hasNext();) { BindingOperation bindingOperation = (BindingOperation) iter.next(); if (operations.isEmpty()) { error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(bindingOperation.getName(), binding.getName())); } else if (operations.size() == 1) { portTypeOperation = error(bindingOperation, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(bindingOperation.getName(), binding.getName())); PortType pt = binding.resolvePortType(document); String jd = (pt.getDocumentation() != null) ? pt.getDocumentation().getContent() : null; port.getJavaInterface().setJavaDoc(jd); applyWrapperStyleCustomization(port, binding.resolvePortType(document));