|
|||||||||||
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 String |
ROLE
The role implemented by an XSLTProcessor . |
Method Summary | |
boolean |
evaluateAsBoolean(Node contextNode,
String str)
Evaluate XPath expression within a context. |
boolean |
evaluateAsBoolean(Node contextNode,
String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
Number |
evaluateAsNumber(Node contextNode,
String str)
Evaluate XPath expression within a context. |
Number |
evaluateAsNumber(Node contextNode,
String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
String |
evaluateAsString(Node contextNode,
String str)
Evaluate XPath expression within a context. |
String |
evaluateAsString(Node contextNode,
String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
NodeList |
selectNodeList(Node contextNode,
String str)
Use an XPath string to select a nodelist. |
NodeList |
selectNodeList(Node contextNode,
String str,
PrefixResolver resolver)
Use an XPath string to select a nodelist. |
Node |
selectSingleNode(Node contextNode,
String str)
Use an XPath string to select a single node. |
Node |
selectSingleNode(Node contextNode,
String str,
PrefixResolver resolver)
Use an XPath string to select a single node. |
Field Detail |
public static final String ROLE
XSLTProcessor
.
Method Detail |
public boolean evaluateAsBoolean(Node contextNode, String str)
contextNode
- The context node.str
- A valid XPath string.
public Number evaluateAsNumber(Node contextNode, String str)
contextNode
- The context node.str
- A valid XPath string.
public String evaluateAsString(Node contextNode, String str)
contextNode
- The context node.str
- A valid XPath string.
public Node selectSingleNode(Node contextNode, String str)
contextNode
- The node to start searching from.str
- A valid XPath string.
public NodeList selectNodeList(Node contextNode, String str)
contextNode
- The node to start searching from.str
- A valid XPath string.
public boolean evaluateAsBoolean(Node contextNode, String str, PrefixResolver resolver)
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public Number evaluateAsNumber(Node contextNode, String str, PrefixResolver resolver)
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public String evaluateAsString(Node contextNode, String str, PrefixResolver resolver)
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public Node selectSingleNode(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
public NodeList selectNodeList(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 |