|
||||||||||
| 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
public final class 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)
|
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,
PrefixResolver resolver)
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,
PrefixResolver resolver)
Use an XPath string to select a nodelist. |
org.w3c.dom.Node |
selectSingleNode(org.w3c.dom.Node contextNode,
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 |
| Constructor Detail |
|---|
public XPathProcessorImpl()
| Method Detail |
|---|
public void configure(Configuration configuration)
throws ConfigurationException
configure in interface Configurableconfigure in class AbstractProcessorImplConfigurationException
public boolean evaluateAsBoolean(org.w3c.dom.Node contextNode,
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 Number evaluateAsNumber(org.w3c.dom.Node contextNode,
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 String evaluateAsString(org.w3c.dom.Node contextNode,
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,
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,
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 | |||||||||