Interface NameResolver
- All Known Subinterfaces:
NamePathResolver
- All Known Implementing Classes:
CachingNameResolver,DefaultNamePathResolver,ParsingNameResolver
public interface NameResolver
Resolver for JCR name Strings and
Name objects.-
Method Summary
-
Method Details
-
getQName
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
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
-