public interface LXPath
Modifier and Type | Method and Description |
---|---|
static LXPath |
get(LXComponent root,
String path)
Globally retrieves an LX parameter at a certain scope in the LX hierarchy
|
static LXPath |
get(LX lx,
String path)
Globally retrieves an LX object with a path in the hierarchy
|
default String |
getCanonicalLabel()
Returns the canonical user-facing label of this object.
|
default String |
getCanonicalLabel(LXComponent root)
Returns the canonical user-facing label of this component.
|
default String |
getCanonicalPath()
Gets the canonical path of a Path object all the way up its chain
|
default String |
getCanonicalPath(LXComponent root)
Gets the canonical path of a Path object up to a given root
|
static LXComponent |
getComponent(LXComponent root,
String path)
Globally retrieves an LX component at a certain scope in the LX hierarchy
|
static LXComponent |
getComponent(LX lx,
String path)
Globally retrieves an LX component with a path in the hierarchy
|
String |
getLabel()
Returns the user-facing label of this component
|
static LXParameter |
getParameter(LXComponent root,
String path)
Globally retrieves an LX parameter at a certain scope in the LX hierarchy
|
static LXParameter |
getParameter(LX lx,
String path)
Globally retrieves an LX parameter with a path in the hierarchy
|
LXComponent |
getParent()
Returns the component that this object belongs to
|
String |
getPath()
Returns the immediate path of this component, relative to its parent
|
String getPath()
String getLabel()
LXComponent getParent()
default String getCanonicalPath(LXComponent root)
root
- Root componentdefault String getCanonicalPath()
default String getCanonicalLabel()
default String getCanonicalLabel(LXComponent root)
root
- Root object to get label relative tostatic LXPath get(LX lx, String path)
lx
- LX instancepath
- Canonical path of objectstatic LXComponent getComponent(LX lx, String path)
lx
- LX instancepath
- Canonical path of objectstatic LXParameter getParameter(LX lx, String path)
lx
- LX instancepath
- Canonical path of objectstatic LXPath get(LXComponent root, String path)
root
- LX root scopepath
- Canonical path of objectstatic LXComponent getComponent(LXComponent root, String path)
root
- LX root scopepath
- Canonical path of objectstatic LXParameter getParameter(LXComponent root, String path)
root
- LX root scopepath
- Canonical path of objectLX library by Mark C. Slee. © 2012-2020