|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.PropertyPath.Path
public static class PropertyPath.Path
Contains a (property) path structure
Constructor Summary | |
---|---|
PropertyPath.Path(java.lang.String path)
uses the given dot-path |
|
PropertyPath.Path(java.lang.String[] elements)
uses the given array as elements for the path |
|
PropertyPath.Path(java.util.Vector elements)
uses the vector with PathElement objects to initialize with |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyPath.Path(java.lang.String path)
path
- path in dot-notationpublic PropertyPath.Path(java.util.Vector elements)
elements
- the PathElements to usepublic PropertyPath.Path(java.lang.String[] elements)
elements
- the path elements to useMethod Detail |
---|
public PropertyPath.PathElement get(int index)
index
- the index of the element to return
public int size()
public static PropertyPath.Path parsePath(java.lang.String path)
path
- path to work on
public PropertyPath.Path subpath(int startIndex)
startIndex
- the first element of the subpath
public PropertyPath.Path subpath(int startIndex, int endIndex)
startIndex
- the first element of the subpathendIndex
- the element that is after the last added element
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |