public static String getQualifiedValue(URI namespaceURI, String localPart, WSDLElement elem) throws WSDLException { String prefix = null; if (namespaceURI != null && !namespaceURI.toString().equals("")) { prefix = elem.getNamespacePrefix(namespaceURI); } String qv = ((prefix != null && !prefix.equals("")) ? prefix + ":" : "") + localPart; return qv; }
public static String getQualifiedValue(URI namespaceURI, String localPart, WSDLElement elem) throws WSDLException { String prefix = null; if (namespaceURI != null && !namespaceURI.toString().equals("")) { prefix = elem.getNamespacePrefix(namespaceURI); } String qv = ((prefix != null && !prefix.equals("")) ? prefix + ":" : "") + localPart; return qv; }
public static String getQualifiedValue(URI namespaceURI, String localPart, WSDLElement elem) throws WSDLException { String prefix = null; if (namespaceURI != null && !namespaceURI.toString().equals("")) { prefix = elem.getNamespacePrefix(namespaceURI); } String qv = ((prefix != null && !prefix.equals("")) ? prefix + ":" : "") + localPart; return qv; }
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; } }