|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.blackboard.path.Path
public class Path
String format of attribute path is "attributeName1@index1/attributeName2@index2/...". the specification of index is optional and defaults to 0. if the index refers to a literal or a sub-object depends on methods getting the argument
| Field Summary | |
|---|---|
static char |
SEPARATOR
The Constant SEPARATOR. |
| Constructor Summary | |
|---|---|
Path()
Instantiates a new path. |
|
Path(Path path)
Instantiates a new path by a given Path object. |
|
Path(java.lang.String path)
Instantiates a new path by parsing the attribute path string. |
|
| Method Summary | |
|---|---|
Path |
add(PathStep step)
Extends path with the given PathStep. |
Path |
add(java.lang.String attributeName)
Creates PathStep and extends path with it. |
Path |
add(java.lang.String attributeName,
int index)
Creates PathStep and extends path with it. |
boolean |
equals(java.lang.Object other)
|
PathStep |
get(int index)
Gets the PathStep at the given index. |
int |
getIndex(int index)
Gets the PathStep index at the given index. |
java.lang.String |
getName(int index)
Gets the PathStep name at the given index. |
int |
hashCode()
|
Path |
incIndex()
Increase index of tail step by 1. |
boolean |
isEmpty()
Checks if the Path is empty. |
java.util.Iterator<PathStep> |
iterator()
|
int |
length()
Length of the Path. |
java.lang.String |
toString()
|
Path |
up()
Remove tail element of this. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final char SEPARATOR
| Constructor Detail |
|---|
public Path()
public Path(Path path)
path - the pathpublic Path(java.lang.String path)
path - the path| Method Detail |
|---|
public Path add(PathStep step)
step - the step
public Path add(java.lang.String attributeName)
attributeName - the attribute name
public Path add(java.lang.String attributeName,
int index)
attributeName - the attribute nameindex - the index
public Path up()
public Path incIndex()
public java.util.Iterator<PathStep> iterator()
iterator in interface java.lang.Iterable<PathStep>public boolean isEmpty()
public PathStep get(int index)
index - the index
public java.lang.String getName(int index)
index - the index
public int getIndex(int index)
index - the index
public int length()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||