|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextgrid.api.pom.Expression
com.gridsystems.nextgrid.api.pom.expr.XPathExpression
public final class XPathExpression
XPath expression wrapper to simplify expression handling.
XPath is focused on retrieving and selecting nodes from an XML document. In this case we use its ability in the following way:
Constructor Summary | |
---|---|
XPathExpression(java.lang.String text)
Creates a new instance. |
|
XPathExpression(java.lang.String text,
int min,
int max)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
boolEval(nextgrid.api.env.ProcessEnvironment env,
java.lang.Object o)
|
org.apache.commons.jxpath.JXPathContext |
getRootContext(nextgrid.api.env.ProcessEnvironment env)
Gets a shared context instance for the specified Process Environment. |
void |
validate()
|
Methods inherited from class nextgrid.api.pom.Expression |
---|
getLang, getText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPathExpression(java.lang.String text) throws nextgrid.api.pom.ExpressionException
text
- The XPath expression
nextgrid.api.pom.ExpressionException
- If a compilation error occurspublic XPathExpression(java.lang.String text, int min, int max) throws nextgrid.api.pom.ExpressionException
text
- The XPath expressionmin
- The minimum number of resultsmax
- The maximum number of results
nextgrid.api.pom.ExpressionException
- If a compilation error occursMethod Detail |
---|
public void validate() throws nextgrid.api.pom.ExpressionException
validate
in class nextgrid.api.pom.Expression
nextgrid.api.pom.ExpressionException
public boolean boolEval(nextgrid.api.env.ProcessEnvironment env, java.lang.Object o) throws nextgrid.api.pom.ExpressionException
boolEval
in class nextgrid.api.pom.Expression
nextgrid.api.pom.ExpressionException
public org.apache.commons.jxpath.JXPathContext getRootContext(nextgrid.api.env.ProcessEnvironment env)
This context will contain common variable definitions.
env
- ProcessEnvironment for which to get a context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |