org.apache.cocoon.components.xpath
Class XPathProcessorImpl
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.components.xpath.XPathProcessorImpl
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.framework.thread.ThreadSafe, XPathProcessor
Deprecated. Use the org.apache.avalon.excalibur.xml.xpath.XPathProcessorImpl instead.
- public class XPathProcessorImpl
- 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:
<xslt-processor class="org.apache.cocoon.components.xpath.XPathProcessorImpl">
</xslt-processor>
- Version:
- CVS $Id: XPathProcessorImpl.java,v 1.7 2002/03/13 16:28:02 cziegeler Exp $
- Author:
- Davanum Srinivas
Method Summary |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String str)
Deprecated. Use an XPath string to select a nodelist.
|
org.w3c.dom.Node |
selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String str)
Deprecated. 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 |
XPathProcessorImpl
public XPathProcessorImpl()
- Deprecated.
selectSingleNode
public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String str)
- Deprecated.
- 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)
- Deprecated.
- 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 © 1999-2002 Apache Software Foundation. All Rights Reserved.