Class Mapping
java.lang.Object
org.apache.olingo.odata2.api.edm.provider.Mapping
- All Implemented Interfaces:
EdmMapping
Object of this class represent the mapping of a value to a MIME type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the mapping valueGets the key under which the resource mime type can be found in the data map.Gets the key under which the resource source value can be found in the data map.Get the set object for this mappingsetInternalName(String value) Sets the value for thisMapping.setMediaResourceMimeTypeKey(String mediaResourceMimeTypeKey) Sets the key for the resource mime type key which is used for the lookup in the data mapsetMediaResourceSourceKey(String mediaResourceSourceKey) Sets the key for the resource source key which is used for the lookup in the data mapSets an object.
-
Constructor Details
-
Mapping
public Mapping()
-
-
Method Details
-
getInternalName
Description copied from interface:EdmMappingGet the mapping value- Specified by:
getInternalNamein interfaceEdmMapping- Returns:
- mapping name as String
-
getObject
Description copied from interface:EdmMappingGet the set object for this mapping- Specified by:
getObjectin interfaceEdmMapping- Returns:
Objectobject
-
getMediaResourceSourceKey
Description copied from interface:EdmMappingGets the key under which the resource source value can be found in the data map.- Specified by:
getMediaResourceSourceKeyin interfaceEdmMapping- Returns:
- the key of the media resource source
-
getMediaResourceMimeTypeKey
Description copied from interface:EdmMappingGets the key under which the resource mime type can be found in the data map.- Specified by:
getMediaResourceMimeTypeKeyin interfaceEdmMapping- Returns:
- the key of the media resource type
-
setInternalName
Sets the value for thisMapping.- Parameters:
value-- Returns:
Mappingfor method chaining
-
setObject
Sets an object. This method can be used by a provider to set whatever it wants to associate with this.- Parameters:
object-- Returns:
Mappingfor method chaining
-
setMediaResourceSourceKey
Sets the key for the resource source key which is used for the lookup in the data map- Parameters:
mediaResourceSourceKey- under which the source can be found in the data map- Returns:
Mappingfor method chaining
-
setMediaResourceMimeTypeKey
Sets the key for the resource mime type key which is used for the lookup in the data map- Parameters:
mediaResourceMimeTypeKey- under which the mime type can be found in the data map- Returns:
Mappingfor method chaining
-