Class JcrNamespaceRegistry
java.lang.Object
org.apache.sling.feature.cpconverter.vltpkg.JcrNamespaceRegistry
- All Implemented Interfaces:
javax.jcr.NamespaceRegistry
,NamespaceContext
,org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver
public class JcrNamespaceRegistry
extends Object
implements javax.jcr.NamespaceRegistry, org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver, NamespaceContext
Simple namespace registry backed by a map
-
Field Summary
Fields inherited from interface javax.jcr.NamespaceRegistry
NAMESPACE_EMPTY, NAMESPACE_JCR, NAMESPACE_MIX, NAMESPACE_NT, NAMESPACE_XML, PREFIX_EMPTY, PREFIX_JCR, PREFIX_MIX, PREFIX_NT, PREFIX_XML
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceURI
(String prefix) String[]
getPrefixes
(String namespaceURI) @NotNull Collection<String>
String[]
getURIs()
void
registerCnd
(Reader reader, String systemId) void
registerNamespace
(String prefix, String uri) void
unregisterNamespace
(String prefix)
-
Constructor Details
-
JcrNamespaceRegistry
public JcrNamespaceRegistry() throws javax.jcr.RepositoryException, org.apache.jackrabbit.commons.cnd.ParseException, IOException- Throws:
javax.jcr.RepositoryException
org.apache.jackrabbit.commons.cnd.ParseException
IOException
-
-
Method Details
-
registerCnd
public void registerCnd(Reader reader, String systemId) throws org.apache.jackrabbit.commons.cnd.ParseException, javax.jcr.RepositoryException, IOException - Throws:
org.apache.jackrabbit.commons.cnd.ParseException
javax.jcr.RepositoryException
IOException
-
registerNamespace
- Specified by:
registerNamespace
in interfacejavax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
-
unregisterNamespace
- Specified by:
unregisterNamespace
in interfacejavax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
-
getPrefixes
- Specified by:
getPrefixes
in interfacejavax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
-
getURIs
- Specified by:
getURIs
in interfacejavax.jcr.NamespaceRegistry
- Throws:
javax.jcr.RepositoryException
-
getURI
- Specified by:
getURI
in interfacejavax.jcr.NamespaceRegistry
- Specified by:
getURI
in interfaceorg.apache.jackrabbit.spi.commons.namespace.NamespaceResolver
- Throws:
javax.jcr.NamespaceException
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefix
in interfaceNamespaceContext
- Specified by:
getPrefix
in interfacejavax.jcr.NamespaceRegistry
- Specified by:
getPrefix
in interfaceorg.apache.jackrabbit.spi.commons.namespace.NamespaceResolver
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-
getRegisteredCndSystemIds
-