public static class PropertyPath.Path extends java.lang.Object implements RevisionHandler
| Constructor and Description |
|---|
Path(java.lang.String path)
uses the given dot-path
|
Path(java.lang.String[] elements)
uses the given array as elements for the path
|
Path(java.util.Vector<PropertyPath.PathElement> elements)
uses the vector with PathElement objects to initialize with
|
| Modifier and Type | Method and Description |
|---|---|
PropertyPath.PathElement |
get(int index)
returns the element at the given index
|
java.lang.String |
getRevision()
Returns the revision string.
|
static PropertyPath.Path |
parsePath(java.lang.String path)
returns a path object based on the given path string
|
int |
size()
returns the number of path elements of this structure
|
PropertyPath.Path |
subpath(int startIndex)
returns a subpath of the current structure, starting with the specified
element index up to the end
|
PropertyPath.Path |
subpath(int startIndex,
int endIndex)
returns a subpath of the current structure, starting with the specified
element index up.
|
java.lang.String |
toString()
returns the structure again as a dot-path
|
public Path(java.lang.String path)
path - path in dot-notationpublic Path(java.util.Vector<PropertyPath.PathElement> elements)
elements - the PathElements to usepublic Path(java.lang.String[] elements)
elements - the path elements to usepublic PropertyPath.PathElement get(int index)
index - the index of the element to returnpublic int size()
public static PropertyPath.Path parsePath(java.lang.String path)
path - path to work onpublic PropertyPath.Path subpath(int startIndex)
startIndex - the first element of the subpathpublic PropertyPath.Path subpath(int startIndex, int endIndex)
startIndex - the first element of the subpathendIndex - the element that is after the last added elementpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandler