java.lang.Object
com.inductiveautomation.perspective.designer.model.ComponentPath

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

  • Constructor Details

    • ComponentPath

      public ComponentPath(String... parts)
    • ComponentPath

      public ComponentPath(List<String> parts)
  • Method Details

    • getLastPart

      public String getLastPart()
    • getParts

      public List<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(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object