Class AbstractDataContainerPreProcessor<T extends DataContainer>

    • Constructor Detail

      • AbstractDataContainerPreProcessor

        public AbstractDataContainerPreProcessor()
    • Method Detail

      • setOwner

        public void setOwner​(DataContainerDbWriter value)
        Sets the owner of this preprocessor.
        Parameters:
        value - the owner
      • getOwner

        public DataContainerDbWriter getOwner()
        Returns the current owner.
        Returns:
        the owner, null if none set
      • check

        protected void check​(T data)
        Checks the data to pre-process.

        Default implementation only checks whether data is present.
        Parameters:
        data - the data to check
      • doPreProcess

        protected abstract T doPreProcess​(T data)
        Performs the actual pre-processing.
        Parameters:
        data - the data to process
        Returns:
        the processed data
      • preProcess

        public T preProcess​(T data)
        Pre-processes the data.
        Parameters:
        data - the data to pre-process
        Returns:
        the processed data