org.apache.velocity.anakia

Class XPathCache

class XPathCache extends 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.10.1 2004/03/03 23:22:04 geirm Exp $

Author: Attila Szegedi

Field Summary
static MapXPATH_CACHE
Constructor Summary
XPathCache()
Method Summary
static XPathgetXPath(String xpathString)
Returns an XPath object representing the requested XPath expression.

Field Detail

XPATH_CACHE

private static final Map XPATH_CACHE

Constructor Detail

XPathCache

private XPathCache()

Method Detail

getXPath

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 B) 2002 Apache Software Foundation. All Rights Reserved.