Class ComponentPath


  • public class ComponentPath
    extends java.lang.Object
    Represents a path to a component, supporting the logic needed to derive the most appropriate relative path to reference one component from another.
    • Constructor Detail

      • ComponentPath

        public ComponentPath​(java.lang.String... parts)
      • ComponentPath

        public ComponentPath​(java.util.List<java.lang.String> parts)
    • Method Detail

      • getLastPart

        public java.lang.String getLastPart()
      • getParts

        public java.util.List<java.lang.String> getParts()
      • isSession

        public boolean isSession()
      • isPage

        public boolean isPage()
      • isView

        public boolean isView()
      • isParent

        public boolean isParent()
      • isThis

        public boolean isThis()
      • isAnyShortcut

        public boolean isAnyShortcut()
      • isRelative

        public boolean isRelative()
      • relativePathTo

        public ComponentPath relativePathTo​(ComponentPath destination)
        Creates a ComponentPath that will resolve to the given destination path when evaluated from the context of the component represented by this path.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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