Class SimpleFlexConfigGenerator

java.lang.Object
ch.software_atelier.simpleflex.conf.text.SimpleFlexConfigGenerator
All Implemented Interfaces:
ConfigGenerator, SyntaxErrorNotifiable

public class SimpleFlexConfigGenerator extends Object implements SyntaxErrorNotifiable, ConfigGenerator
this Class generates the config objects that are used to configure SimpleFlex
Author:
tk
  • Constructor Details

    • SimpleFlexConfigGenerator

      public SimpleFlexConfigGenerator(File mainconfig)
      Creates a new instance of SimpleFlexConfigGenerator
      Parameters:
      mainconfig - The file that holds the main configuration
  • Method Details

    • globalConfig

      public GlobalConfig globalConfig()
      Returns a filled ClobalConfig that is used to configure SimpleFlex
      Specified by:
      globalConfig in interface ConfigGenerator
      Returns:
    • domainConfigs

      public List<DomainConfig> domainConfigs()
      Returns an array of DomainConfig-Objects who are used to configure SimpleFlex
      Specified by:
      domainConfigs in interface ConfigGenerator
      Returns:
    • syntaxError

      public void syntaxError(String message, boolean fatal)
      Implementation of the SyntaxErrorNotifiable-interface. Called on Syntax-Errors in the configuration file.
      Specified by:
      syntaxError in interface SyntaxErrorNotifiable
      Parameters:
      message - description if the syntac error
      fatal - quits the application if it is true.