|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.orchestranetworks.schema.Step
A path is a sequence of steps.
A step instance is immutable.
Path| Method Summary | |
abstract String |
format()
Returns the string representation of this step. |
abstract int |
getIndex()
Returns Step index.
|
abstract boolean |
isIndexed()
Returns true if this Step identifies a node child by its position.
|
boolean |
isRelative()
Returns true if this instance is either self or parent step
(. |
boolean |
isRelativeParent()
Returns true if this instance is the parent step (.. |
boolean |
isRelativeSelf()
Returns true if this instance is the self step (. |
static Step |
parse(String aString)
Returns the step corresponding to the String specified. |
Path |
toAbsolutePath()
Returns the absolute path whose unique step is this instance. |
Path |
toParentPath()
Returns the relative path whose first step is 'self' and the second step is this instance. |
Path |
toSelfPath()
Returns the relative path whose first step is 'self' and the second step is this instance. |
Step |
toStepWithoutIndex()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Step parse(String aString)
throws IllegalArgumentException
String specified.
IllegalArgumentException - If step syntax is not correct.format()public abstract String format()
Path.format()public abstract boolean isIndexed()
true if this Step identifies a node child by its position.
First position is 0 (in XPath, first position is 1). For example, in the path para/item[0]/label,
item[0] is an indexed step identifying position 0.
Regarding to JavaBeans, an instance of this class corresponds to an indexed property.
getIndex()public abstract int getIndex()
Step index.
Index starts at 0.
IllegalStateException - If Step is not indexed.toStepWithoutIndex(),
isIndexed()public Step toStepWithoutIndex()
IllegalStateException - If Step is not indexed.isIndexed()public Path toAbsolutePath()
public Path toSelfPath()
public Path toParentPath()
public final boolean isRelative()
true if this instance is either self or parent step
(. or ..).
public final boolean isRelativeSelf()
true if this instance is the self step (.).
Path.SELFpublic final boolean isRelativeParent()
true if this instance is the parent step (..).
Path.PARENT
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.5.2 [0601:0004]
Copyright Orchestra Networks 2000-2008. All rights reserved.