|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XPath
Abstraction for holding and evaluating XPaths into XML documents.
XPaths can be evaluated multiple times, but implementations are free to synchronized access so that only one thread at a time may be evaluating the path.
Instances should be created by an XPathFactory (i.e. abstract factory
pattern).
Supported API: true
Extendable: false
XPathFactory| Method Summary | |
|---|---|
Object |
evaluate(Node node_to_operate_on)
Evaluates the xpath relative to the specified node and returns the result as the most appropriate object. |
| Method Detail |
|---|
Object evaluate(Node node_to_operate_on)
throws XPathException
One should not use this method as an excuse to implement poor
code consisting of switches or cascading if-else-ifs where the type
of the result is checked via the instanceof operator.
This method should only be used when a single result type is demanded.
Supported API: true
node_to_operate_on -
XPathException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||