Package net.anotheria.asg.generator
Class GenerationOption
- java.lang.Object
-
- net.anotheria.asg.generator.GenerationOption
-
public class GenerationOption extends java.lang.ObjectAn option used by the generator to enable or disable some generation features. For example generation of rmi or inmemory services is triggered by generation options.- Version:
- $Id: $Id
- Author:
- another
-
-
Constructor Summary
Constructors Constructor Description GenerationOption()Creates a new GenerationOption with empty name and value.GenerationOption(java.lang.String aName, java.lang.String aValue)Creates a new GenerationOption.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Getter for the fieldname.java.lang.StringgetValue()Getter for the fieldvalue.booleanisFalse()Returns isSet && !true.booleanisSet()Returns true if a value is set.booleanisTrue()Returns true if the options value is equal to 'true'.voidsetName(java.lang.String name)Setter for the fieldname.voidsetValue(java.lang.String value)Setter for the fieldvalue.java.lang.StringtoString()
-
-
-
Constructor Detail
-
GenerationOption
public GenerationOption(java.lang.String aName, java.lang.String aValue)Creates a new GenerationOption.- Parameters:
aName- aStringobject.aValue- aStringobject.
-
GenerationOption
public GenerationOption()
Creates a new GenerationOption with empty name and value.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getName
public java.lang.String getName()
Getter for the field
name.- Returns:
- a
Stringobject.
-
setName
public void setName(java.lang.String name)
Setter for the field
name.- Parameters:
name- aStringobject.
-
getValue
public java.lang.String getValue()
Getter for the field
value.- Returns:
- a
Stringobject.
-
setValue
public void setValue(java.lang.String value)
Setter for the field
value.- Parameters:
value- aStringobject.
-
isTrue
public boolean isTrue()
Returns true if the options value is equal to 'true'.- Returns:
- a boolean.
-
isFalse
public boolean isFalse()
Returns isSet && !true.- Returns:
- a boolean.
-
isSet
public boolean isSet()
Returns true if a value is set.- Returns:
- a boolean.
-
-