|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.xml.xpath.AbstractProcessorImpl
org.apache.excalibur.xml.xpath.JaxenProcessorImpl
public final class JaxenProcessorImpl
This class defines the implementation of the XPathProcessor
component.
To configure it, add the following lines in the
<xpath-processor class="org.apache.cocoon.components.xpath.JaxenProcessorImpl"> </xpath-processor>
| Nested Class Summary | |
|---|---|
private static class |
JaxenProcessorImpl.JaxenResolver
A Jaxen-specific wrapper for the PrefixResolver. |
| Field Summary |
|---|
| Fields inherited from interface org.apache.excalibur.xml.xpath.XPathProcessor |
|---|
ROLE |
| Constructor Summary | |
|---|---|
JaxenProcessorImpl()
|
|
| Method Summary | |
|---|---|
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,
PrefixResolver resolver)
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,
PrefixResolver resolver)
Use an XPath string to select a nodelist. |
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. |
| Methods inherited from class org.apache.excalibur.xml.xpath.AbstractProcessorImpl |
|---|
configure, evaluateAsBoolean, evaluateAsNumber, evaluateAsString, prefixToNamespace, selectNodeList, selectSingleNode |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JaxenProcessorImpl()
| Method Detail |
|---|
public boolean evaluateAsBoolean(org.w3c.dom.Node contextNode,
java.lang.String str,
PrefixResolver resolver)
evaluateAsBoolean in interface XPathProcessorevaluateAsBoolean in class AbstractProcessorImplcontextNode - 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)
evaluateAsNumber in interface XPathProcessorevaluateAsNumber in class AbstractProcessorImplcontextNode - 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)
evaluateAsString in interface XPathProcessorevaluateAsString in class AbstractProcessorImplcontextNode - 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)
selectSingleNode in interface XPathProcessorselectSingleNode in class AbstractProcessorImplcontextNode - 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)
selectNodeList in interface XPathProcessorselectNodeList in class AbstractProcessorImplcontextNode - 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 | |||||||||