org.apache.velocity.anakia

Class XPathCache


(package private) 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 Map
XPATH_CACHE

Constructor Summary

XPathCache()

Method Summary

(package private) static XPath
getXPath(String xpathString)
Returns an XPath object representing the requested XPath expression.

Field Details

XPATH_CACHE

private static final Map XPATH_CACHE

Constructor Details

XPathCache

private XPathCache()

Method Details

getXPath

(package private) static XPath getXPath(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.