public class NodeImpl extends Object implements Node
org.w3c.dom.Node
objects
and not javax.xml.soap.Node
objects.
This implementation shields the client from the the underlying DOM2 tree, returning javax.xml.soap.Node
objects.Modifier and Type | Field and Description |
---|---|
protected Node |
domNode |
protected SOAPElementImpl |
soapParent |
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
Modifier and Type | Method and Description |
---|---|
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() |
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(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() |
protected SOAPElementImpl soapParent
protected Node domNode
public void detachNode()
public SOAPElement getParentElement()
Node.setParentElement(javax.xml.soap.SOAPElement)
public void setParentElement(SOAPElement parent) throws SOAPException
parent
- the SOAPElement object to be set as the parent of this Node objectSOAPException
- if there is a problem in setting the parent to the given nodeNode.getParentElement()
public String getValue()
public void setValue(String value)
value
- A value stringIllegalStateException
- 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 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 boolean isSupported(String feature, String version)
isSupported
in interface Node
public String getNamespaceURI()
getNamespaceURI
in interface Node
public void setPrefix(String prefix) throws DOMException
setPrefix
in interface Node
DOMException
public String getLocalName()
getLocalName
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition
in interface Node
DOMException
public String getBaseURI()
getBaseURI
in interface Node
public Object getFeature(String feature, String version)
getFeature
in interface Node
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
public Object getUserData(String key)
getUserData
in interface Node
public boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace
in interface Node
public boolean isEqualNode(Node arg)
isEqualNode
in interface Node
public boolean isSameNode(Node other)
isSameNode
in interface Node
public String lookupNamespaceURI(String prefix)
lookupNamespaceURI
in interface Node
public String lookupPrefix(String namespaceURI)
lookupPrefix
in interface Node
public void setTextContent(String textContent) throws DOMException
setTextContent
in interface Node
DOMException
public Object setUserData(String key, Object data, UserDataHandler handler)
setUserData
in interface Node
Copyright © 2018 JBoss by Red Hat. All rights reserved.