|
|||||||||||
| 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.XPathProcessorImpl
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.XPathProcessorImpl"> </xpath-processor>
| Field Summary |
| Fields inherited from interface org.apache.excalibur.xml.xpath.XPathProcessor |
ROLE |
| Constructor Summary | |
XPathProcessorImpl()
|
|
| Method Summary | |
void |
configure(Configuration configuration)
Pass the Configuration to the Configurable
class. |
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 |
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 |
| Methods inherited from interface org.apache.excalibur.xml.xpath.XPathProcessor |
evaluateAsBoolean, evaluateAsNumber, evaluateAsString, selectNodeList, selectSingleNode |
| Constructor Detail |
public XPathProcessorImpl()
| Method Detail |
public void configure(Configuration configuration)
throws ConfigurationException
ConfigurableConfiguration to the Configurable
class.
configure in interface Configurableconfigure in class AbstractProcessorImplConfigurationException
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 | ||||||||||