Class Path


  • public final class Path
    extends Object
    Simple XPath like class.

    Can only handle relative paths like: foo, foo/bar foo[@bar='fred'], foo/@bar, ...

    Author:
    Damien Carbonne
    • Constructor Detail

      • Path

        public Path​(String name)
    • Method Detail

      • normalize

        public Path normalize()
      • getName

        public String getName()
      • getParts

        public Part[] getParts()
      • getPart

        public Part getPart​(int index)
      • getLastPart

        public Part getLastPart()
      • getLength

        public int getLength()
      • getParent

        public Path getParent()
      • getSubPath

        public Path getSubPath​(int beginIndex,
                               int endIndex)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object