Class FileTransformation

  • All Implemented Interfaces:
    java.io.Serializable, IFileTransformation

    public class FileTransformation
    extends java.lang.Object
    implements java.io.Serializable, IFileTransformation
    Represents the transformation of a given file.
    Since:
    6.1.0
    Version:
    $Revision: 25378 $ $Date: 2022-12-08 13:22:41 -0300 (Thu, 08 Dec 2022) $
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentType()
      Returns the contentType.
      java.lang.String getDisplayName()
      Returns the display name.
      java.lang.String getExtension()
      Returns the extension.
      java.lang.String getFilePrefix()
      Returns the filePrefix.
      java.lang.String getFileSufix()
      Returns the fileSufix.
      java.lang.String getId()
      Returns the id.
      java.lang.String getName()
      Returns the name.
      java.lang.String getServiceInstanceId()
      Returns the serviceInstanceId.
      java.util.Set<ITransformationParameter> getTransformationParameters()
      Returns the transformationParameters.
      boolean matches​(java.lang.String contentType)
      Asserts if a given content type matches with jgeg | gif | png
      void setContentType​(java.lang.String contentType)
      Sets the contentType.
      void setDisplayName​(java.lang.String displayName)
      Sets the display name.
      void setExtension​(java.lang.String extension)
      Sets the extension.
      void setFilePrefix​(java.lang.String filePrefix)
      Sets the filePrefix.
      void setFileSufix​(java.lang.String fileSufix)
      Sets the fileSufix.
      void setId​(java.lang.String id)
      Sets the id.
      void setName​(java.lang.String name)
      Sets the name.
      void setServiceInstanceId​(java.lang.String serviceInstanceId)
      Sets the serviceInstanceId.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileTransformation

        public FileTransformation()
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns the id.
        Returns:
        the id
        Since:
        6.1.0
      • setId

        public void setId​(java.lang.String id)
        Sets the id.
        Parameters:
        id - the id value to set.
        Since:
        6.1.0
      • getFilePrefix

        public java.lang.String getFilePrefix()
        Returns the filePrefix.
        Returns:
        the filePrefix
        Since:
        6.1.0
      • setFilePrefix

        public void setFilePrefix​(java.lang.String filePrefix)
        Sets the filePrefix.
        Parameters:
        filePrefix - the filePrefix value to set.
        Since:
        6.1.0
      • getFileSufix

        public java.lang.String getFileSufix()
        Returns the fileSufix.
        Returns:
        the fileSufix
        Since:
        6.1.0
      • setFileSufix

        public void setFileSufix​(java.lang.String fileSufix)
        Sets the fileSufix.
        Parameters:
        fileSufix - the fileSufix value to set.
        Since:
        6.1.0
      • getExtension

        public java.lang.String getExtension()
        Returns the extension.
        Specified by:
        getExtension in interface IFileTransformation
        Returns:
        the extension
        Since:
        6.1.0
      • setExtension

        public void setExtension​(java.lang.String extension)
        Sets the extension.
        Parameters:
        extension - the extension value to set.
        Since:
        6.1.0
      • getName

        public java.lang.String getName()
        Returns the name.
        Returns:
        the name
        Since:
        6.1.0
      • setName

        public void setName​(java.lang.String name)
        Sets the name.
        Parameters:
        name - the name value to set.
        Since:
        6.1.0
      • getDisplayName

        public java.lang.String getDisplayName()
        Returns the display name.
        Returns:
        the display name
        Since:
        6.1.0
      • setDisplayName

        public void setDisplayName​(java.lang.String displayName)
        Sets the display name.
        Parameters:
        display - name the display name value to set.
        Since:
        6.1.0
      • getServiceInstanceId

        public java.lang.String getServiceInstanceId()
        Returns the serviceInstanceId.
        Specified by:
        getServiceInstanceId in interface IFileTransformation
        Returns:
        the serviceInstanceId
        Since:
        6.1.0
      • setServiceInstanceId

        public void setServiceInstanceId​(java.lang.String serviceInstanceId)
        Sets the serviceInstanceId.
        Parameters:
        serviceInstanceId - the serviceInstanceId value to set.
        Since:
        6.1.0
      • getTransformationParameters

        public java.util.Set<ITransformationParameter> getTransformationParameters()
        Returns the transformationParameters.
        Returns:
        the transformationParameters
        Since:
        6.1.0
      • getContentType

        public java.lang.String getContentType()
        Returns the contentType.
        Returns:
        the contentType
        Since:
        6.1.0
      • setContentType

        public void setContentType​(java.lang.String contentType)
        Sets the contentType.
        Parameters:
        contentType - the contentType value to set.
        Since:
        6.1.0
      • matches

        public boolean matches​(java.lang.String contentType)
        Asserts if a given content type matches with jgeg | gif | png
        Parameters:
        contentType - the content type to be matched
        Returns:
        true if matches or false not.
        Since:
        6.1.0