|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.conversion.CachingNameResolver
public class CachingNameResolver
Name resolver decorator that uses a generational cache to speed up parsing and formatting of JCR names. Uncached names are resolved using the underlying decorated name resolver.
| Constructor Summary | |
|---|---|
CachingNameResolver(NameResolver resolver)
Creates a caching decorator for the given name resolver. |
|
CachingNameResolver(NameResolver resolver,
org.apache.jackrabbit.spi.commons.conversion.GenerationalCache cache)
Creates a caching decorator for the given name resolver. |
|
| Method Summary | |
|---|---|
String |
getJCRName(Name qname)
Returns the prefixed JCR name for the given qualified name. |
Name |
getQName(String name)
Returns the qualified name for the given prefixed JCR name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingNameResolver(NameResolver resolver,
org.apache.jackrabbit.spi.commons.conversion.GenerationalCache cache)
resolver - decorated name resolvercache - generational cachepublic CachingNameResolver(NameResolver resolver)
resolver - name resolver| Method Detail |
|---|
public Name getQName(String name)
throws IllegalNameException,
NamespaceException
getQName in interface NameResolvername - prefixed JCR name
IllegalNameException - if the JCR name format is invalid
NamespaceException - if the namespace prefix can not be resolved
public String getJCRName(Name qname)
throws NamespaceException
getJCRName in interface NameResolverqname - qualified name
NamespaceException - if the namespace URI can not be resolved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||