public static class PropertyPath.Path extends Object implements RevisionHandler
| Constructor and Description |
|---|
PropertyPath.Path(String path)
uses the given dot-path
|
PropertyPath.Path(String[] elements)
uses the given array as elements for the path
|
PropertyPath.Path(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
|
String |
getRevision()
Returns the revision string.
|
static PropertyPath.Path |
parsePath(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.
|
String |
toString()
returns the structure again as a dot-path
|
public PropertyPath.Path(String path)
path - path in dot-notationpublic PropertyPath.Path(Vector<PropertyPath.PathElement> elements)
elements - the PathElements to usepublic PropertyPath.Path(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(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 String toString()
public String getRevision()
getRevision in interface RevisionHandlerCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.