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 SomTargetprotected Ttarget-
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 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.
-
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:
getParentNodein interfaceNode
-
hasAttributes
public final boolean hasAttributes()
- Specified by:
hasAttributesin interfaceNode
-
isSupported
public final boolean isSupported(String feature, String version)
- Specified by:
isSupportedin interfaceNode
-
getBaseURI
public final String getBaseURI()
- Specified by:
getBaseURIin interfaceNode
-
getNodeValue
public final String getNodeValue() throws DOMException
- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
setNodeValue
public final void setNodeValue(String nodeValue) throws DOMException
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
insertBefore
public final Node insertBefore(Node newChild, Node refChild) throws DOMException
- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
replaceChild
public final Node replaceChild(Node newChild, Node oldChild) throws DOMException
- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
setPrefix
public final void setPrefix(String prefix) throws DOMException
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
compareDocumentPosition
public final short compareDocumentPosition(Node other) throws DOMException
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
setTextContent
public final void setTextContent(String textContent) throws DOMException
- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
isSameNode
public final boolean isSameNode(Node other)
- Specified by:
isSameNodein interfaceNode
-
lookupPrefix
public final String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefixin interfaceNode
-
isDefaultNamespace
public final boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespacein interfaceNode
-
lookupNamespaceURI
public final String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURIin interfaceNode
-
isEqualNode
public final boolean isEqualNode(Node arg)
- Specified by:
isEqualNodein interfaceNode
-
getFeature
public final Object getFeature(String feature, String version)
- Specified by:
getFeaturein interfaceNode
-
setUserData
public final Object setUserData(String key, Object data, UserDataHandler handler)
- Specified by:
setUserDatain interfaceNode
-
getUserData
public final Object getUserData(String key)
- Specified by:
getUserDatain interfaceNode
-
removeChild
public final Node removeChild(Node oldChild) throws DOMException
- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
getNodeName
public final String getNodeName()
- Specified by:
getNodeNamein interfaceNode
-
getNodeType
public final short getNodeType()
- Specified by:
getNodeTypein interfaceNode
-
getOwnerDocument
public final Document getOwnerDocument()
- Specified by:
getOwnerDocumentin interfaceNode
-
getLocalName
public final String getLocalName()
- Specified by:
getLocalNamein interfaceNode
-
getNamespaceURI
public final String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceNode
-
getFirstChild
public final Node getFirstChild()
- Specified by:
getFirstChildin interfaceNode
-
hasChildNodes
public final boolean hasChildNodes()
- Specified by:
hasChildNodesin interfaceNode
-
getLastChild
public final Node getLastChild()
- Specified by:
getLastChildin interfaceNode
-
getChildNodes
public final NodeList getChildNodes()
- Specified by:
getChildNodesin interfaceNode
-
appendChild
public final Node appendChild(Node child) throws DOMException
- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
appendElement
protected Element appendElement(Element child) throws SOAPException
- Throws:
SOAPException
-
getTextContent
public final String getTextContent() throws DOMException
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
getAttributes
public final NamedNodeMap getAttributes()
- Specified by:
getAttributesin interfaceNode
-
getNextSibling
public final Node getNextSibling()
- Specified by:
getNextSiblingin interfaceNode
-
getPreviousSibling
public final Node getPreviousSibling()
- Specified by:
getPreviousSiblingin interfaceNode
-
-