org.apache.axis2.saaj
Class NodeImpl

java.lang.Object
  extended byorg.apache.axis2.saaj.NodeImpl
All Implemented Interfaces:
org.w3c.dom.Node, javax.xml.soap.Node
Direct Known Subclasses:
AttrImpl, SOAPElementImpl, TextImpl

public class NodeImpl
extends java.lang.Object
implements javax.xml.soap.Node

Class NodeImpl


Field Summary
protected  org.w3c.dom.Document document
          field document
protected  OMNode omNode
          Field omNode
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
NodeImpl()
          Constructor NodeImpl
NodeImpl(OMAttribute attrib)
          Constructor NodeImpl
NodeImpl(OMNamespace ns)
          Constructor NodeImpl
NodeImpl(OMNode node)
          Constructor NodeImpl
 
Method Summary
 org.w3c.dom.Node appendChild(org.w3c.dom.Node node)
           
 org.w3c.dom.Node cloneNode(boolean deep)
           
 void detachNode()
          Method detachNode
 boolean equals(java.lang.Object o)
           
 org.w3c.dom.NamedNodeMap getAttributes()
          Method getAttributes
 org.w3c.dom.NodeList getChildNodes()
          DOM Node method
 org.w3c.dom.Node getFirstChild()
          Method getFirstChild
 org.w3c.dom.Node getLastChild()
          Method getLastChild
 java.lang.String getLocalName()
          Method getLocalName
 java.lang.String getNamespaceURI()
          Method getNamespaceURI
 org.w3c.dom.Node getNextSibling()
          dom Node method
 java.lang.String getNodeName()
          Method getNodeName
 short getNodeType()
          Method getNodeType
 java.lang.String getNodeValue()
          Method getNodeValue
 OMNode getOMNode()
          constructor which adopts the name and NS of the char data, and its text
 org.w3c.dom.Document getOwnerDocument()
          Method getOwnerDocument
 javax.xml.soap.SOAPElement getParentElement()
          Method getParentElement
 org.w3c.dom.Node getParentNode()
           
 java.lang.String getPrefix()
          Method getPrefix
 org.w3c.dom.Node getPreviousSibling()
          dom Node method
 java.lang.String getValue()
          Method getValue
 boolean hasAttributes()
          Method hasAttributes
 boolean hasChildNodes()
          Method hasChildNodes
 org.w3c.dom.Node insertBefore(org.w3c.dom.Node arg0, org.w3c.dom.Node arg1)
           
 boolean isSupported(java.lang.String arg0, java.lang.String arg1)
           
 void normalize()
          Method normalize
 void recycleNode()
          Method recycleNode
 org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
           
 org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)
           
 void setNodeValue(java.lang.String value)
          Method setNodeValue
 void setOwnerDocument(org.w3c.dom.Document doc)
          Method setOwnerDocument
 void setParentElement(javax.xml.soap.SOAPElement parent)
          Method setParentElement
 void setPrefix(java.lang.String prefix)
          Method setPrefix
 void setValue(java.lang.String value)
          Method setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

omNode

protected OMNode omNode
Field omNode


document

protected org.w3c.dom.Document document
field document

Constructor Detail

NodeImpl

public NodeImpl()
Constructor NodeImpl


NodeImpl

public NodeImpl(OMNode node)
Constructor NodeImpl

Parameters:
node -

NodeImpl

public NodeImpl(OMAttribute attrib)
Constructor NodeImpl

Parameters:
attrib -

NodeImpl

public NodeImpl(OMNamespace ns)
Constructor NodeImpl

Parameters:
ns -
Method Detail

getOMNode

public OMNode getOMNode()
constructor which adopts the name and NS of the char data, and its text


getValue

public java.lang.String getValue()
Method getValue

Specified by:
getValue in interface javax.xml.soap.Node
Returns:
a String 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 otherwise
See Also:
Node.getValue()

setParentElement

public void setParentElement(javax.xml.soap.SOAPElement parent)
                      throws javax.xml.soap.SOAPException
Method setParentElement

Specified by:
setParentElement in interface javax.xml.soap.Node
Parameters:
parent -
Throws:
javax.xml.soap.SOAPException - if there is a problem in setting the parent to the given element
See Also:
Node.setParentElement(javax.xml.soap.SOAPElement)

getParentElement

public javax.xml.soap.SOAPElement getParentElement()
Method getParentElement

Specified by:
getParentElement in interface javax.xml.soap.Node
Returns:
the SOAPElement object that is the parent of this Node object or null if this Node object is root
See Also:
Node.getParentElement()

detachNode

public void detachNode()
Method detachNode

Specified by:
detachNode in interface javax.xml.soap.Node
See Also:
Node.detachNode()

recycleNode

public void recycleNode()
Method recycleNode

Specified by:
recycleNode in interface javax.xml.soap.Node
See Also:
Node.recycleNode()

