public class ReadOnlyNamespaceRegistry extends Object implements 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_REP, NAMESPACE_SV, NAMESPACE_XMLNS, NAMESPACES_PATH, 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 |
---|---|
String |
getPrefix(String uri) |
String[] |
getPrefixes() |
String |
getURI(String prefix) |
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
RepositoryException
public void unregisterNamespace(String prefix) throws RepositoryException
RepositoryException
public String[] getPrefixes()
public String[] getURIs()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"