Class 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 Detail

      • Mapping

        public Mapping()
    • 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
      • 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 Mapping setInternalName​(String value)
        Sets the value for this Mapping.
        Parameters:
        value - Valor
        Returns:
        Mapping for method chaining
      • setInternalExpression

        public Mapping setInternalExpression​(String value)
      • 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:
        Mapping for 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:
        Mapping for 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:
        Mapping for method chaining
      • canEdit

        public boolean canEdit()
      • setCanEdit

        public void setCanEdit​(boolean canEdit)
      • 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)