Interface NameResolver
-
- All Known Subinterfaces:
NamePathResolver
- All Known Implementing Classes:
CachingNameResolver,DefaultNamePathResolver,NamePathResolverImpl,ParsingNameResolver,SessionContext,SessionImpl,XASessionImpl
public interface NameResolverResolver for JCR name Strings andNameobjects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetJCRName(Name name)Returns the qualified JCR name String for the givenNameobject.NamegetQName(String name)Returns theNamefor the given JCR name String.
-
-
-
Method Detail
-
getQName
Name getQName(String name) throws IllegalNameException, NamespaceException
Returns theNamefor the given JCR name String.- Parameters:
name- A JCR name String.- Returns:
- A
Nameobject. - Throws:
IllegalNameException- if the JCR name format is invalidNamespaceException- if the namespace prefix can not be resolved
-
getJCRName
String getJCRName(Name name) throws NamespaceException
Returns the qualified JCR name String for the givenNameobject.- Parameters:
name- ANameobject.- Returns:
- The qualified JCR name String consisting of
prefix:localNameorlocalNamein case of the empty namespace. - Throws:
NamespaceException- if the namespace URI can not be resolved
-
-