Interface NameResolver
-
- All Known Subinterfaces:
NamePathResolver
- All Known Implementing Classes:
CachingNameResolver
,DefaultNamePathResolver
,NamePathResolverImpl
,ParsingNameResolver
,SessionContext
,SessionImpl
,XASessionImpl
public interface NameResolver
Resolver for JCR name Strings andName
objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getJCRName(Name name)
Returns the qualified JCR name String for the givenName
object.Name
getQName(String name)
Returns theName
for the given JCR name String.
-
-
-
Method Detail
-
getQName
Name getQName(String name) throws IllegalNameException, NamespaceException
Returns theName
for the given JCR name String.- Parameters:
name
- A JCR name String.- Returns:
- A
Name
object. - 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 givenName
object.- Parameters:
name
- AName
object.- Returns:
- The qualified JCR name String consisting of
prefix:localName
orlocalName
in case of the empty namespace. - Throws:
NamespaceException
- if the namespace URI can not be resolved
-
-