public class ReadOnlyNamespaceRegistry extends Object implements NamespaceRegistry, NamespaceConstants
ReadWriteNamespaceRegistry subclass for a more complete registry
implementation that supports also namespace modifications and that's thus
better suited for use in in implementing the full JCR API.NAMESPACE_EMPTY, NAMESPACE_JCR, NAMESPACE_MIX, NAMESPACE_NT, NAMESPACE_XML, PREFIX_EMPTY, PREFIX_JCR, PREFIX_MIX, PREFIX_NT, PREFIX_XMLNAMESPACE_OAK, NAMESPACE_REP, NAMESPACE_SV, NAMESPACE_XMLNS, NAMESPACES_PATH, PREFIX_OAK, PREFIX_REP, PREFIX_SV, PREFIX_XMLNS, REP_NAMESPACES, REP_NSDATA, REP_PREFIXES, REP_URIS, RESERVED_PREFIXES, RESERVED_URIS| Constructor and Description |
|---|
ReadOnlyNamespaceRegistry(Root root) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getPrefix(String uri) |
@NotNull String[] |
getPrefixes() |
@NotNull String |
getURI(String prefix) |
@NotNull String[] |
getURIs() |
void |
registerNamespace(String prefix,
String uri) |
void |
unregisterNamespace(String prefix) |
public ReadOnlyNamespaceRegistry(Root root)
public void registerNamespace(String prefix, String uri) throws RepositoryException
registerNamespace in interface NamespaceRegistryRepositoryExceptionpublic void unregisterNamespace(String prefix) throws RepositoryException
unregisterNamespace in interface NamespaceRegistryRepositoryException@NotNull public @NotNull String[] getPrefixes()
getPrefixes in interface NamespaceRegistry@NotNull public @NotNull String[] getURIs()
getURIs in interface NamespaceRegistry@NotNull public @NotNull String getURI(String prefix) throws NamespaceException
getURI in interface NamespaceRegistryNamespaceException@NotNull public @NotNull String getPrefix(String uri) throws NamespaceException
getPrefix in interface NamespaceRegistryNamespaceExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved