Class Mapping
- java.lang.Object
-
- org.apache.olingo.odata2.api.edm.provider.Mapping
-
- All Implemented Interfaces:
EdmMapping
public class Mapping extends Object implements EdmMapping
Object of this class represent the mapping of a value to a MIME type.
-
-
Constructor Summary
Constructors Constructor Description Mapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEdit()intgetComplexIndex()StringgetComplexPath()IntegergetIndex()StringgetInternalExpression()StringgetInternalName()Get the mapping valueStringgetMediaResourceMimeTypeKey()Gets the key under which the resource mime type can be found in the data map.StringgetMediaResourceSourceKey()Gets the key under which the resource source value can be found in the data map.ObjectgetObject()Get the set object for this mappingStringgetPath()booleanisCalculated()booleanisPath()booleanisUpdatable()voidsetCalculated(boolean calculated)voidsetCanEdit(boolean canEdit)voidsetComplexIndex(int complexIndex)voidsetComplexPath(String complexPath)voidsetIndex(Integer index)MappingsetInternalExpression(String value)MappingsetInternalName(String value)Sets the value for thisMapping.voidsetIsPath(boolean path)MappingsetMediaResourceMimeTypeKey(String mediaResourceMimeTypeKey)Sets the key for the resource mime type key which is used for the lookup in the data mapMappingsetMediaResourceSourceKey(String mediaResourceSourceKey)Sets the key for the resource source key which is used for the lookup in the data mapMappingsetObject(Object object)Sets an object.voidsetPath(String path)voidsetUpdatable(boolean updatable)
-
-
-
Method Detail
-
getInternalName
public String getInternalName()
Description copied from interface:EdmMappingGet the mapping value- Specified by:
getInternalNamein interfaceEdmMapping- Returns:
- mapping name as String
-
getInternalExpression
public String getInternalExpression()
- Specified by:
getInternalExpressionin interfaceEdmMapping
-
getObject
public Object getObject()
Description copied from interface:EdmMappingGet the set object for this mapping- Specified by:
getObjectin interfaceEdmMapping- Returns:
Objectobject
-
getMediaResourceSourceKey
public String 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
public String 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
public Mapping setInternalName(String value)
Sets the value for thisMapping.- Parameters:
value- Valor- Returns:
Mappingfor method chaining
-
isPath
public boolean isPath()
-
setIsPath
public void setIsPath(boolean path)
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
getComplexPath
public String getComplexPath()
-
setComplexPath
public void setComplexPath(String complexPath)
-
getComplexIndex
public int getComplexIndex()
-
setComplexIndex
public void setComplexIndex(int complexIndex)
-
setObject
public Mapping setObject(Object object)
Sets an object. This method can be used by a provider to set whatever it wants to associate with this.- Parameters:
object- Objeto- Returns:
Mappingfor method chaining
-
setMediaResourceSourceKey
public Mapping setMediaResourceSourceKey(String mediaResourceSourceKey)
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
public Mapping setMediaResourceMimeTypeKey(String mediaResourceMimeTypeKey)
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
-
canEdit
public boolean canEdit()
-
setCanEdit
public void setCanEdit(boolean canEdit)
-
isCalculated
public boolean isCalculated()
- Specified by:
isCalculatedin interfaceEdmMapping
-
setCalculated
public void setCalculated(boolean calculated)
-
isUpdatable
public boolean isUpdatable()
-
setUpdatable
public void setUpdatable(boolean updatable)
-
getIndex
public Integer getIndex()
-
setIndex
public void setIndex(Integer index)
-
-