Class AbstractParameterMapReader

    • Constructor Detail

      • AbstractParameterMapReader

        public AbstractParameterMapReader()
    • Method Detail

      • check

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

        protected abstract Map<String,​Object> doRead​(PlaceholderFile input)
                                                    throws Exception
        Reads the parameters from the file.
        Parameters:
        input - the input file to read
        Returns:
        the parameters that were read
        Throws:
        Exception - if reading fails
      • read

        public Map<String,​Object> read​(PlaceholderFile input)
                                      throws Exception
        Reads the parameters from the file.
        Parameters:
        input - the input file to read
        Returns:
        the parameters that were read
        Throws:
        Exception - if reading fails