public class SOAPElementImpl extends NodeImplEx implements SOAPElement
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.axiom.om.impl.dom.ElementImpl |
element
Using a delegate because we can't extend from org.apache.axiom.om.impl.dom.ElementImpl since
this class must extend SNodeImpl
|
parentElementbuilder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIEDATTRIBUTE_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(org.apache.axiom.om.impl.dom.ElementImpl element) |
| Modifier and Type | Method and Description |
|---|---|
SOAPElement |
addAttribute(Name name,
String value)
Adds an attribute with the specified name and value to this
SOAPElement object. |
SOAPElement |
addAttribute(QName qname,
String value) |
SOAPElement |
addChildElement(Name name) |
SOAPElement |
addChildElement(QName qname) |
SOAPElement |
addChildElement(SOAPElement soapElement) |
SOAPElement |
addChildElement(String localName) |
SOAPElement |
addChildElement(String localName,
String prefix) |
SOAPElement |
addChildElement(String localName,
String prefix,
String uri) |
SOAPElement |
addNamespaceDeclaration(String prefix,
String uri) |
SOAPElement |
addTextNode(String text)
Creates a new
Text object initialized with the given String and
adds it to this SOAPElement object. |
Node |
appendChild(Node child) |
protected Element |
appendElement(org.apache.axiom.om.impl.dom.ElementImpl child) |
protected Text |
appendText(Text child) |
protected Object |
clone() |
protected void |
copyContents(SOAPElementImpl childEle,
Node child) |
QName |
createQName(String localName,
String prefix)
Creates a QName whose namespace URI is the one associated with the parameter, prefix, in the
context of this SOAPElement.
|
org.apache.axiom.om.OMNode |
detach() |
void |
detachNode()
Removes this
Node object from the tree. |
void |
discard() |
Iterator |
getAllAttributes()
Returns an iterator over all of the attribute names in this
SOAPElement object. |
Iterator |
getAllAttributesAsQNames() |
String |
getAttribute(String name) |
Attr |
getAttributeNode(String name) |
Attr |
getAttributeNodeNS(String namespaceURI,
String localName) |
String |
getAttributeNS(String namespaceURI,
String localName) |
NamedNodeMap |
getAttributes()
Returns the collection of attributes associated with this node, or null if none.
|
String |
getAttributeValue(Name name) |
String |
getAttributeValue(QName qname) |
Iterator |
getChildElements()
Returns an iterator over all the immediate content of this element.
|
Iterator |
getChildElements(Name name) |
Iterator |
getChildElements(QName qname) |
NodeList |
getChildNodes() |
org.apache.axiom.om.impl.dom.ElementImpl |
getElement() |
Name |
getElementName() |
QName |
getElementQName() |
NodeList |
getElementsByTagName(String name) |
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName) |
String |
getEncodingStyle() |
Node |
getFirstChild() |
Node |
getLastChild()
Method getLastChild
|
String |
getLocalName() |
Iterator |
getNamespacePrefixes() |
String |
getNamespaceURI() |
String |
getNamespaceURI(String prefix) |
Node |
getNextSibling()
dom Node method
|
String |
getNodeName() |
short |
getNodeType() |
Document |
getOwnerDocument()
Find the Document that this Node belongs to (the document in whose context the Node was
created).
|
SOAPElement |
getParentElement()
Returns the parent element of this
Node object. |
Node |
getParentNode() |
String |
getPrefix() |
Node |
getPreviousSibling() |
String |
getTagName() |
String |
getTextContent() |
String |
getValue()
Returns the the value of the immediate child of this
Node object if a child
exists and its value is text. |
Iterator |
getVisibleNamespacePrefixes() |
boolean |
hasAttribute(String name) |
boolean |
hasAttributeNS(String namespaceURI,
String localName) |
boolean |
hasChildNodes() |
void |
internalSerialize(XMLStreamWriter writer,
boolean cache) |
boolean |
removeAttribute(Name name) |
boolean |
removeAttribute(QName qname) |
void |
removeAttribute(String name) |
Attr |
removeAttributeNode(Attr attr) |
void |
removeAttributeNS(String namespaceURI,
String localName) |
Node |
removeChild(Node oldChild) |
void |
removeContents() |
boolean |
removeNamespaceDeclaration(String prefix) |
void |
setAttribute(String name,
String value) |
Attr |
setAttributeNode(Attr attr) |
Attr |
setAttributeNodeNS(Attr attr) |
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value) |
SOAPElement |
setElementQName(QName newName) |
void |
setEncodingStyle(String encodingStyle)
Sets the encoding style for this SOAPElement object to one specified.
|
void |
setParent(org.apache.axiom.om.OMContainer parentElement) |
void |
setParentElement(SOAPElement parent)
Sets the parent of this
Node object to the given SOAPElement
object. |
void |
setValue(String value)
If this is a Text node then this method will set its value, otherwise it sets the value of
the immediate (Text) child of this node.
|
String |
toString() |
getParent, getSchemaTypeInfo, getType, recycleNode, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setTypebuild, buildWithAttachments, cloneNode, close, compareDocumentPosition, getBaseURI, getFeature, getLength, getNextOMSibling, getNextOMSiblingIfAvailable, getNodeValue, getOMFactory, getPreviousOMSibling, getUserData, hasAttributes, insertBefore, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, replaceChild, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setNodeValue, setOwnerDocument, setPrefix, setPreviousOMSibling, setTextContent, setUserDataequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrecycleNodegetSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNScloneNode, compareDocumentPosition, getBaseURI, getFeature, getNodeValue, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataprotected org.apache.axiom.om.impl.dom.ElementImpl element
public SOAPElementImpl(org.apache.axiom.om.impl.dom.ElementImpl element)
public void discard()
throws org.apache.axiom.om.OMException
discard in interface org.apache.axiom.om.OMNodeorg.apache.axiom.om.OMExceptionpublic void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
internalSerialize in interface org.apache.axiom.om.impl.OMNodeExXMLStreamExceptionpublic SOAPElement addAttribute(Name name, String value) throws SOAPException
SOAPElement object.
addAttribute in interface SOAPElementname - a Name object with the name of the attributevalue - a String giving the value of the attributeSOAPElement object into which the attribute was insertedSOAPException - if there is an error in creating the Attributepublic SOAPElement addChildElement(Name name) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic SOAPElement addChildElement(SOAPElement soapElement) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic String getLocalName()
getLocalName in interface NodegetLocalName in class org.apache.axiom.om.impl.dom.NodeImplpublic String getNamespaceURI()
getNamespaceURI in interface NodegetNamespaceURI in class org.apache.axiom.om.impl.dom.NodeImplpublic String getPrefix()
public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic SOAPElement addChildElement(String localName, String prefix) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic SOAPElement addChildElement(String localName) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic SOAPElement addNamespaceDeclaration(String prefix, String uri) throws SOAPException
addNamespaceDeclaration in interface SOAPElementSOAPExceptionpublic SOAPElement addTextNode(String text) throws SOAPException
Text object initialized with the given String and
adds it to this SOAPElement object.addTextNode in interface SOAPElementtext - a String object with the textual content to be addedSOAPElement object into which the new Text object was
insertedSOAPException - 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 SOAPElementpublic String getAttributeValue(Name name)
getAttributeValue in interface SOAPElementpublic Iterator getChildElements()
Text objects as well as SOAPElement objects.getChildElements in interface SOAPElementText and SOAPElement contained within this
SOAPElement objectpublic Iterator getChildElements(Name name)
getChildElements in interface SOAPElementpublic Name getElementName()
getElementName in interface SOAPElementpublic String getEncodingStyle()
getEncodingStyle in interface SOAPElementpublic Iterator getNamespacePrefixes()
getNamespacePrefixes in interface SOAPElementpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface SOAPElementpublic Iterator getVisibleNamespacePrefixes()
getVisibleNamespacePrefixes in interface SOAPElementpublic SOAPElement addAttribute(QName qname, String value) throws SOAPException
addAttribute in interface SOAPElementSOAPExceptionpublic SOAPElement addChildElement(QName qname) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic QName createQName(String localName, String prefix) throws SOAPException
createQName in interface SOAPElementlocalName - - a String containing the local part of the name. prefix - a String
containing the prefix for the name.SOAPException - - if the QName cannot be created.public Iterator getAllAttributesAsQNames()
getAllAttributesAsQNames in interface SOAPElementpublic String getAttributeValue(QName qname)
getAttributeValue in interface SOAPElementpublic Iterator getChildElements(QName qname)
getChildElements in interface SOAPElementpublic QName getElementQName()
getElementQName in interface SOAPElementpublic boolean removeAttribute(QName qname)
removeAttribute in interface SOAPElementpublic SOAPElement setElementQName(QName newName) throws SOAPException
setElementQName in interface SOAPElementSOAPExceptionpublic boolean removeAttribute(Name name)
removeAttribute in interface SOAPElementpublic void removeContents()
removeContents in interface SOAPElementpublic boolean removeNamespaceDeclaration(String prefix)
removeNamespaceDeclaration in interface SOAPElementpublic void setEncodingStyle(String encodingStyle) throws SOAPException
setEncodingStyle in interface 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.SOAPExceptionpublic void setParent(org.apache.axiom.om.OMContainer parentElement)
setParent in interface org.apache.axiom.om.impl.OMNodeExpublic 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 getNodeName()
getNodeName in interface Nodepublic short getNodeType()
getNodeType in interface Nodepublic org.apache.axiom.om.impl.dom.ElementImpl getElement()
public SOAPElement getParentElement()
Node object. This method can throw an
UnsupportedOperationException if the tree is not kept in memory.getParentElement in class NodeImplExSOAPElement object that is the parent of this Node
object or null if this Node object is rootUnsupportedOperationException - if the whole tree is not kept in memorysetParentElement(javax.xml.soap.SOAPElement)public void setParentElement(SOAPElement parent) throws SOAPException
NodeImplExNode object to the given SOAPElement
object.setParentElement in class NodeImplExparent - the SOAPElement object to be set as the parent of this
Node objectSOAPException - if there is a problem in setting the parent to the given elementgetParentElement()public Document getOwnerDocument()
getOwnerDocument in interface NodegetOwnerDocument in class org.apache.axiom.om.impl.dom.NodeImplpublic String getValue()
Node object if a child
exists and its value is text.getValue in class NodeImplExString 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 otherwisepublic String getTextContent() throws DOMException
getTextContent in interface NodegetTextContent in class org.apache.axiom.om.impl.dom.NodeImplDOMExceptionprotected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic Node getFirstChild()
getFirstChild in interface NodegetFirstChild in class org.apache.axiom.om.impl.dom.NodeImplpublic Node getLastChild()
getLastChild in interface NodegetLastChild in class org.apache.axiom.om.impl.dom.NodeImplNode.getLastChild()public Node getParentNode()
getParentNode in interface NodegetParentNode in class org.apache.axiom.om.impl.dom.NodeImplpublic Node getNextSibling()
getNextSibling in interface NodegetNextSibling in class org.apache.axiom.om.impl.dom.NodeImplpublic Node getPreviousSibling()
getPreviousSibling in interface NodegetPreviousSibling in class org.apache.axiom.om.impl.dom.NodeImplpublic NodeList getChildNodes()
getChildNodes in interface NodegetChildNodes in class org.apache.axiom.om.impl.dom.NodeImplpublic boolean hasChildNodes()
hasChildNodes in interface NodehasChildNodes in class org.apache.axiom.om.impl.dom.NodeImplpublic 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 nodepublic void detachNode()
NodeImplExNode object from the tree. Once removed, this node can be garbage
collected if there are no application references to it.detachNode in class NodeImplExpublic org.apache.axiom.om.OMNode detach()
detach in interface org.apache.axiom.om.OMNodedetach in class NodeImplExpublic NamedNodeMap getAttributes()
getAttributes in interface NodegetAttributes in class org.apache.axiom.om.impl.dom.NodeImplElementImplpublic Node removeChild(Node oldChild) throws DOMException
removeChild in interface NoderemoveChild in class org.apache.axiom.om.impl.dom.NodeImplDOMExceptionpublic Node appendChild(Node child) throws DOMException
appendChild in interface NodeappendChild in class org.apache.axiom.om.impl.dom.NodeImplDOMExceptionprotected Text appendText(Text child) throws SOAPException
SOAPExceptionprotected Element appendElement(org.apache.axiom.om.impl.dom.ElementImpl child) throws SOAPException
SOAPExceptionprotected void copyContents(SOAPElementImpl childEle, Node child) throws SOAPException
SOAPExceptionCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.