Package adams.flow.core
Enum VariableValueType
- java.lang.Object
-
- java.lang.Enum<VariableValueType>
-
- adams.flow.core.VariableValueType
-
- All Implemented Interfaces:
Serializable
,Comparable<VariableValueType>
public enum VariableValueType extends Enum<VariableValueType>
Determines howSetVariable
andSetVariable
interpret their "values".- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
SetVariable
,SetVariable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOL_EXPRESSION
boolean expression.FILE_FORWARD_SLASHES
file with forward slashes.MATH_EXPRESSION
mathematical expression.MATH_EXPRESSION_ROUND
mathematical expression (rounded).STRING
simple string.STRING_EXPRESSION
string expression.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VariableValueType
valueOf(String name)
Returns the enum constant of this type with the specified name.static VariableValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final VariableValueType STRING
simple string.
-
MATH_EXPRESSION
public static final VariableValueType MATH_EXPRESSION
mathematical expression.
-
MATH_EXPRESSION_ROUND
public static final VariableValueType MATH_EXPRESSION_ROUND
mathematical expression (rounded).
-
BOOL_EXPRESSION
public static final VariableValueType BOOL_EXPRESSION
boolean expression.
-
STRING_EXPRESSION
public static final VariableValueType STRING_EXPRESSION
string expression.
-
FILE_FORWARD_SLASHES
public static final VariableValueType FILE_FORWARD_SLASHES
file with forward slashes.
-
-
Method Detail
-
values
public static VariableValueType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VariableValueType c : VariableValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VariableValueType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-