public SOAPElement addAttribute(Name name, String value) throws SOAPException { addAttributeBare(name, value); if (!"".equals(name.getURI())) { ensureNamespaceIsDeclared(name.getPrefix(), name.getURI()); } return this; }
protected SOAPElement createElement(Name name) { if (isNamespaceQualified(name)) { return (SOAPElement) getOwnerDocument().createElementNS(name.getURI(), name.getQualifiedName()); } else { return (SOAPElement) getOwnerDocument().createElement(name.getQualifiedName()); } }
protected String getSOAPNamespace() { String soapNamespace = null; SOAPElement antecedent = this; while (antecedent != null) { Name antecedentName = antecedent.getElementName(); String antecedentNamespace = antecedentName.getURI(); if (NameImpl.SOAP11_NAMESPACE.equals(antecedentNamespace) || NameImpl.SOAP12_NAMESPACE.equals(antecedentNamespace)) { soapNamespace = antecedentNamespace; break; } antecedent = antecedent.getParentElement(); } return soapNamespace; }
protected static String getAttributeValueFrom(Element element, Name name) { return getAttributeValueFrom( element, name.getURI(), name.getLocalName(), name.getPrefix(), name.getQualifiedName()); }
public ElementImpl(SOAPDocumentImpl ownerDoc, Name name) { super(ownerDoc, name.getURI(), name.getQualifiedName(), name.getLocalName()); elementQName = NameImpl.convertToQName(name); }
public Iterator getChildElements(final Name name) { return getChildElements(name.getURI(), name.getLocalName()); }
public boolean removeAttribute(Name name) { return removeAttribute(name.getURI(), name.getLocalName()); }
private void addAttributeBare(Name name, String value) { addAttributeBare(name.getURI(), name.getPrefix(), name.getQualifiedName(), value); }
protected boolean isNamespaceQualified(Name name) { return !"".equals(name.getURI()); }