|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.Node
public 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.Node
parent
- 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.Node
public void setValue(String value)
setValue
in interface javax.xml.soap.Node
value
- 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.Node
public String getNodeName()
getNodeName
in interface Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in interface Node
DOMException
public short getNodeType()
getNodeType
in interface Node
public Node getParentNode()
getParentNode
in interface Node
public NodeList getChildNodes()
getChildNodes
in interface Node
public Node getFirstChild()
getFirstChild
in interface Node
public Node getLastChild()
getLastChild
in interface Node
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public Node getNextSibling()
getNextSibling
in interface Node
public NamedNodeMap getAttributes()
getAttributes
in interface Node
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
DOMException
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
DOMException
public boolean hasChildNodes()
hasChildNodes
in interface Node
public Node cloneNode(boolean deep)
public void normalize()
public boolean isSupported(String feature, String version)
isSupported
in interface Node
public String getNamespaceURI()
getNamespaceURI
in interface Node
public String getPrefix()
public void setPrefix(String prefix) throws DOMException
DOMException
public String getLocalName()
getLocalName
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public int hashCode()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |