org.apache.olingo.odata2.client.core.edm.Impl

## Class EdmMappingImpl

- java.lang.Object
- - org.apache.olingo.odata2.client.core.edm.Impl.EdmMappingImpl

- All Implemented Interfaces:
    EdmMapping

      public class EdmMappingImpl
      extends Object
      implements EdmMapping

  Object of this class represent the mapping of a value to a MIME type.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EdmMappingImpl()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getInternalName()` Get the mapping value
    `String` | `getMediaResourceMimeTypeKey()` Gets the key under which the resource mime type can be found in the data map.
    `String` | `getMediaResourceSourceKey()` Gets the key under which the resource source value can be found in the data map.
    `Object` | `getObject()` Get the set object for this mapping
    `EdmMappingImpl` | `setInternalName(String value)` Sets the value for this `EdmMappingImpl`.
    `EdmMappingImpl` | `setMediaResourceMimeTypeKey(String mediaResourceMimeTypeKey)` Sets the key for the resource mime type key which is used for the lookup in the data map
    `EdmMappingImpl` | `setMediaResourceSourceKey(String mediaResourceSourceKey)` Sets the key for the resource source key which is used for the lookup in the data map
    `EdmMappingImpl` | `setObject(Object object)` Sets an object.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### EdmMappingImpl

          public EdmMappingImpl()

  - ### Method Detail

    - #### getInternalName

          public String getInternalName()

      Description copied from interface: `EdmMapping`
      Get the mapping value
      Specified by:
        `getInternalName` in interface `EdmMapping`
      Returns:
        mapping name as String

    - #### getObject

          public Object getObject()

      Description copied from interface: `EdmMapping`
      Get the set object for this mapping
      Specified by:
        `getObject` in interface `EdmMapping`
      Returns:
        `Object` object

    - #### getMediaResourceSourceKey

          public String getMediaResourceSourceKey()

      Description copied from interface: `EdmMapping`
      Gets the key under which the resource source value can be found in the data map.
      Specified by:
        `getMediaResourceSourceKey` in interface `EdmMapping`
      Returns:
        the key of the media resource source

    - #### getMediaResourceMimeTypeKey

          public String getMediaResourceMimeTypeKey()

      Description copied from interface: `EdmMapping`
      Gets the key under which the resource mime type can be found in the data map.
      Specified by:
        `getMediaResourceMimeTypeKey` in interface `EdmMapping`
      Returns:
        the key of the media resource type

    - #### setInternalName

          public EdmMappingImpl setInternalName(String value)

      Sets the value for this `EdmMappingImpl`.
      Parameters:
        `value` -
      Returns:
        `EdmMappingImpl` for method chaining

    - #### setObject

          public EdmMappingImpl 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` -
      Returns:
        `EdmMappingImpl` for method chaining

    - #### setMediaResourceSourceKey

          public EdmMappingImpl 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:
        `EdmMappingImpl` for method chaining

    - #### setMediaResourceMimeTypeKey

          public EdmMappingImpl 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:
        `EdmMappingImpl` for method chaining

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2013-2022 The Apache Software Foundation. All Rights Reserved.