public Element createElement(String tagName) throws DOMException { return ElementFactory.createElement( this, NameImpl.getLocalNameFromTagName(tagName), NameImpl.getPrefixFromTagName(tagName), null); }
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException { return ElementFactory.createElement( this, NameImpl.getLocalNameFromTagName(qualifiedName), NameImpl.getPrefixFromTagName(qualifiedName), namespaceURI); }
protected SOAPElement convertToSoapElement(Element element) { if (element instanceof SOAPFaultElement) { return (SOAPElement) element; } else if (element instanceof SOAPElement) { SOAPElement soapElement = (SOAPElement) element; if (getDetailName().equals(soapElement.getElementName())) { return replaceElementWithSOAPElement(element, createDetail()); } else { String localName = soapElement.getElementName().getLocalName(); if (isStandardFaultElement(localName)) return replaceElementWithSOAPElement( element, createSOAPFaultElement(soapElement.getElementQName())); return soapElement; } } else { Name elementName = NameImpl.copyElementName(element); ElementImpl newElement; if (getDetailName().equals(elementName)) { newElement = (ElementImpl) createDetail(); } else { String localName = elementName.getLocalName(); if (isStandardFaultElement(localName)) newElement = (ElementImpl) createSOAPFaultElement(elementName); else newElement = (ElementImpl) createElement(elementName); } return replaceElementWithSOAPElement(element, newElement); } }
public void setFaultCode(String faultCode) throws SOAPException { setFaultCode( NameImpl.getLocalNameFromTagName(faultCode), NameImpl.getPrefixFromTagName(faultCode), null); }
protected SOAPElement addElement(QName name) throws SOAPException { return addElement(NameImpl.convertToName(name)); }