|
||||||||||
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
public abstract class 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(org.w3c.dom.Node contextNode,
String str)
Evaluate XPath expression within a context. |
abstract 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)
Evaluate XPath expression within a context. |
abstract 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)
Evaluate XPath expression within a context. |
abstract String |
evaluateAsString(org.w3c.dom.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. |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
String str)
Use an XPath string to select a nodelist. |
abstract 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)
Use an XPath string to select a single node. |
abstract 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.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 org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode, 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, 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, String str)
evaluateAsBoolean
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.
public Number evaluateAsNumber(org.w3c.dom.Node contextNode, String str)
evaluateAsNumber
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.
public String evaluateAsString(org.w3c.dom.Node contextNode, String str)
evaluateAsString
in interface XPathProcessor
contextNode
- The context node.str
- A valid XPath string.
public abstract boolean evaluateAsBoolean(org.w3c.dom.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(org.w3c.dom.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(org.w3c.dom.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 org.w3c.dom.Node selectSingleNode(org.w3c.dom.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 org.w3c.dom.NodeList selectNodeList(org.w3c.dom.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 |