|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis.message.NodeImpl
An implemenation of the abstract Node.
This class should not expose functionality that is not part ofNode. Client code should use javax.xml.soap.Node instead of this class.
When creating a DOM2 tree the objects maintained by the tree are org.w3c.dom.Node objects
and not javax.xml.soap.Node objects.
This implementation schields the client from the the underlying DOM2 tree, returning javax.xml.soap.Node
objects.
| Field Summary | |
protected Node |
domNode
|
protected SOAPElementImpl |
soapParent
|
| 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 |
| Method Summary | |
Node |
appendChild(Node newChild)
|
Node |
cloneNode(boolean deep)
|
void |
detachNode()
Removes this Node object from the tree. |
NamedNodeMap |
getAttributes()
|
NodeList |
getChildNodes()
|
Node |
getFirstChild()
|
Node |
getLastChild()
|
String |
getLocalName()
|
String |
getNamespaceURI()
|
Node |
getNextSibling()
|
String |
getNodeName()
|
short |
getNodeType()
|
String |
getNodeValue()
|
Document |
getOwnerDocument()
|
javax.xml.soap.SOAPElement |
getParentElement()
Returns the parent node of this Node object. |
Node |
getParentNode()
|
String |
getPrefix()
|
Node |
getPreviousSibling()
|
String |
getValue()
Returns the value of this node if this is a Text node or the value of the immediate child of this node otherwise. |
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
int |
hashCode()
|
Node |
insertBefore(Node newChild,
Node refChild)
|
boolean |
isSupported(String feature,
String version)
|
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 |
setNodeValue(String nodeValue)
|
void |
setParentElement(javax.xml.soap.SOAPElement parent)
Sets the parent of this Node object to the given SOAPElement object. |
void |
setPrefix(String prefix)
|
void |
setValue(String value)
If this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected SOAPElementImpl soapParent
protected Node domNode
| Method Detail |
public void detachNode()
detachNode in interface javax.xml.soap.Nodepublic javax.xml.soap.SOAPElement getParentElement()
getParentElement in interface javax.xml.soap.Node
public void setParentElement(javax.xml.soap.SOAPElement parent)
throws javax.xml.soap.SOAPException
setParentElement in interface javax.xml.soap.Nodeparent - the SOAPElement object to be set as the parent of this Node object
javax.xml.soap.SOAPException - if there is a problem in setting the parent to the given nodepublic String getValue()
getValue in interface javax.xml.soap.Nodepublic void setValue(String value)
setValue in interface javax.xml.soap.Nodevalue - A value string
IllegalStateException - if the node is not a Text node and either has more than one child node or has a child node that is not a Text node.public void recycleNode()
recycleNode in interface javax.xml.soap.Nodepublic String getNodeName()
getNodeName in interface Node
public String getNodeValue()
throws DOMException
getNodeValue in interface NodeDOMException
public void setNodeValue(String nodeValue)
throws DOMException
setNodeValue in interface NodeDOMExceptionpublic short getNodeType()
getNodeType in interface Nodepublic Node getParentNode()
getParentNode in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic Node getPreviousSibling()
getPreviousSibling in interface Nodepublic Node getNextSibling()
getNextSibling in interface Nodepublic NamedNodeMap getAttributes()
getAttributes in interface Nodepublic Document getOwnerDocument()
getOwnerDocument in interface Node
public Node insertBefore(Node newChild,
Node refChild)
throws DOMException
insertBefore in interface NodeDOMException
public Node replaceChild(Node newChild,
Node oldChild)
throws DOMException
replaceChild in interface NodeDOMException
public Node removeChild(Node oldChild)
throws DOMException
removeChild in interface NodeDOMException
public Node appendChild(Node newChild)
throws DOMException
appendChild in interface NodeDOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic Node cloneNode(boolean deep)
cloneNode in interface Nodepublic void normalize()
normalize in interface Node
public boolean isSupported(String feature,
String version)
isSupported in interface Nodepublic String getNamespaceURI()
getNamespaceURI in interface Nodepublic String getPrefix()
getPrefix in interface Node
public void setPrefix(String prefix)
throws DOMException
setPrefix in interface NodeDOMExceptionpublic String getLocalName()
getLocalName in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic int hashCode()
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||