public enum EnumTranslateStrategy extends java.lang.Enum<EnumTranslateStrategy> implements ValueEnum
Enum Constant and Description |
---|
BEAN
Translates to/from a Javascript object containing one property for each property defined within the enum.
|
NAME
Translates to/from a String matching the constant name.
|
ORDINAL
Translates to/from an integer matching the ordinal number of the constant within the enumeration
|
STRING
Translates to/from a String matching the
enum.toString() . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static EnumTranslateStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumTranslateStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumTranslateStrategy NAME
public static final EnumTranslateStrategy STRING
enum.toString()
.public static final EnumTranslateStrategy ORDINAL
public static final EnumTranslateStrategy BEAN
enumOrdinalProperty
and enumConstantProperty
propertiespublic static EnumTranslateStrategy[] values()
for (EnumTranslateStrategy c : EnumTranslateStrategy.values()) System.out.println(c);
public static EnumTranslateStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null