|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NamespaceResolver
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 qName)
Deprecated. use NameFormat.format(QName, NamespaceResolver) instead. |
String |
getPrefix(String uri)
Deprecated. Returns the prefix which is mapped to the given URI. |
QName |
getQName(String jcrName)
Deprecated. use NameFormat.parse(String, NamespaceResolver) instead. |
String |
getURI(String prefix)
Deprecated. Returns the URI to which the given prefix is mapped. |
Method Detail |
---|
String getURI(String prefix) throws NamespaceException
prefix
- namespace prefix
NamespaceException
- if the prefix is unknown.String getPrefix(String uri) throws NamespaceException
uri
- namespace URI
NamespaceException
- if the URI is unknown.QName getQName(String jcrName) throws IllegalNameException, UnknownPrefixException
NameFormat.parse(String, NamespaceResolver)
instead.
jcrName
- the raw name, potentially prefixed.
IllegalNameException
- if the given name is not a valid JCR name
UnknownPrefixException
- if the JCR name prefix does not resolveString getJCRName(QName qName) throws NoPrefixDeclaredException
NameFormat.format(QName, NamespaceResolver)
instead.
qName
- a qualified name
NoPrefixDeclaredException
- if the namespace can not be resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |