Class XNodePathBuilder

java.lang.Object
eu.europa.ec.taxud.validation.reader.XNodePathBuilder
All Implemented Interfaces:
XPathBuilderIntf

public class XNodePathBuilder extends Object implements XPathBuilderIntf
XNodePathBuilder is an XML XPath builder to calculate and store Node xpath.
  • Constructor Details

    • XNodePathBuilder

      public XNodePathBuilder()
  • Method Details

    • moveForward

      public void moveForward(String localName)
      Creates a pathNode with the given name and moves forward to the newly created pathNode
      Specified by:
      moveForward in interface XPathBuilderIntf
      Parameters:
      localName - the local name
    • getPath

      public String getPath()
      Return the current Xpath.
      Specified by:
      getPath in interface XPathBuilderIntf
      Returns:
      String the current Xpath.
    • moveBackward

      public void moveBackward()
      Move one step backward in the pathNode tree
      Specified by:
      moveBackward in interface XPathBuilderIntf
    • toString

      public String toString()
      Overrides:
      toString in class Object