|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xml.dom.DOMEvaluator
A class that uses XPath expressions to find nodes in a DOM tree
| Constructor Summary | |
DOMEvaluator(String expression,
NamespaceContext nsContext,
ClassLoader loader,
VariableBindings varBindings,
Map properties)
Create a DOMEvaluator based on the passed expression. |
|
DOMEvaluator(String expression,
Node nsNode,
ClassLoader loader,
VariableBindings varBindings,
Map properties)
Create a DOMEvaluator based on the passed expression. |
|
| Method Summary | |
ExpressionValue |
evaluate(Node node)
Evaluate the DOMEvaluator expression |
void |
registerResetCache(XPathResetCache reset)
Register an instance of XPathResetCache so
it will be called when the source document changes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DOMEvaluator(String expression,
Node nsNode,
ClassLoader loader,
VariableBindings varBindings,
Map properties)
throws IllegalArgumentException
expression - The string form of the expression for this query.nsNode - The node to be used to resolve namespace-qualified names.loader - ClassLoader instance to use to load extension functions (null for default).varBindings - VariableBindings instance used to resolve variables.properties - Map instance that contains extended properties (may be null)
IllegalArgumentException - If the expression is not syntactically
correct or if the expression does not result in a node-set.
public DOMEvaluator(String expression,
NamespaceContext nsContext,
ClassLoader loader,
VariableBindings varBindings,
Map properties)
throws IllegalArgumentException
expression - The string form of the expression for this query.nsContext - The namespace context to be used to resolve namespace-loader - ClassLoader instance to use to load extension functions (null for default).varBindings - VariableBindings instance used to resolve variables.
qualified names.properties - Map instance that contains extended properties (may be null)
IllegalArgumentException - If the expression is not syntactically
correct or if the expression does not result in a node-set.| Method Detail |
public ExpressionValue evaluate(Node node)
throws XPathEvaluationException
node - The context node for evaluation of the query
XPathEvaluationException - Thrown if there is an error
during the evaluation of the expression.public void registerResetCache(XPathResetCache reset)
XPathResetCache so
it will be called when the source document changes
registerResetCache in interface XPathResetRegistrarreset - The object implementing XPathResetCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||