Class PathNode
java.lang.Object
eu.europa.ec.taxud.validation.reader.path.PathNode
- Direct Known Subclasses:
RootNode
PathNode is a node in a tree structure with parent-child relationship. Used to collect information on the
elements position in the xml in order to generate the x-path-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PathNode
Instantiates a new Path node.- Parameters:
nodeName- the node name
-
-
Method Details
-
addChild
Creates a pathNode with the provided name and adds it as a child to this PathNode- Parameters:
nodeName- the nodeName of this child- Returns:
- the child
-
getPath
Gets path.- Returns:
- the x-path of this PathNode
-
getNodeName
Gets node name.- Returns:
- the name of the node
-
getParent
Gets parent.- Returns:
- The parent node
-