public class ConfigurationVariable extends Object implements Serializable
Constructor and Description |
---|
ConfigurationVariable() |
Modifier and Type | Method and Description |
---|---|
Object |
getInitializationValue()
Returns the initialization value, or null if none was supplied.
|
String |
getType()
Returns the variable type as a fully-qualified class name, primitive type or event type name.
|
boolean |
isConstant()
Returns true if the variable is a constant, or false for regular variable.
|
void |
setConstant(boolean constant)
Set to true to indicate that the variable is a constant, or false for regular variable.
|
void |
setInitializationValue(Object initializationValue)
Sets the variable type.
|
void |
setType(String type)
Sets the variable type as a fully-qualified class name, primitive type or event type name.
|
public String getType()
public void setType(String type)
type
- type namepublic Object getInitializationValue()
String-type initialization values for numeric or boolean types are allowed and are parsed.
public void setInitializationValue(Object initializationValue)
Variables are scalar values and primitive or boxed Java builtin types are accepted.
initializationValue
- the default value or null if the default value is nullpublic boolean isConstant()
public void setConstant(boolean constant)
constant
- true for constant, false for variable