Class AbstractTransformationSourceOptions

    • Constructor Detail

      • AbstractTransformationSourceOptions

        public AbstractTransformationSourceOptions()
    • Method Detail

      • setApplicableMimetypes

        public void setApplicableMimetypes​(java.util.List<java.lang.String> applicableMimetypes)
        Sets the list of applicable mimetypes
        Parameters:
        applicableMimetypes - the applicable mimetypes
      • isApplicableForMimetype

        public boolean isApplicableForMimetype​(java.lang.String mimetype)
        Gets whether or not these transformation source options apply for the given mimetype
        Specified by:
        isApplicableForMimetype in interface TransformationSourceOptions
        Parameters:
        mimetype - the mimetype of the source
        Returns:
        if these transformation source options apply
      • clone

        protected AbstractTransformationSourceOptions clone()
                                                     throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • putParameterIfNotNull

        protected void putParameterIfNotNull​(java.lang.String paramName,
                                             java.io.Serializable paramValue,
                                             java.util.Map<java.lang.String,​java.io.Serializable> params)
        Adds the given paramValue to the given params if it's not null.
        Parameters:
        paramName - String
        paramValue - Serializable