|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@ThreadSafe public interface NamespaceRegistry

Registry of namespaces, which are used to provide isolated and independent domains for names.
| Method Summary | |
|---|---|
String |
getDefaultNamespaceUri()
Return the namespace URI that is currently mapped to the empty prefix, or null if there is no current default namespace. |
String |
getNamespaceForPrefix(String prefix)
Get the namespace URI for the supplied prefix. |
String |
getPrefixForNamespaceUri(String namespaceUri,
boolean generateIfMissing)
Return the prefix used for the supplied namespace URI. |
Set<String> |
getRegisteredNamespaceUris()
Obtain the set of namespaces that are registered. |
boolean |
isRegisteredNamespaceUri(String namespaceUri)
Return whether there is a registered prefix for the supplied namespace URI. |
String |
register(String prefix,
String namespaceUri)
Register a new namespace using the supplied prefix, returning the namespace URI previously registered under that prefix. |
| Method Detail |
|---|
String getDefaultNamespaceUri()
String getNamespaceForPrefix(String prefix)
prefix - the namespace prefix
IllegalArgumentException - if the prefix is null
String getPrefixForNamespaceUri(String namespaceUri,
boolean generateIfMissing)
namespaceUri - the namespace URIgenerateIfMissing - true if the namespace URI has not already been registered and the method should auto-register the
namespace with a generated prefix, or false if the method should never auto-register the namespace
null if the namespace has not been registered
and generateIfMissing is false
IllegalArgumentException - if the namespace URI is nullisRegisteredNamespaceUri(String)boolean isRegisteredNamespaceUri(String namespaceUri)
namespaceUri - the namespace URI
IllegalArgumentException - if the namespace URI is null
String register(String prefix,
String namespaceUri)
prefix - the prefix for the namespace, or null if a namesapce prefix should be generated automaticallynamespaceUri - the namespace URI
IllegalArgumentException - if the namespace URI is nullSet<String> getRegisteredNamespaceUris()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||