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()
XmlFieldNode
getDocumentNode
in interface XmlFieldNode
public Node getNode()
XmlFieldNode
getNode
in interface XmlFieldNode
public String getNodeName()
XmlFieldNode
getNodeName
in interface XmlFieldNode
public short getNodeType()
XmlFieldNode
getNodeType
in interface XmlFieldNode
public XmlFieldNode getParentNode()
XmlFieldNode
getParentNode
in interface XmlFieldNode
public String getTextContent()
XmlFieldNode
getTextContent
in interface XmlFieldNode
public boolean hasAttributes()
XmlFieldNode
hasAttributes
in interface XmlFieldNode
public void setNode(Node node)
public void setTextContent(String textContent)
XmlFieldNode
setTextContent
in interface XmlFieldNode
Copyright © 2011–2014. All rights reserved.