Package net.anotheria.asg.generator
Class GenerationOptions
- java.lang.Object
-
- net.anotheria.asg.generator.GenerationOptions
-
public class GenerationOptions extends java.lang.ObjectOptions for the generator.- Version:
- $Id: $Id
- Author:
- another
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFIXTUREName of the fixture option.static java.lang.StringINMEMORYName of the inmemory option.static java.lang.StringJDBCCONFIGName of the JDBCConfig option.static java.lang.StringRMIName of the rmi enabling option.
-
Constructor Summary
Constructors Constructor Description GenerationOptions()Constructor for GenerationOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerationOptionget(java.lang.String key)Returns the option stored und the given key.booleanisEnabled(java.lang.String key)Returns true if the option exists and is equal "true".voidset(java.lang.String key, java.lang.String value)Sets an option with given key and value.voidset(GenerationOption option)Sets the option.
-
-
-
Field Detail
-
RMI
public static final java.lang.String RMI
Name of the rmi enabling option.- See Also:
- Constant Field Values
-
INMEMORY
public static final java.lang.String INMEMORY
Name of the inmemory option.- See Also:
- Constant Field Values
-
FIXTURE
public static final java.lang.String FIXTURE
Name of the fixture option.- See Also:
- Constant Field Values
-
JDBCCONFIG
public static final java.lang.String JDBCCONFIG
Name of the JDBCConfig option.- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public GenerationOption get(java.lang.String key)
Returns the option stored und the given key.- Parameters:
key- aStringobject.- Returns:
- a
GenerationOptionobject.
-
isEnabled
public boolean isEnabled(java.lang.String key)
Returns true if the option exists and is equal "true".- Parameters:
key- aStringobject.- Returns:
- a boolean.
-
set
public void set(java.lang.String key, java.lang.String value)Sets an option with given key and value.- Parameters:
key- aStringobject.value- aStringobject.
-
set
public void set(GenerationOption option)
Sets the option.- Parameters:
option- aGenerationOptionobject.
-
-