public static class DisplayData.Path
extends java.lang.Object
implements java.io.Serializable
Display data items registered directly by a component will have the root
path. If the component includes
a sub-component, its display data will
be registered at the path specified. Each sub-component path is created by appending a child
element to the path of its parent component, forming a hierarchy.
Modifier and Type | Method and Description |
---|---|
static DisplayData.Path |
absolute(java.lang.String firstPath,
java.lang.String... paths)
Construct a path from an absolute component path hierarchy.
|
boolean |
equals(@Nullable java.lang.Object obj) |
DisplayData.Path |
extend(java.lang.String path)
Extend the path by appending a sub-component path.
|
java.util.List<java.lang.String> |
getComponents()
Hierarchy list of component paths making up the full path, starting with the top-level child
component path.
|
int |
hashCode() |
static DisplayData.Path |
root()
Path for display data registered by a top-level component.
|
java.lang.String |
toString() |
public static DisplayData.Path root()
public static DisplayData.Path absolute(java.lang.String firstPath, java.lang.String... paths)
For the root path, use root()
.
firstPath
- Path of the first sub-component.paths
- Additional path components.public java.util.List<java.lang.String> getComponents()
root
path, returns the empty list.public DisplayData.Path extend(java.lang.String path)
Returns a new DisplayData.Path
instance; the originating DisplayData.Path
is not modified.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object