Class ElementPath

  • Direct Known Subclasses:
    ElementSelector

    public class ElementPath
    extends Object
    A element path characterizes a traversal path in an XML document.
    Since:
    1.1.0
    Author:
    Ceki Gulcu
    • Constructor Detail

      • ElementPath

        public ElementPath()
      • ElementPath

        public ElementPath​(List<String> list)
      • ElementPath

        public ElementPath​(String pathStr)
        Build an elementPath from a string.

        Note that "/x" is considered equivalent to "x" and to "x/"

    • Method Detail

      • getCopyOfPartList

        public List<String> getCopyOfPartList()
      • push

        public void push​(String s)
      • get

        public String get​(int i)
      • pop

        public void pop()
      • peekLast

        public String peekLast()
      • size

        public int size()
      • toStableString

        protected String toStableString()