org.apache.jackrabbit.name
Interface NameCache


Deprecated.

public interface NameCache

The name cache defines an interface that is used by the NameFormat and is usually implemented by NamespaceResolvers.

Please note, that the redundant naming of the methods is intentionally in order to allow a class to implement several caches.


Method Summary
 void cacheName(String jcrName, QName name)
          Deprecated. Puts a name into the cache.
 void evictAllNames()
          Deprecated. Evicts all names from the cache, i.e.
 String retrieveName(QName name)
          Deprecated. Retrieves a jcr name from the cache for the given qualified name.
 QName retrieveName(String jcrName)
          Deprecated. Retrieves a qualified name from the cache for the given jcr name.
 

Method Detail

retrieveName

QName retrieveName(String jcrName)
Deprecated. 
Retrieves a qualified name from the cache for the given jcr name. If the name is not cached null is returned.

Parameters:
jcrName - the jcr name
Returns:
the qualified name or null

retrieveName

String retrieveName(QName name)
Deprecated. 
Retrieves a jcr name from the cache for the given qualified name. If the name is not cached null is returned.

Parameters:
name - the qualified name
Returns:
the jcr name or null

cacheName

void cacheName(String jcrName,
               QName name)
Deprecated. 
Puts a name into the cache.

Parameters:
jcrName - the jcr name
name - the qualified name

evictAllNames

void evictAllNames()
Deprecated. 
Evicts all names from the cache, i.e. clears it.



Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.