Class ComponentPath
- java.lang.Object
- 
- com.inductiveautomation.perspective.designer.model.ComponentPath
 
- 
 public class ComponentPath extends java.lang.ObjectRepresents a path to a component, supporting the logic needed to derive the most appropriate relative path to reference one component from another.
- 
- 
Field SummaryFields Modifier and Type Field Description static ComponentPathPAGEstatic java.lang.StringPAGE_SHORTCUTstatic ComponentPathPARENTstatic java.lang.StringPARENT_SHORTCUTstatic java.lang.StringSESSION_SHORTCUTstatic ComponentPathTHISstatic java.lang.StringTHIS_SHORTCUTstatic ComponentPathVIEWstatic java.lang.StringVIEW_SHORTCUT
 - 
Constructor SummaryConstructors Constructor Description ComponentPath(java.lang.String... parts)ComponentPath(java.util.List<java.lang.String> parts)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetLastPart()java.util.List<java.lang.String>getParts()booleanisAnyShortcut()booleanisPage()booleanisParent()booleanisRelative()booleanisSession()booleanisThis()booleanisView()ComponentPathrelativePathTo(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.java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
SESSION_SHORTCUTpublic static final java.lang.String SESSION_SHORTCUT - See Also:
- Constant Field Values
 
 - 
VIEW_SHORTCUTpublic static final java.lang.String VIEW_SHORTCUT - See Also:
- Constant Field Values
 
 - 
PAGE_SHORTCUTpublic static final java.lang.String PAGE_SHORTCUT - See Also:
- Constant Field Values
 
 - 
THIS_SHORTCUTpublic static final java.lang.String THIS_SHORTCUT - See Also:
- Constant Field Values
 
 - 
PARENT_SHORTCUTpublic static final java.lang.String PARENT_SHORTCUT - See Also:
- Constant Field Values
 
 - 
VIEWpublic static final ComponentPath VIEW 
 - 
PAGEpublic static final ComponentPath PAGE 
 - 
THISpublic static final ComponentPath THIS 
 - 
PARENTpublic static final ComponentPath PARENT 
 
- 
 - 
Method Detail- 
getLastPartpublic java.lang.String getLastPart() 
 - 
getPartspublic java.util.List<java.lang.String> getParts() 
 - 
isSessionpublic boolean isSession() 
 - 
isPagepublic boolean isPage() 
 - 
isViewpublic boolean isView() 
 - 
isParentpublic boolean isParent() 
 - 
isThispublic boolean isThis() 
 - 
isAnyShortcutpublic boolean isAnyShortcut() 
 - 
isRelativepublic boolean isRelative() 
 - 
relativePathTopublic 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.
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-