|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLogEnabled | +--org.apache.excalibur.xml.xpath.AbstractProcessorImpl
This class defines base class for the implementations of the
XPathProcessor
component.
Provides implementation of the PrefixResolver
and common
implementation of five selectXXX methods.
Field Summary |
Fields inherited from interface org.apache.excalibur.xml.xpath.XPathProcessor |
ROLE |
Constructor Summary | |
AbstractProcessorImpl()
|
Method Summary | |
void |
configure(Configuration configuration)
|
boolean |
evaluateAsBoolean(Node contextNode,
String str)
Evaluate XPath expression within a context. |
abstract 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. |
abstract 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. |
abstract String |
evaluateAsString(Node contextNode,
String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
String |
prefixToNamespace(String prefix)
Given a namespace prefix, return the corresponding namespace URI, or null if the namespace prefix is not known. |
NodeList |
selectNodeList(Node contextNode,
String str)
Use an XPath string to select a nodelist. |
abstract 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. |
abstract Node |
selectSingleNode(Node contextNode,
String str,
PrefixResolver resolver)
Use an XPath string to select a single node. |
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 AbstractProcessorImpl()
Method Detail |
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public Node selectSingleNode(Node contextNode, String str)
selectSingleNode
in interface XPathProcessor
contextNode
- The node to start searching from.str
- A valid XPath string.
public NodeList selectNodeList(Node contextNode, String str)
selectNodeList
in interface XPathProcessor
contextNode
- The node to start searching from.str
- A valid XPath string.
public boolean evaluateAsBoolean(Node contextNode, String str)
evaluateAsBoolean
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.
public Number evaluateAsNumber(Node contextNode, String str)
evaluateAsNumber
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.
public String evaluateAsString(Node contextNode, String str)
evaluateAsString
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.
public abstract boolean evaluateAsBoolean(Node contextNode, String str, PrefixResolver resolver)
evaluateAsBoolean
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public abstract Number evaluateAsNumber(Node contextNode, String str, PrefixResolver resolver)
evaluateAsNumber
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public abstract String evaluateAsString(Node contextNode, String str, PrefixResolver resolver)
evaluateAsString
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public abstract Node selectSingleNode(Node contextNode, String str, PrefixResolver resolver)
selectSingleNode
in interface XPathProcessor
contextNode
- The node to start searching from.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public abstract NodeList selectNodeList(Node contextNode, String str, PrefixResolver resolver)
selectNodeList
in interface XPathProcessor
contextNode
- The node to start searching from.str
- A valid XPath string.resolver
- a PrefixResolver, used for resolving namespace prefixes
public String prefixToNamespace(String prefix)
PrefixResolver
prefixToNamespace
in interface PrefixResolver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |