Class AbstractExifTagOperation<I,​O>

    • Constructor Detail

      • AbstractExifTagOperation

        public AbstractExifTagOperation()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • accepts

        public abstract Class[] accepts()
        Returns the type of data that we can process.
        Specified by:
        accepts in interface ExifTagOperation<I,​O>
        Returns:
        the type of data
      • generates

        public abstract Class[] generates()
        Returns the type of data that we generate.
        Specified by:
        generates in interface ExifTagOperation<I,​O>
        Returns:
        the type of data
      • check

        protected String check​(I input)
        Hook method for performing checks before processing the data.
        Parameters:
        input - the input to process
        Returns:
        null if successful, otherwise error message
      • doProcess

        protected abstract O doProcess​(I input,
                                       MessageCollection errors)
        Processes the incoming data.
        Parameters:
        input - the input to process
        errors - for storing errors
        Returns:
        the generated output
      • process

        public O process​(I input,
                         MessageCollection errors)
        Processes the incoming data.
        Specified by:
        process in interface ExifTagOperation<I,​O>
        Parameters:
        input - the input to process
        errors - for storing errors
        Returns:
        the generated output