public class SOAPElementImpl<T extends org.apache.axiom.om.OMElement> extends NodeImpl<Element,T> implements javax.xml.soap.SOAPElement
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
SOAPElementImpl(T element) |
detachNode, getParentElement, setParentElementappendChild, appendElement, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOMTarget, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSchemaTypeInfo, getTarget, getTextContent, getType, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, removeChild, replaceChild, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setType, setUserData, toSAAJNodeListequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdetachNode, getParentElement, recycleNode, setParentElementgetSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic SOAPElementImpl(T element)
public javax.xml.soap.SOAPElement addAttribute(javax.xml.soap.Name name, String value) throws javax.xml.soap.SOAPException
SOAPElement object.
addAttribute in interface javax.xml.soap.SOAPElementname - a Name object with the name of the attributevalue - a String giving the value of the attributeSOAPElement object into which the attribute was insertedjavax.xml.soap.SOAPException - if there is an error in creating the Attributepublic javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.Name name) throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.SOAPElement soapElement) throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(String localName, String prefix, String namespaceURI) throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(String localName, String prefix) throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(String localName) throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addNamespaceDeclaration(String prefix, String uri) throws javax.xml.soap.SOAPException
addNamespaceDeclaration in interface javax.xml.soap.SOAPElementjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addTextNode(String text) throws javax.xml.soap.SOAPException
Text object initialized with the given String and
adds it to this SOAPElement object.addTextNode in interface javax.xml.soap.SOAPElementtext - a String object with the textual content to be addedSOAPElement object into which the new Text object was
insertedjavax.xml.soap.SOAPException - if there is an error in creating the new Text objectpublic Iterator getAllAttributes()
SOAPElement object.
The iterator can be used to get the attribute names, which can then be passed to the method
getAttributeValue to retrieve the value of each attribute.getAllAttributes in interface javax.xml.soap.SOAPElementpublic String getAttributeValue(javax.xml.soap.Name name)
getAttributeValue in interface javax.xml.soap.SOAPElementpublic Iterator getChildElements()
Text objects as well as SOAPElement objects.getChildElements in interface javax.xml.soap.SOAPElementText and SOAPElement contained within this
SOAPElement objectpublic Iterator getChildElements(javax.xml.soap.Name name)
getChildElements in interface javax.xml.soap.SOAPElementpublic javax.xml.soap.Name getElementName()
getElementName in interface javax.xml.soap.SOAPElementpublic String getEncodingStyle()
getEncodingStyle in interface javax.xml.soap.SOAPElementpublic Iterator getNamespacePrefixes()
getNamespacePrefixes in interface javax.xml.soap.SOAPElementpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface javax.xml.soap.SOAPElementpublic Iterator getVisibleNamespacePrefixes()
getVisibleNamespacePrefixes in interface javax.xml.soap.SOAPElementpublic javax.xml.soap.SOAPElement addAttribute(QName qname, String value) throws javax.xml.soap.SOAPException
addAttribute in interface javax.xml.soap.SOAPElementjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.SOAPElement addChildElement(QName qname) throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementjavax.xml.soap.SOAPExceptionpublic QName createQName(String localName, String prefix) throws javax.xml.soap.SOAPException
createQName in interface javax.xml.soap.SOAPElementlocalName - - a String containing the local part of the name. prefix - a String
containing the prefix for the name.javax.xml.soap.SOAPException - - if the QName cannot be created.public Iterator getAllAttributesAsQNames()
getAllAttributesAsQNames in interface javax.xml.soap.SOAPElementpublic String getAttributeValue(QName qname)
getAttributeValue in interface javax.xml.soap.SOAPElementpublic Iterator getChildElements(QName qname)
getChildElements in interface javax.xml.soap.SOAPElementpublic QName getElementQName()
getElementQName in interface javax.xml.soap.SOAPElementpublic boolean removeAttribute(QName qname)
removeAttribute in interface javax.xml.soap.SOAPElementpublic javax.xml.soap.SOAPElement setElementQName(QName newName) throws javax.xml.soap.SOAPException
setElementQName in interface javax.xml.soap.SOAPElementjavax.xml.soap.SOAPExceptionpublic boolean removeAttribute(javax.xml.soap.Name name)
removeAttribute in interface javax.xml.soap.SOAPElementpublic void removeContents()
removeContents in interface javax.xml.soap.SOAPElementpublic boolean removeNamespaceDeclaration(String prefix)
removeNamespaceDeclaration in interface javax.xml.soap.SOAPElementpublic void setEncodingStyle(String encodingStyle) throws javax.xml.soap.SOAPException
setEncodingStyle in interface javax.xml.soap.SOAPElementencodingStyle - - a String giving the encoding styleIllegalArgumentException - - if there was a problem in the encoding style being set. SOAPException - if setting
the encodingStyle is invalid for this SOAPElement.javax.xml.soap.SOAPExceptionpublic String getAttribute(String name)
getAttribute in interface Elementpublic Attr getAttributeNode(String name)
getAttributeNode in interface Elementpublic Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS in interface Elementpublic String getAttributeNS(String namespaceURI, String localName)
getAttributeNS in interface Elementpublic NodeList getElementsByTagName(String name)
getElementsByTagName in interface Elementpublic NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS in interface Elementpublic String getTagName()
getTagName in interface Elementpublic boolean hasAttribute(String name)
hasAttribute in interface Elementpublic boolean hasAttributeNS(String namespaceURI, String localName)
hasAttributeNS in interface Elementpublic void removeAttribute(String name) throws DOMException
removeAttribute in interface ElementDOMExceptionpublic Attr removeAttributeNode(Attr attr) throws DOMException
removeAttributeNode in interface ElementDOMExceptionpublic void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS in interface ElementDOMExceptionpublic void setAttribute(String name, String value) throws DOMException
setAttribute in interface ElementDOMExceptionpublic Attr setAttributeNode(Attr attr) throws DOMException
setAttributeNode in interface ElementDOMExceptionpublic Attr setAttributeNodeNS(Attr attr) throws DOMException
setAttributeNodeNS in interface ElementDOMExceptionpublic void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS in interface ElementDOMExceptionpublic String getValue()
Node object if a child
exists and its value is text.String with the text of the immediate child of this Node
object if (1) there is a child and (2) the child is a Text object;
null otherwiseprotected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void setValue(String value)
value - the text to setIllegalStateException - if the node is not a Text node and either has more than one
child node or has a child node that is not a Text nodeprotected void copyContents(SOAPElementImpl childEle, Node child) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPExceptionCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.