XPathCache (Velocity 1.4 API)
Keywords: org.apache.velocity.anakia.XPathCache class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.10.1 2004/03/03 23:22:04 geirm 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, 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 Apache Software Foundation. All Rights Reserved.