public class XNode extends Object implements Serializable
Constructor and Description |
---|
XNode()
Default Constructor.
|
XNode(Node node,
String xPath)
Constructor.
|
XNode(Node node,
String xPath,
String noIndexXPath)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getDepth()
Gets the depth of the Node in the Document.
|
String |
getName()
Gets Node Name.
|
Node |
getNode()
Gets Node.
|
String |
getNoIndexXPath()
Gets XPath expression without the indexes.
|
int |
getPosition()
Gets the position of the Node under the parent.
|
String |
getValue()
Gets Node Value.
|
String |
getXPath()
Gets the XPath expression.
|
void |
setDepth(int depth)
Sets the depth of the Node in the Document.
|
void |
setNode(Node node)
Sets Node.
|
void |
setNoIndexXPath(String noIndexXPath)
Sets XPath expression without the indexes.
|
void |
setPosition(int position)
Sets the position of the Node under the parent.
|
void |
setXPath(String xPath)
Sets XPath expression.
|
String |
toString()
Gets String representation of the XNode.
|
public XNode()
public XNode(Node node, String xPath)
node
- the NodexPath
- the XPath expression for the Nodepublic Node getNode()
public void setNode(Node node)
public int getPosition()
public void setPosition(int position)
public int getDepth()
public void setDepth(int depth)
public String getXPath()
public void setXPath(String xPath)
public String getNoIndexXPath()
public void setNoIndexXPath(String noIndexXPath)
public String getValue()
public String getName()
Copyright © 2015. All rights reserved.