public abstract class SAAJNode<T extends Node,S extends org.apache.axiom.om.OMNode> extends Object implements Node
Modifier and Type | Field and Description |
---|---|
protected S |
omTarget |
protected SOAPElement |
parentElement |
protected T |
target |
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
Modifier and Type | Method and Description |
---|---|
Node |
appendChild(Node child) |
protected Element |
appendElement(Element child) |
protected Text |
appendText(Text child) |
Node |
cloneNode(boolean deep) |
short |
compareDocumentPosition(Node other) |
org.apache.axiom.om.OMNode |
detach() |
void |
detachNode()
Removes this
Node object from the tree. |
NamedNodeMap |
getAttributes() |
String |
getBaseURI() |
NodeList |
getChildNodes() |
Object |
getFeature(String feature,
String version) |
Node |
getFirstChild() |
Node |
getLastChild() |
String |
getLocalName() |
String |
getNamespaceURI() |
String |
getNodeName() |
short |
getNodeType() |
String |
getNodeValue() |
S |
getOMTarget() |
Document |
getOwnerDocument() |
org.apache.axiom.om.OMContainer |
getParent() |
SOAPElement |
getParentElement()
Removes this
Node object from the tree. |
Node |
getParentNode() |
String |
getPrefix() |
TypeInfo |
getSchemaTypeInfo() |
T |
getTarget() |
String |
getTextContent() |
int |
getType() |
Object |
getUserData(String key) |
boolean |
hasAttributes() |
boolean |
hasChildNodes() |
Node |
insertBefore(Node newChild,
Node refChild) |
boolean |
isDefaultNamespace(String namespaceURI) |
boolean |
isEqualNode(Node arg) |
boolean |
isSameNode(Node other) |
boolean |
isSupported(String feature,
String version) |
String |
lookupNamespaceURI(String prefix) |
String |
lookupPrefix(String namespaceURI) |
void |
normalize() |
void |
recycleNode()
Notifies the implementation that this
Node object is no longer being used by the
application and that the implementation is free to reuse this object for nodes that may be
created later. |
Node |
removeChild(Node oldChild) |
Node |
replaceChild(Node newChild,
Node oldChild) |
void |
setIdAttribute(String name,
boolean isId) |
void |
setIdAttributeNode(Attr idAttr,
boolean isId) |
void |
setIdAttributeNS(String namespaceURI,
String localName,
boolean isId) |
void |
setNodeValue(String nodeValue) |
void |
setParentElement(SOAPElement parent)
Sets the parent of this
Node object to the given SOAPElement
object. |
void |
setPrefix(String prefix) |
void |
setTextContent(String textContent) |
void |
setType(int nodeType) |
Object |
setUserData(String key,
Object data,
UserDataHandler handler) |
protected NodeList |
toSAAJNodeList(NodeList nodes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNextSibling, getPreviousSibling
protected final S extends org.apache.axiom.om.OMNode omTarget
protected SOAPElement parentElement
public final T getTarget()
public final S getOMTarget()
public void detachNode()
Node
object from the tree. Once removed, this node can be garbage
collected if there are no application references to it.public org.apache.axiom.om.OMNode detach()
public SOAPElement getParentElement()
Node
object from the tree. Once removed, this node can be garbage
collected if there are no application references to it.public org.apache.axiom.om.OMContainer getParent()
public void recycleNode()
Node
object is no longer being used by the
application and that the implementation is free to reuse this object for nodes that may be
created later.
Calling the method recycleNode
implies that the method detachNode
has been called previously.public void setParentElement(SOAPElement parent) throws SOAPException
Node
object to the given SOAPElement
object.parent
- 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 void setType(int nodeType) throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
public int getType()
public TypeInfo getSchemaTypeInfo()
public void setIdAttribute(String name, boolean isId) throws DOMException
DOMException
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
DOMException
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
DOMException
public Node getParentNode()
getParentNode
in interface Node
public final boolean hasAttributes()
hasAttributes
in interface Node
public final boolean isSupported(String feature, String version)
isSupported
in interface Node
public final String getBaseURI()
getBaseURI
in interface Node
public final String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public final void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in interface Node
DOMException
public final Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
public final Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
public final void setPrefix(String prefix) throws DOMException
setPrefix
in interface Node
DOMException
public final short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition
in interface Node
DOMException
public final void setTextContent(String textContent) throws DOMException
setTextContent
in interface Node
DOMException
public final boolean isSameNode(Node other)
isSameNode
in interface Node
public final String lookupPrefix(String namespaceURI)
lookupPrefix
in interface Node
public final boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace
in interface Node
public final String lookupNamespaceURI(String prefix)
lookupNamespaceURI
in interface Node
public final boolean isEqualNode(Node arg)
isEqualNode
in interface Node
public final Object getFeature(String feature, String version)
getFeature
in interface Node
public final Object setUserData(String key, Object data, UserDataHandler handler)
setUserData
in interface Node
public final Object getUserData(String key)
getUserData
in interface Node
public final Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
DOMException
public final String getNodeName()
getNodeName
in interface Node
public final short getNodeType()
getNodeType
in interface Node
public final Document getOwnerDocument()
getOwnerDocument
in interface Node
public final String getLocalName()
getLocalName
in interface Node
public final String getNamespaceURI()
getNamespaceURI
in interface Node
public final Node getFirstChild()
getFirstChild
in interface Node
public final boolean hasChildNodes()
hasChildNodes
in interface Node
public final Node getLastChild()
getLastChild
in interface Node
public final NodeList getChildNodes()
getChildNodes
in interface Node
public final Node appendChild(Node child) throws DOMException
appendChild
in interface Node
DOMException
protected Text appendText(Text child) throws SOAPException
SOAPException
protected Element appendElement(Element child) throws SOAPException
SOAPException
public final String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
public final NamedNodeMap getAttributes()
getAttributes
in interface Node
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.