Package org.eclipse.lyo.oslc4j.core
Class OslcGlobalNamespaceProvider
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.OslcGlobalNamespaceProvider
-
public class OslcGlobalNamespaceProvider extends Object
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 theOslcSchema
will override the prefix. This class is a singleton instance, that can be obtained callinggetInstance()
, since it works with any request even if there are no annotation mapping.- Author:
- Daniel Figueiredo Caetano
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OslcGlobalNamespaceProvider
getInstance()
Gets the unique instance of this class.Map<String,String>
getPrefixDefinitionMap()
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 Detail
-
getInstance
public static OslcGlobalNamespaceProvider getInstance()
Gets the unique instance of this class.- Returns:
- singleton class instance.
-
getPrefixDefinitionMap
public Map<String,String> 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.
-
-