Package org.fcrepo.kernel.api.rdf
Class RdfNamespaceRegistry
java.lang.Object
org.fcrepo.kernel.api.utils.AutoReloadingConfiguration
org.fcrepo.kernel.api.rdf.RdfNamespaceRegistry
Registry of RDF namespaces
- Author:
- bbpennel
-
Field Summary
Fields inherited from class org.fcrepo.kernel.api.utils.AutoReloadingConfiguration
configPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the mapping of namespace prefixes to URIsprotected voidLoad the namespace prefix to URI configuration filevoidsetNamespaces(Map<String, String> namespaces) Set the mapping of namespace prefixes to URIsMethods inherited from class org.fcrepo.kernel.api.utils.AutoReloadingConfiguration
init, setConfigPath, setMonitorForChanges, shutdown
-
Constructor Details
-
RdfNamespaceRegistry
public RdfNamespaceRegistry()
-
-
Method Details
-
loadConfiguration
Load the namespace prefix to URI configuration file- Specified by:
loadConfigurationin classAutoReloadingConfiguration- Throws:
IOException- thrown if the configuration cannot be loaded.
-
getNamespaces
Get the mapping of namespace prefixes to URIs- Returns:
- map of namespace prefixes to URIs, or an empty map if no mapping was provided.
-
setNamespaces
Set the mapping of namespace prefixes to URIs- Parameters:
namespaces- mapping of namespaces
-