Package org.apache.axis2.saaj
Class ProxyNode<T extends Node,S extends OMInformationItem>
- java.lang.Object
-
- org.apache.axis2.saaj.ProxyNode<T,S>
-
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
NodeImpl
,SAAJDocument
public abstract class ProxyNode<T extends Node,S extends OMInformationItem> extends Object implements Node
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
Fields Modifier and Type Field Description protected S
omTarget
protected T
target
-
Fields 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_NODE
-
-
Method Summary
-
-
-
Field Detail
-
omTarget
protected final S extends OMInformationItem omTarget
-
-
Method Detail
-
getTarget
public final T getTarget()
-
getOMTarget
public final S getOMTarget()
-
recycleNode
public void recycleNode()
Notifies the implementation that thisNode
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 methodrecycleNode
implies that the methoddetachNode
has been called previously.
-
setType
public void setType(int nodeType) throws OMException
- Throws:
OMException
-
getType
public int getType()
-
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
-
setIdAttribute
public void setIdAttribute(String name, boolean isId) throws DOMException
- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
- Throws:
DOMException
-
setIdAttributeNode
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
- Throws:
DOMException
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNode
in interfaceNode
-
hasAttributes
public final boolean hasAttributes()
- Specified by:
hasAttributes
in interfaceNode
-
isSupported
public final boolean isSupported(String feature, String version)
- Specified by:
isSupported
in interfaceNode
-
getBaseURI
public final String getBaseURI()
- Specified by:
getBaseURI
in interfaceNode
-
getNodeValue
public final String getNodeValue() throws DOMException
- Specified by:
getNodeValue
in interfaceNode
- Throws:
DOMException
-
setNodeValue
public final void setNodeValue(String nodeValue) throws DOMException
- Specified by:
setNodeValue
in interfaceNode
- Throws:
DOMException
-
insertBefore
public final Node insertBefore(Node newChild, Node refChild) throws DOMException
- Specified by:
insertBefore
in interfaceNode
- Throws:
DOMException
-
replaceChild
public final Node replaceChild(Node newChild, Node oldChild) throws DOMException
- Specified by:
replaceChild
in interfaceNode
- Throws:
DOMException
-
setPrefix
public final void setPrefix(String prefix) throws DOMException
- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
-
compareDocumentPosition
public final short compareDocumentPosition(Node other) throws DOMException
- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
-
setTextContent
public final void setTextContent(String textContent) throws DOMException
- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
-
isSameNode
public final boolean isSameNode(Node other)
- Specified by:
isSameNode
in interfaceNode
-
lookupPrefix
public final String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefix
in interfaceNode
-
isDefaultNamespace
public final boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespace
in interfaceNode
-
lookupNamespaceURI
public final String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURI
in interfaceNode
-
isEqualNode
public final boolean isEqualNode(Node arg)
- Specified by:
isEqualNode
in interfaceNode
-
getFeature
public final Object getFeature(String feature, String version)
- Specified by:
getFeature
in interfaceNode
-
setUserData
public final Object setUserData(String key, Object data, UserDataHandler handler)
- Specified by:
setUserData
in interfaceNode
-
getUserData
public final Object getUserData(String key)
- Specified by:
getUserData
in interfaceNode
-
removeChild
public final Node removeChild(Node oldChild) throws DOMException
- Specified by:
removeChild
in interfaceNode
- Throws:
DOMException
-
getNodeName
public final String getNodeName()
- Specified by:
getNodeName
in interfaceNode
-
getNodeType
public final short getNodeType()
- Specified by:
getNodeType
in interfaceNode
-
getOwnerDocument
public final Document getOwnerDocument()
- Specified by:
getOwnerDocument
in interfaceNode
-
getLocalName
public final String getLocalName()
- Specified by:
getLocalName
in interfaceNode
-
getNamespaceURI
public final String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfaceNode
-
getFirstChild
public final Node getFirstChild()
- Specified by:
getFirstChild
in interfaceNode
-
hasChildNodes
public final boolean hasChildNodes()
- Specified by:
hasChildNodes
in interfaceNode
-
getLastChild
public final Node getLastChild()
- Specified by:
getLastChild
in interfaceNode
-
getChildNodes
public final NodeList getChildNodes()
- Specified by:
getChildNodes
in interfaceNode
-
appendChild
public final Node appendChild(Node child) throws DOMException
- Specified by:
appendChild
in interfaceNode
- Throws:
DOMException
-
appendElement
protected Element appendElement(Element child) throws SOAPException
- Throws:
SOAPException
-
getTextContent
public final String getTextContent() throws DOMException
- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
-
getAttributes
public final NamedNodeMap getAttributes()
- Specified by:
getAttributes
in interfaceNode
-
getNextSibling
public final Node getNextSibling()
- Specified by:
getNextSibling
in interfaceNode
-
getPreviousSibling
public final Node getPreviousSibling()
- Specified by:
getPreviousSibling
in interfaceNode
-
-