public class DomNode extends Object implements XmlFieldNode
ATTRIBUTE_NODE, ELEMENT_NODE, TEXT_NODE, UNKNOW_NODE| Modifier and Type | Method and Description |
|---|---|
XmlFieldNode |
getDocumentNode()
Get the document node
|
Node |
getNode()
Get the underlying node
|
String |
getNodeName()
Get the xml node name of the underlying node
|
short |
getNodeType()
Get the node type.
|
XmlFieldNode |
getParentNode()
Retrieve the parent node
|
String |
getTextContent()
Get the node content as string.
|
boolean |
hasAttributes()
Check if the current node has attributes
|
void |
setNode(Node node) |
void |
setTextContent(String textContent)
Set the node text content
|
public DomNode(Node node)
public XmlFieldNode getDocumentNode()
XmlFieldNodegetDocumentNode in interface XmlFieldNodepublic Node getNode()
XmlFieldNodegetNode in interface XmlFieldNodepublic String getNodeName()
XmlFieldNodegetNodeName in interface XmlFieldNodepublic short getNodeType()
XmlFieldNodegetNodeType in interface XmlFieldNodepublic XmlFieldNode getParentNode()
XmlFieldNodegetParentNode in interface XmlFieldNodepublic String getTextContent()
XmlFieldNodegetTextContent in interface XmlFieldNodepublic boolean hasAttributes()
XmlFieldNodehasAttributes in interface XmlFieldNodepublic void setNode(Node node)
public void setTextContent(String textContent)
XmlFieldNodesetTextContent in interface XmlFieldNodeCopyright © 2011–2014. All rights reserved.