private DescriptionElement getDescriptionElement(WSDLElement wsdlElem) { if(wsdlElem instanceof BindingImpl) { return (DescriptionElement) ((NestedElement)wsdlElem).getParentElement(); } else { WSDLElement parentElem = ((NestedElement)wsdlElem).getParentElement(); return getDescriptionElement(parentElem); } }
private DescriptionElement getDescriptionElement(WSDLElement wsdlElem) { if(wsdlElem instanceof BindingImpl) { return (DescriptionElement) ((NestedElement)wsdlElem).getParentElement(); } else { WSDLElement parentElem = ((NestedElement)wsdlElem).getParentElement(); return getDescriptionElement(parentElem); } }
private DescriptionElement getDescriptionElement(WSDLElement wsdlElem) { if(wsdlElem instanceof BindingImpl) { return (DescriptionElement) ((NestedElement)wsdlElem).getParentElement(); } else { WSDLElement parentElem = ((NestedElement)wsdlElem).getParentElement(); return getDescriptionElement(parentElem); } }
private DescriptionElement getDescriptionElement(WSDLElement wsdlElem) { if(wsdlElem instanceof BindingImpl) { return (DescriptionElement) ((NestedElement)wsdlElem).getParentElement(); } else { WSDLElement parentElem = ((NestedElement)wsdlElem).getParentElement(); return getDescriptionElement(parentElem); } }
public URI getNamespaceURI(String prefix) { //See if the prefix is local. prefix = (prefix != null) ? prefix : emptyString; URI namespace = (URI)prefixToNamespaceMap.get(prefix); if (namespace == null && this instanceof NestedElement) { //If not call parents to find prefix if I'm nested. return ((NestedElement)this).getParentElement().getNamespaceURI(prefix); } else { //Otherwise return the found namespace or null. return namespace; } }
public String getNamespacePrefix(URI namespace) { //See if the prefix is local. String prefix = (String)namespaceToPrefixMap.get(namespace); if (prefix == null && this instanceof NestedElement) { //If not call parents to find prefix if I'm nested. return ((NestedElement)this).getParentElement().getNamespacePrefix(namespace); } else { //Otherwise return the found prefix or null. return prefix; } }
public String getNamespacePrefix(URI namespace) { //See if the prefix is local. String prefix = (String)namespaceToPrefixMap.get(namespace); if (prefix == null && this instanceof NestedElement) { //If not call parents to find prefix if I'm nested. return ((NestedElement)this).getParentElement().getNamespacePrefix(namespace); } else { //Otherwise return the found prefix or null. return prefix; } }
public URI getNamespaceURI(String prefix) { //See if the prefix is local. prefix = (prefix != null) ? prefix : emptyString; URI namespace = (URI)prefixToNamespaceMap.get(prefix); if (namespace == null && this instanceof NestedElement) { //If not call parents to find prefix if I'm nested. return ((NestedElement)this).getParentElement().getNamespaceURI(prefix); } else { //Otherwise return the found namespace or null. return namespace; } }
private ArrayList addInScopeNamespaces(ArrayList namespaces) { //Add my namespaces. Iterator it = namespaceToPrefixMap.keySet().iterator(); while(it.hasNext()){ URI namespace = (URI)it.next(); namespaces.add(new NamespaceDeclaration((String)namespaceToPrefixMap.get(namespace), namespace)); } //Add my parent namespaces if I'm a child. if (this instanceof NestedElement) { return ((WSDLElementImpl)((NestedElement)this).getParentElement()).addInScopeNamespaces(namespaces); } else { return namespaces; } }
private ArrayList addInScopeNamespaces(ArrayList namespaces) { //Add my namespaces. Iterator it = namespaceToPrefixMap.keySet().iterator(); while(it.hasNext()){ URI namespace = (URI)it.next(); namespaces.add(new NamespaceDeclaration((String)namespaceToPrefixMap.get(namespace), namespace)); } //Add my parent namespaces if I'm a child. if (this instanceof NestedElement) { return ((WSDLElementImpl)((NestedElement)this).getParentElement()).addInScopeNamespaces(namespaces); } else { return namespaces; } }
static private WSDLContext getWsdlContext(WSDLElement wElem) { if (wElem instanceof NestedElement) { WSDLElement parent = ((NestedElement) wElem).getParentElement(); return getWsdlContext(parent); } //This is not a nested element, so the WSDL context is in this element, at the top of the tree. //This element will override the getWsdlContext() method defined in WSDLElementImpl. return ((WSDLElementImpl)wElem).getWsdlContext(); }
static private WSDLContext getWsdlContext(WSDLElement wElem) { if (wElem instanceof NestedElement) { WSDLElement parent = ((NestedElement) wElem).getParentElement(); return getWsdlContext(parent); } //This is not a nested element, so the WSDL context is in this element, at the top of the tree. //This element will override the getWsdlContext() method defined in WSDLElementImpl. return ((WSDLElementImpl)wElem).getWsdlContext(); }
WSDLElement parent = ((NestedElement) wElem).getParentElement(); return getTargetNamespaceAndPrefix(parent);
WSDLElement parent = ((NestedElement) wElem).getParentElement(); return getTargetNamespaceAndPrefix(parent);