|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XPathProcessor
This is the interface of the XPath processor.
All methods have two variants: one which takes a PrefixResolver as an extra
argument, and one which doesn't. The PrefixResolver
interface allows to provide
your own namespace prefix resolving.
Field Summary | |
---|---|
static String |
ROLE
The role implemented by an XSLTProcessor . |
Method Summary | |
---|---|
boolean |
evaluateAsBoolean(org.w3c.dom.Node contextNode,
String str)
Evaluate XPath expression within a context. |
boolean |
evaluateAsBoolean(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
Number |
evaluateAsNumber(org.w3c.dom.Node contextNode,
String str)
Evaluate XPath expression within a context. |
Number |
evaluateAsNumber(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
String |
evaluateAsString(org.w3c.dom.Node contextNode,
String str)
Evaluate XPath expression within a context. |
String |
evaluateAsString(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
String str)
Use an XPath string to select a nodelist. |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
Use an XPath string to select a nodelist. |
org.w3c.dom.Node |
selectSingleNode(org.w3c.dom.Node contextNode,
String str)
Use an XPath string to select a single node. |
org.w3c.dom.Node |
selectSingleNode(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
Use an XPath string to select a single node. |
Field Detail |
---|
static final String ROLE
XSLTProcessor
.
Method Detail |
---|
boolean evaluateAsBoolean(org.w3c.dom.Node contextNode, String str)
contextNode
- The context node.str
- A valid XPath string.
Number evaluateAsNumber(org.w3c.dom.Node contextNode, String str)
contextNode
- The context node.str
- A valid XPath string.
String evaluateAsString(org.w3c.dom.Node contextNode, String str)
contextNode
- The context node.str
- A valid XPath string.
org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode, String str)
contextNode
- The node to start searching from.str
- A valid XPath string.
org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode, String str)
contextNode
- The node to start searching from.str
- A valid XPath string.
boolean evaluateAsBoolean(org.w3c.dom.Node contextNode, String str, PrefixResolver resolver)
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
Number evaluateAsNumber(org.w3c.dom.Node contextNode, String str, PrefixResolver resolver)
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
String evaluateAsString(org.w3c.dom.Node contextNode, String str, PrefixResolver resolver)
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode, String str, PrefixResolver resolver)
contextNode
- The node to start searching from.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode, String str, PrefixResolver resolver)
contextNode
- The node to start searching from.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |