Package org.fcrepo.kernel.api.rdf
Class RdfNamespaceRegistry
- java.lang.Object
-
- org.fcrepo.kernel.api.utils.AutoReloadingConfiguration
-
- org.fcrepo.kernel.api.rdf.RdfNamespaceRegistry
-
public class RdfNamespaceRegistry extends AutoReloadingConfiguration
Registry of RDF namespaces- Author:
- bbpennel
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.api.utils.AutoReloadingConfiguration
configPath
-
-
Constructor Summary
Constructors Constructor Description RdfNamespaceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getNamespaces()
Get the mapping of namespace prefixes to URIsprotected void
loadConfiguration()
Load the namespace prefix to URI configuration filevoid
setNamespaces(Map<String,String> namespaces)
Set the mapping of namespace prefixes to URIs-
Methods inherited from class org.fcrepo.kernel.api.utils.AutoReloadingConfiguration
init, setConfigPath, setMonitorForChanges, shutdown
-
-
-
-
Constructor Detail
-
RdfNamespaceRegistry
public RdfNamespaceRegistry()
-
-
Method Detail
-
loadConfiguration
protected void loadConfiguration() throws IOException
Load the namespace prefix to URI configuration file- Specified by:
loadConfiguration
in classAutoReloadingConfiguration
- Throws:
IOException
- thrown if the configuration cannot be loaded.
-
getNamespaces
public Map<String,String> 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
public void setNamespaces(Map<String,String> namespaces)
Set the mapping of namespace prefixes to URIs- Parameters:
namespaces
- mapping of namespaces
-
-