setValue

public void setValue(java.lang.String value)
Method setValue

Specified by:
setValue in interface javax.xml.soap.Node
Parameters:
value -
See Also:
Node.setValue(java.lang.String)

getNodeType

public short getNodeType()
Method getNodeType

Specified by:
getNodeType in interface org.w3c.dom.Node
See Also:
Node.getNodeType()

normalize

public void normalize()
Method normalize

Specified by:
normalize in interface org.w3c.dom.Node
See Also:
Node.normalize()

hasAttributes

public boolean hasAttributes()
Method hasAttributes

Specified by:
hasAttributes in interface org.w3c.dom.Node
See Also:
Node.hasAttributes()

hasChildNodes

public boolean hasChildNodes()
Method hasChildNodes

Specified by:
hasChildNodes in interface org.w3c.dom.Node
See Also:
Node.hasChildNodes()

getLocalName

public java.lang.String getLocalName()
Method getLocalName

Specified by:
getLocalName in interface org.w3c.dom.Node
See Also:
Node.getLocalName()

getNamespaceURI

public java.lang.String getNamespaceURI()
Method getNamespaceURI

Specified by:
getNamespaceURI in interface org.w3c.dom.Node
See Also:
Node.getNamespaceURI()

getNodeName

public java.lang.String getNodeName()
Method getNodeName

Specified by:
getNodeName in interface org.w3c.dom.Node
See Also:
Node.getNodeName()

getNodeValue

public java.lang.String getNodeValue()
                              throws org.w3c.dom.DOMException
Method getNodeValue

Specified by:
getNodeValue in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException
See Also:
Node.getNodeValue()

getPrefix

public java.lang.String getPrefix()
Method getPrefix

Specified by:
getPrefix in interface org.w3c.dom.Node
See Also:
Node.getPrefix()

setNodeValue

public void setNodeValue(java.lang.String value)
                  throws org.w3c.dom.DOMException
Method setNodeValue

Specified by:
setNodeValue in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException
See Also:
Node.setNodeValue(java.lang.String)

setPrefix

public void setPrefix(java.lang.String prefix)
               throws org.w3c.dom.DOMException
Method setPrefix

Specified by:
setPrefix in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException
See Also:
Node.setPrefix(java.lang.String)

setOwnerDocument

public void setOwnerDocument(org.w3c.dom.Document doc)
Method setOwnerDocument

Parameters:
doc -

getOwnerDocument

public org.w3c.dom.Document getOwnerDocument()
Method getOwnerDocument

Specified by:
getOwnerDocument in interface org.w3c.dom.Node
See Also:
Node.getOwnerDocument()

getAttributes

public org.w3c.dom.NamedNodeMap getAttributes()
Method getAttributes

Specified by:
getAttributes in interface org.w3c.dom.Node
See Also:
Node.getAttributes()

getFirstChild

public org.w3c.dom.Node getFirstChild()
Method getFirstChild

Specified by:
getFirstChild in interface org.w3c.dom.Node
See Also:
Node.getFirstChild()

getLastChild

public org.w3c.dom.Node getLastChild()
Method getLastChild

Specified by:
getLastChild in interface org.w3c.dom.Node
See Also:
Node.getLastChild()

getNextSibling

public org.w3c.dom.Node getNextSibling()
dom Node method

Specified by:
getNextSibling in interface org.w3c.dom.Node

getParentNode

public org.w3c.dom.Node getParentNode()
Specified by:
getParentNode in interface org.w3c.dom.Node

getPreviousSibling

public org.w3c.dom.Node getPreviousSibling()
dom Node method

Specified by:
getPreviousSibling in interface org.w3c.dom.Node

cloneNode

public org.w3c.dom.Node cloneNode(boolean deep)
Specified by:
cloneNode in interface org.w3c.dom.Node

getChildNodes

public org.w3c.dom.NodeList getChildNodes()
DOM Node method

Specified by:
getChildNodes in interface org.w3c.dom.Node

isSupported

public boolean isSupported(java.lang.String arg0,
                           java.lang.String arg1)
Specified by:
isSupported in interface org.w3c.dom.Node

appendChild

public org.w3c.dom.Node appendChild(org.w3c.dom.Node node)
                             throws org.w3c.dom.DOMException
Specified by:
appendChild in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

removeChild

public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
                             throws org.w3c.dom.DOMException
Specified by:
removeChild in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

insertBefore

public org.w3c.dom.Node insertBefore(org.w3c.dom.Node arg0,
                                     org.w3c.dom.Node arg1)
                              throws org.w3c.dom.DOMException
Specified by:
insertBefore in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException
See Also:
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)

replaceChild

public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
                                     org.w3c.dom.Node refChild)
                              throws org.w3c.dom.DOMException
Specified by:
replaceChild in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException
See Also:
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)

equals

public boolean equals(java.lang.Object o)