|
|||||||||||
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)
Pass the Configuration to the Configurable
class. |
boolean |
evaluateAsBoolean(org.w3c.dom.Node contextNode,
java.lang.String str)
Evaluate XPath expression within a context. |
abstract 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)
Evaluate XPath expression within a context. |
abstract 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)
Evaluate XPath expression within a context. |
abstract java.lang.String |
evaluateAsString(org.w3c.dom.Node contextNode,
java.lang.String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
java.lang.String |
prefixToNamespace(java.lang.String prefix)
Given a namespace prefix, return the corresponding namespace URI, or null if the namespace prefix is not known. |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String str)
Use an XPath string to select a nodelist. |
abstract 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)
Use an XPath string to select a single node. |
abstract 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.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
Configurable
Configuration
to the Configurable
class.
configure
in interface Configurable
configuration
- the class configurations. Must not be null
.
ConfigurationException
- if an error occurspublic org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode, java.lang.String str)
selectSingleNode
in interface XPathProcessor
contextNode
- The node to start searching from.str
- A valid XPath string.
public org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode, java.lang.String str)
selectNodeList
in interface XPathProcessor
contextNode
- The node to start searching from.str
- A valid XPath string.
public boolean evaluateAsBoolean(org.w3c.dom.Node contextNode, java.lang.String str)
evaluateAsBoolean
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.
public java.lang.Number evaluateAsNumber(org.w3c.dom.Node contextNode, java.lang.String str)
evaluateAsNumber
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.
public java.lang.String evaluateAsString(org.w3c.dom.Node contextNode, java.lang.String str)
evaluateAsString
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.
public abstract boolean evaluateAsBoolean(org.w3c.dom.Node contextNode, java.lang.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 java.lang.Number evaluateAsNumber(org.w3c.dom.Node contextNode, java.lang.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 java.lang.String evaluateAsString(org.w3c.dom.Node contextNode, java.lang.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 org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode, java.lang.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 org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode, java.lang.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 java.lang.String prefixToNamespace(java.lang.String prefix)
PrefixResolver
prefixToNamespace
in interface PrefixResolver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |