org.apache.avalon.excalibur.xml.xpath
Class JaxenProcessorImpl
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.avalon.excalibur.xml.xpath.JaxenProcessorImpl
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.framework.thread.ThreadSafe, XPathProcessor
- public class JaxenProcessorImpl
- extends org.apache.avalon.framework.logger.AbstractLoggable
- implements XPathProcessor, org.apache.avalon.framework.thread.ThreadSafe
This class defines the implementation of the XPathProcessor
component.
To configure it, add the following lines in the
cocoon.xconf file:
<xpath-processor class="org.apache.cocoon.components.xpath.JaxenProcessorImpl">
</xpath-processor>
- Version:
- CVS $Revision: 1.5 $ $Date: 2002/01/08 07:57:40 $ $Author: cziegeler $
- Author:
- Davanum Srinivas
Method Summary |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String str)
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. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaxenProcessorImpl
public JaxenProcessorImpl()
selectSingleNode
public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String str)
- Use an XPath string to select a single node. XPath namespace
prefixes are resolved from the context node, which may not
be what you want (see the next method).
- Specified by:
selectSingleNode
in interface XPathProcessor
- Parameters:
contextNode
- The node to start searching from.str
- A valid XPath string.- Returns:
- The first node found that matches the XPath, or null.
selectNodeList
public org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String str)
- Use an XPath string to select a nodelist.
XPath namespace prefixes are resolved from the contextNode.
- Specified by:
selectNodeList
in interface XPathProcessor
- Parameters:
contextNode
- The node to start searching from.str
- A valid XPath string.- Returns:
- A NodeList, should never be null.
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.