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 Summary
ConstructorsConstructorDescriptionSimpleFlexConfigGenerator(File mainconfig) Creates a new instance of SimpleFlexConfigGenerator -
Method Summary
Modifier and TypeMethodDescriptionReturns an array of DomainConfig-Objects who are used to configure SimpleFlexReturns a filled ClobalConfig that is used to configure SimpleFlexvoidsyntaxError(String message, boolean fatal) Implementation of the SyntaxErrorNotifiable-interface.
-
Constructor Details
-
SimpleFlexConfigGenerator
Creates a new instance of SimpleFlexConfigGenerator- Parameters:
mainconfig- The file that holds the main configuration
-
-
Method Details
-
globalConfig
Returns a filled ClobalConfig that is used to configure SimpleFlex- Specified by:
globalConfigin interfaceConfigGenerator- Returns:
-
domainConfigs
Returns an array of DomainConfig-Objects who are used to configure SimpleFlex- Specified by:
domainConfigsin interfaceConfigGenerator- Returns:
-
syntaxError
Implementation of the SyntaxErrorNotifiable-interface. Called on Syntax-Errors in the configuration file.- Specified by:
syntaxErrorin interfaceSyntaxErrorNotifiable- Parameters:
message- description if the syntac errorfatal- quits the application if it is true.
-