|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 java.lang.String |
ROLE
The role implemented by an XSLTProcessor . |
Method Summary | |
boolean |
evaluateAsBoolean(org.w3c.dom.Node contextNode,
java.lang.String str)
Evaluate XPath expression within a context. |
boolean |
evaluateAsBoolean(org.w3c.dom.Node contextNode,
java.lang.String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
java.lang.Number |
evaluateAsNumber(org.w3c.dom.Node contextNode,
java.lang.String str)
Evaluate XPath expression within a context. |
java.lang.Number |
evaluateAsNumber(org.w3c.dom.Node contextNode,
java.lang.String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
java.lang.String |
evaluateAsString(org.w3c.dom.Node contextNode,
java.lang.String str)
Evaluate XPath expression within a context. |
java.lang.String |
evaluateAsString(org.w3c.dom.Node contextNode,
java.lang.String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String str)
Use an XPath string to select a nodelist. |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String str,
PrefixResolver resolver)
Use an XPath string to select a nodelist. |
org.w3c.dom.Node |
selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String str)
Use an XPath string to select a single node. |
org.w3c.dom.Node |
selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String str,
PrefixResolver resolver)
Use an XPath string to select a single node. |
Field Detail |
public static final java.lang.String ROLE
XSLTProcessor
.
Method Detail |
public boolean evaluateAsBoolean(org.w3c.dom.Node contextNode, java.lang.String str)
contextNode
- The context node.str
- A valid XPath string.
public java.lang.Number evaluateAsNumber(org.w3c.dom.Node contextNode, java.lang.String str)
contextNode
- The context node.str
- A valid XPath string.
public java.lang.String evaluateAsString(org.w3c.dom.Node contextNode, java.lang.String str)
contextNode
- The context node.str
- A valid XPath string.
public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode, java.lang.String str)
contextNode
- The node to start searching from.str
- A valid XPath string.
public org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode, java.lang.String str)
contextNode
- The node to start searching from.str
- A valid XPath string.
public boolean evaluateAsBoolean(org.w3c.dom.Node contextNode, java.lang.String str, PrefixResolver resolver)
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public java.lang.Number evaluateAsNumber(org.w3c.dom.Node contextNode, java.lang.String str, PrefixResolver resolver)
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public java.lang.String evaluateAsString(org.w3c.dom.Node contextNode, java.lang.String str, PrefixResolver resolver)
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode, java.lang.String str, PrefixResolver resolver)
contextNode
- The node to start searching from.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode, java.lang.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 |