Class AbstractParameterMapWriter

    • Constructor Detail

      • AbstractParameterMapWriter

        public AbstractParameterMapWriter()
    • Method Detail

      • check

        protected String check​(PlaceholderFile output)
        Hook method for performing checks.
        Parameters:
        output - the output file to read
        Returns:
        null if checks passed, otherwise error message
      • doWrite

        protected abstract void doWrite​(Map<String,​Object> params,
                                        PlaceholderFile output)
                                 throws Exception
        Reads the parameters from the file.
        Parameters:
        params - the parameters to write
        output - the output file to write to
        Throws:
        Exception - if reading fails
      • write

        public void write​(Map<String,​Object> params,
                          PlaceholderFile output)
                   throws Exception
        Reads the parameters from the file.
        Parameters:
        params - the parameters to write
        output - the output file to write to
        Throws:
        Exception - if writing fails