|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.axis.message.NodeImpl
public class 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
|
| Method Summary | |
|---|---|
Node |
appendChild(Node newChild)
|
Node |
cloneNode(boolean deep)
|
short |
compareDocumentPosition(Node other)
|
void |
detachNode()
Removes this Node object from the tree. |
NamedNodeMap |
getAttributes()
|
String |
getBaseURI()
|
NodeList |
getChildNodes()
|
Object |
getFeature(String feature,
String version)
|
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 |
getTextContent()
|
Object |
getUserData(String key)
|
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 |
isDefaultNamespace(String namespaceURI)
|
boolean |
isEqualNode(Node arg)
|
boolean |
isSameNode(Node other)
|
boolean |
isSupported(String feature,
String version)
|
String |
lookupNamespaceURI(String prefix)
|
String |
lookupPrefix(String namespaceURI)
|
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 |
setTextContent(String textContent)
|
Object |
setUserData(String key,
Object data,
UserDataHandler handler)
|
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()
public javax.xml.soap.SOAPElement getParentElement()
public void setParentElement(javax.xml.soap.SOAPElement parent)
throws javax.xml.soap.SOAPException
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()
public void setValue(String value)
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()
public 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()
hashCode in class Objectpublic String toString()
toString in class Objectpublic String getBaseURI()
getBaseURI in interface Node
public short compareDocumentPosition(Node other)
throws DOMException
compareDocumentPosition in interface NodeDOMException
public String getTextContent()
throws DOMException
getTextContent in interface NodeDOMException
public void setTextContent(String textContent)
throws DOMException
setTextContent in interface NodeDOMExceptionpublic boolean isSameNode(Node other)
isSameNode in interface Nodepublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface Nodepublic boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace in interface Nodepublic String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface Nodepublic boolean isEqualNode(Node arg)
isEqualNode in interface Node
public Object getFeature(String feature,
String version)
getFeature in interface Node
public Object setUserData(String key,
Object data,
UserDataHandler handler)
setUserData in interface Nodepublic Object getUserData(String key)
getUserData in interface Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||