Interface TemplatePreprocessor<T>

  • Type Parameters:
    T - The type of the element that should be processed

    public interface TemplatePreprocessor<T>

    Preprocessor of Template Arguments

    Since:
    1.0
    Author:
    Andreas Pointner
    • Method Detail

      • canPreprocess

        boolean canPreprocess​(Object toProcess)
        Inputs any type of object, that should be processed. This method must check if the object is of type T, as well as if this object should be processed by the TemplatePreprocessor.
        Parameters:
        toProcess - the object to be checked
        Returns:
        whether if the processor should be called for a given object or not.
      • process

        Map<String,​Object> process​(T toProcess)
        Processes the object and extracts additional properties
        Parameters:
        toProcess - the object to be processed
        Returns:
        a map with additional template properties