Package net.sf.basedb.core
Enum Formula.Parser
- java.lang.Object
-
- java.lang.Enum<Formula.Parser>
-
- net.sf.basedb.core.Formula.Parser
-
- All Implemented Interfaces:
Serializable
,Comparable<Formula.Parser>
- Enclosing class:
- Formula
public static enum Formula.Parser extends Enum<Formula.Parser>
The parser used to parse the formula.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JEP
Use the JEP parser.
-
Field Summary
Fields Modifier and Type Field Description private String
displayValue
private int
value
private static Map<Integer,Formula.Parser>
valueMapping
Maps the integer that is stored in the database.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Formula.Parser
fromValue(int value)
Get theFormula.Parser
object when you know the integer code.int
getValue()
Get the integer value that is used when storing aFormula.Parser
in the database.String
toString()
static Formula.Parser
valueOf(String name)
Returns the enum constant of this type with the specified name.static Formula.Parser[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JEP
public static final Formula.Parser JEP
Use the JEP parser.
-
-
Field Detail
-
valueMapping
private static final Map<Integer,Formula.Parser> valueMapping
Maps the integer that is stored in the database.
-
value
private final int value
-
displayValue
private final String displayValue
-
-
Constructor Detail
-
Parser
private Parser(int value, String displayValue)
-
-
Method Detail
-
values
public static Formula.Parser[] 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 (Formula.Parser c : Formula.Parser.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Formula.Parser 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
-
fromValue
public static Formula.Parser fromValue(int value)
Get theFormula.Parser
object when you know the integer code.- Parameters:
value
- The integer value.- Returns:
- The type object or null if the value is unknown
-
toString
public String toString()
- Overrides:
toString
in classEnum<Formula.Parser>
-
getValue
public int getValue()
Get the integer value that is used when storing aFormula.Parser
in the database.- Returns:
- The integer value of this type
-
-