public class VerbPathStep
extends java.lang.Object
VerbStepPredicate
.
Only the nodes that satisfy all the predicates are represented by the step.
The value of each node is obtained by calling the method getgetGiftItem()
. The getGiftItem()
. is defined
in the parent node of the current step.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
Class name
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
VerbPathStep(java.lang.String aNodeTest,
VerbStepPredicate[] thePredicates)
Constructs an instance of VerbPathStep
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getNodeTest() |
java.util.List |
getPredicates() |
java.lang.Object |
getValue(VerbPathContext context)
This method gets the value of the node that this step is representing.
|
int |
hashCode()
Returns the hash code of an instance of this class
|
boolean |
isNodeTest(java.lang.String pNodeTest)
Determines if a given string is a NodeTest
|
java.lang.String |
toString() |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public VerbPathStep(java.lang.String aNodeTest, VerbStepPredicate[] thePredicates)
aNodeTest
- The nodeTest of the step. Each nodeTest is
represented by a getter and a setter. For example, if we have
getProperty() and setProperty(), then the nodeTest will be "property".thePredicates
- The predicates that filter the matching stepspublic java.lang.String getNodeTest()
public java.lang.Object getValue(VerbPathContext context)
context
- the computation context for this steppublic java.util.List getPredicates()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isNodeTest(java.lang.String pNodeTest)
nodeTest
- The nodeTest to be compared withpublic final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- objectpublic int hashCode()
hashCode
in class java.lang.Object