org.apache.velocity.anakia
Class XPathCache

java.lang.Object
  |
  +--org.apache.velocity.anakia.XPathCache

class XPathCache
extends java.lang.Object

Provides a cache for XPath expressions. Used by NodeList and AnakiaElement to minimize XPath parsing in their selectNodes() methods.

Version:
$Id: XPathCache.java,v 1.1 2001/08/08 04:30:47 jon Exp $
Author:
Attila Szegedi

Field Summary
private static java.util.Map XPATH_CACHE
           
 
Constructor Summary
private XPathCache()
           
 
Method Summary
(package private) static com.werken.xpath.XPath getXPath(java.lang.String xpathString)
          Returns an XPath object representing the requested XPath expression.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

XPATH_CACHE

private static final java.util.Map XPATH_CACHE
Constructor Detail

XPathCache

private XPathCache()
Method Detail

getXPath

static com.werken.xpath.XPath getXPath(java.lang.String xpathString)
Returns an XPath object representing the requested XPath expression. A cached object is returned if it already exists for the requested expression.
Parameters:
xpathString - the XPath expression to parse
Returns:
the XPath object that represents the parsed XPath expression.


Copyright © 2003 Apache Software Foundation. All Rights Reserved.