|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for resolving namespace URIs and prefixes. Unlike the JCR
NamespaceRegistry
interface, this interface contains
no functionality other than the basic namespace URI and prefix resolution
methods. This interface is therefore used internally in many places where
the full namespace registry is either not available or some other mechanism
is used for resolving namespaces.
Method Summary | |
String |
getJCRName(QName name)
Returns the qualified name in the prefixed JCR name format. |
String |
getPrefix(String uri)
Returns the prefix which is mapped to the given URI. |
QName |
getQName(String name)
Parses the given prefixed JCR name into a qualified name. |
String |
getURI(String prefix)
Returns the URI to which the given prefix is mapped. |
Method Detail |
public String getURI(String prefix) throws NamespaceException
prefix
- namespace prefix
NamespaceException
- if the prefix is unknown.public String getPrefix(String uri) throws NamespaceException
uri
- namespace URI
NamespaceException
- if the URI is unknown.public QName getQName(String name) throws IllegalNameException, UnknownPrefixException
name
- the raw name, potentially prefixed.
IllegalNameException
- if the given name is not a valid JCR name
UnknownPrefixException
- if the JCR name prefix does not resolvepublic String getJCRName(QName name) throws NoPrefixDeclaredException
NoPrefixDeclaredException
- if the namespace can not be resolved
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |