Class ContentPath


  • @PublicApi
    public final class ContentPath
    extends java.lang.Object
    • Method Detail

      • getElement

        public java.lang.String getElement​(int index)
      • isRoot

        public boolean isRoot()
      • elementCount

        public int elementCount()
      • getAncestorPath

        public ContentPath getAncestorPath​(int deep)
      • isAbsolute

        public boolean isAbsolute()
      • isRelative

        public boolean isRelative()
      • hasName

        public boolean hasName()
      • getName

        public final java.lang.String getName()
      • isChildOf

        public boolean isChildOf​(ContentPath possibleParentPath)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(ContentPath contentPath)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • from

        public static ContentPath from​(java.lang.String path)