Package org.apache.axis2.saaj
Class NodeImplEx
java.lang.Object
org.apache.axiom.om.impl.dom.NodeImpl
org.apache.axis2.saaj.NodeImplEx
- All Implemented Interfaces:
Cloneable,Node,org.apache.axiom.om.impl.OMNodeEx,org.apache.axiom.om.OMNode,org.apache.axiom.om.OMSerializable,Node,NodeList
- Direct Known Subclasses:
SOAPElementImpl,TextImplEx
A representation of a node (element) in a DOM representation of an XML document that provides
some tree manipulation methods. This interface provides methods for getting the value of a node,
for getting and setting the parent of a node, and for removing a node.
-
Field Summary
FieldsFields inherited from class org.apache.axiom.om.impl.dom.NodeImpl
builder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIEDFields inherited from interface org.w3c.dom.Node
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_NODEFields inherited from interface org.apache.axiom.om.OMNode
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.axiom.om.OMNodedetach()voidRemoves thisNodeobject from the tree.org.apache.axiom.om.OMContainerRemoves thisNodeobject from the tree.intgetType()getValue()Returns the the value of the immediate child of thisNodeobject if a child exists and its valu e is text.voidNotifies the implementation that thisNodeobject 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.voidsetIdAttribute(String name, boolean isId) voidsetIdAttributeNode(Attr idAttr, boolean isId) voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId) voidsetParentElement(SOAPElement parent) Sets the parent of thisNodeobject to the givenSOAPElementobject.voidsetType(int nodeType) Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl
appendChild, build, buildWithAttachments, cloneNode, close, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLength, getLocalName, getNamespaceURI, getNextOMSibling, getNextOMSiblingIfAvailable, getNextSibling, getNodeValue, getOMFactory, getOwnerDocument, getParentNode, getPrefix, getPreviousOMSibling, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setNodeValue, setOwnerDocument, setPrefix, setPreviousOMSibling, setTextContent, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.Node
appendChild, 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, setUserDataMethods inherited from interface org.apache.axiom.om.OMNode
discardMethods inherited from interface org.apache.axiom.om.impl.OMNodeEx
internalSerialize, setParent
-
Field Details
-
parentElement
-
-
Constructor Details
-
NodeImplEx
protected NodeImplEx(org.apache.axiom.om.OMFactory factory) - Parameters:
factory-
-
-
Method Details
-
detachNode
public void detachNode()Removes thisNodeobject from the tree. Once removed, this node can be garbage collected if there are no application references to it.- Specified by:
detachNodein interfaceNode
-
detach
public org.apache.axiom.om.OMNode detach()- Specified by:
detachin interfaceorg.apache.axiom.om.OMNode- Overrides:
detachin classorg.apache.axiom.om.impl.dom.NodeImpl
-
getParentElement
Removes thisNodeobject from the tree. Once removed, this node can be garbage collected if there are no application references to it.- Specified by:
getParentElementin interfaceNode
-
getParent
public org.apache.axiom.om.OMContainer getParent()- Specified by:
getParentin interfaceorg.apache.axiom.om.OMNode- Overrides:
getParentin classorg.apache.axiom.om.impl.dom.NodeImpl
-
getValue
Returns the the value of the immediate child of thisNodeobject if a child exists and its valu e is text. -
recycleNode
public void recycleNode()Notifies the implementation that thisNodeobject 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 methodrecycleNodeimplies that the methoddetachNodehas been called previously.- Specified by:
recycleNodein interfaceNode
-
setParentElement
Sets the parent of thisNodeobject to the givenSOAPElementobject.- Specified by:
setParentElementin interfaceNode- Parameters:
parent- theSOAPElementobject to be set as the parent of thisNodeobject- Throws:
SOAPException- if there is a problem in setting the parent to the given element- See Also:
-
setType
public void setType(int nodeType) throws org.apache.axiom.om.OMException - Specified by:
setTypein interfaceorg.apache.axiom.om.impl.OMNodeEx- Throws:
org.apache.axiom.om.OMException
-
getType
public int getType()- Specified by:
getTypein interfaceorg.apache.axiom.om.OMNode
-
getSchemaTypeInfo
-
setIdAttribute
- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException - Throws:
DOMException
-
setIdAttributeNode
- Throws:
DOMException
-