public class VerbPath
extends java.lang.Object
VerbPathContext
.
A path has zero or more steps. Each step represents a graph node, which is
a Java object. Please see VerbPathStep
for details. sModifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
Name of this class
|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
static java.lang.String |
PATH_SEPARATOR
The path separator of a
VerbPath |
Constructor and Description |
---|
VerbPath(java.util.List stepList) |
VerbPath(VerbPathStep[] theSteps)
Constructs a verb path from a list of steps
|
Modifier and Type | Method and Description |
---|---|
void |
addStep(VerbPathStep aStep)
Appends a given step to the path
|
boolean |
endsWith(VerbPathContext context,
java.lang.Object endNode,
java.lang.String endAttr)
Check if a path ends with an attribute of a given object in a given
context
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDescriptor() |
java.util.List |
getSteps() |
java.lang.Object |
getValue(VerbPathContext context)
Gets the value designated by this path within the given context.
|
boolean |
hasDescriptor(java.lang.String aDescriptor)
Check if the path matches the given descriptor
|
int |
hashCode() |
boolean |
isEmpty() |
java.lang.String |
toString() |
public static final java.lang.String COPYRIGHT
public static final java.lang.String PATH_SEPARATOR
VerbPath
public static final java.lang.String CLASS_NAME
public VerbPath(java.util.List stepList)
steps
- a List that contains VerbPathStep
public VerbPath(VerbPathStep[] theSteps)
steps
- sequence of the steps for this pathpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean isEmpty()
public java.util.List getSteps()
public void addStep(VerbPathStep aStep)
aStep
- the step to be appended to the pathpublic java.lang.Object getValue(VerbPathContext context)
context
- the context in which the path is effectivepublic java.lang.String getDescriptor()
public boolean hasDescriptor(java.lang.String aDescriptor)
aDescriptor
- A descriptor that describes a pathpublic boolean endsWith(VerbPathContext context, java.lang.Object endNode, java.lang.String endAttr)
context
- the context of the pathendNode
- the last node on a pathendAttr
- the attribute name of the last nodepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to be comparedpublic int hashCode()
hashCode
in class java.lang.Object