|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextgrid.api.pom.Expression
public abstract class Expression
Expression wrapper. Each subclass is responsible of implementing a specific language syntax.
Expressions are immutable objects. Their contents cannot be changed after construction, and a new instance must be created if a modification is required.
| Constructor Summary | |
|---|---|
protected |
Expression(java.lang.String lang,
java.lang.String text)
Creates a new instance. |
| Method Summary | |
|---|---|
abstract boolean |
boolEval(ProcessEnvironment env,
java.lang.Object o)
Evaluate this XPath expression as a boolean. |
java.lang.String |
getLang()
Gets the language of this expression. |
java.lang.String |
getText()
Gets the text value. |
abstract void |
validate()
Checks that the expression is valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Expression(java.lang.String lang,
java.lang.String text)
throws ExpressionException
lang - The expression languagetext - The expression text
ExpressionException - If an error occurs| Method Detail |
|---|
public final java.lang.String getLang()
public final java.lang.String getText()
public abstract void validate()
throws ExpressionException
ExpressionException - If the validation fails
public abstract boolean boolEval(ProcessEnvironment env,
java.lang.Object o)
throws ExpressionException
env - Environment for global configurationo - The node set where the expression is to be evaluated
ExpressionException - If an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||