Package org.eclipse.lyo.oslc4j.core
Class OslcGlobalNamespaceProvider
java.lang.Object
org.eclipse.lyo.oslc4j.core.OslcGlobalNamespaceProvider
Defines the global namespace prefix mappings.
The global namespace mappings do not take precedence
over any other namespace mappings definition, which means
that in case of conflict the
OslcSchema
will
override the prefix.
This class is a singleton instance, that can be obtained
calling getInstance()
, since it works with
any request even if there are no annotation mapping.
- Author:
- Daniel Figueiredo Caetano
-
Method Summary
Modifier and TypeMethodDescriptionstatic OslcGlobalNamespaceProvider
Gets the unique instance of this class.Gets the Global namespace mappings, these mappings are applied to all operations, even without the annotation mappings.void
setPrefixDefinitionMap
(Map<String, String> prefixDefinitionMap) Sets the global prefix definition map with the given map.
-
Method Details
-
getInstance
Gets the unique instance of this class.- Returns:
- singleton class instance.
-
getPrefixDefinitionMap
Gets the Global namespace mappings, these mappings are applied to all operations, even without the annotation mappings.key - prefix value - namespace
- Returns:
- empty hash map instance if there are no global namespace mappings.
-
setPrefixDefinitionMap
Sets the global prefix definition map with the given map. Note that this operation overrides the current map.- Parameters:
prefixDefinitionMap
- that will replace the current.
-