java.lang.Object
eu.europa.ec.taxud.validation.reader.path.PathNode
Direct Known Subclasses:
RootNode

public class PathNode extends Object
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 Details

    • PathNode

      protected PathNode(String nodeName)
      Instantiates a new Path node.
      Parameters:
      nodeName - the node name
  • Method Details

    • addChild

      public PathNode addChild(String nodeName)
      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

      public String getPath()
      Gets path.
      Returns:
      the x-path of this PathNode
    • getNodeName

      public String getNodeName()
      Gets node name.
      Returns:
      the name of the node
    • getParent

      public PathNode getParent()
      Gets parent.
      Returns:
      The parent node