public static class PropertyPath.Path extends java.lang.Object implements RevisionHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector<PropertyPath.PathElement> |
m_Elements
the structure
|
| Modifier | Constructor and Description |
|---|---|
protected |
Path()
default constructor, only used internally
|
|
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 |
|---|---|
protected java.util.Vector<PropertyPath.PathElement> |
breakUp(java.lang.String path)
breaks up the given path and returns it as vector
|
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
|
protected java.util.Vector<PropertyPath.PathElement> m_Elements
protected 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 useprotected java.util.Vector<PropertyPath.PathElement> breakUp(java.lang.String path)
path - the path to break uppublic 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