public class XPathConditional extends java.lang.Object implements IConditionExpr
Modifier and Type | Field and Description |
---|---|
private XPathExpression |
expr |
boolean |
hasNow |
java.lang.String |
xpath |
Constructor and Description |
---|
XPathConditional() |
XPathConditional(java.lang.String xpath) |
XPathConditional(XPathExpression expr) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
boolean |
eval(FormInstance model,
EvaluationContext evalContext)
Evaluate this expression against the current models and
context and provide a true or false value.
|
java.util.List<TreeReference> |
evalNodeset(FormInstance model,
EvaluationContext evalContext)
Used for itemsets.
|
java.lang.Object |
evalRaw(FormInstance model,
EvaluationContext evalContext)
Evaluate this expression against the current models and
context and provide the final value of the expression, without
forcing a cast to a boolean value.
|
java.lang.String |
evalReadable(FormInstance model,
EvaluationContext evalContext)
Used for itemsets.
|
XPathExpression |
getExpr() |
java.util.Set<TreeReference> |
getTriggers(TreeReference contextRef)
Provides a list of all of the references that this expression's value depends upon
directly.
|
private static void |
getTriggers(XPathExpression x,
java.util.Set<TreeReference> v,
TreeReference contextRef) |
java.util.List<java.lang.Object> |
pivot(FormInstance model,
EvaluationContext evalContext)
Provide a list of Pivots around which this Condition Expression depends.
|
void |
readExternal(java.io.DataInputStream in,
PrototypeFactory pf) |
java.lang.String |
toString() |
void |
writeExternal(java.io.DataOutputStream out) |
private XPathExpression expr
public java.lang.String xpath
public boolean hasNow
public XPathConditional(java.lang.String xpath) throws XPathSyntaxException
XPathSyntaxException
public XPathConditional(XPathExpression expr)
public XPathConditional()
public XPathExpression getExpr()
public java.lang.Object evalRaw(FormInstance model, EvaluationContext evalContext)
IConditionExpr
evalRaw
in interface IConditionExpr
public boolean eval(FormInstance model, EvaluationContext evalContext)
IConditionExpr
eval
in interface IConditionExpr
public java.lang.String evalReadable(FormInstance model, EvaluationContext evalContext)
IConditionExpr
evalReadable
in interface IConditionExpr
public java.util.List<TreeReference> evalNodeset(FormInstance model, EvaluationContext evalContext)
IConditionExpr
evalNodeset
in interface IConditionExpr
public java.util.Set<TreeReference> getTriggers(TreeReference contextRef)
IConditionExpr
getTriggers
in interface IConditionExpr
private static void getTriggers(XPathExpression x, java.util.Set<TreeReference> v, TreeReference contextRef)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void readExternal(java.io.DataInputStream in, PrototypeFactory pf) throws java.io.IOException, DeserializationException
readExternal
in interface Externalizable
java.io.IOException
DeserializationException
public void writeExternal(java.io.DataOutputStream out) throws java.io.IOException
writeExternal
in interface Externalizable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<java.lang.Object> pivot(FormInstance model, EvaluationContext evalContext) throws UnpivotableExpressionException
IConditionExpr
pivot
in interface IConditionExpr
UnpivotableExpressionException