public enum BaseFormField extends java.lang.Enum<BaseFormField> implements IFormField
| Enum Constant and Description |
|---|
ACTIVATION_CODE |
DISPLAY_NAME |
EMAIL |
SECRET |
USERNAME |
| Modifier and Type | Method and Description |
|---|---|
static BaseFormField |
fromJSFieldName(java.lang.String name) |
<T> T |
fromJSON(net.sf.json.JSONObject object) |
java.lang.String |
getFieldName() |
static BaseFormField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BaseFormField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseFormField USERNAME
public static final BaseFormField EMAIL
public static final BaseFormField DISPLAY_NAME
public static final BaseFormField SECRET
public static final BaseFormField ACTIVATION_CODE
public static BaseFormField[] values()
for (BaseFormField c : BaseFormField.values()) System.out.println(c);
public static BaseFormField 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 nullpublic java.lang.String getFieldName()
getFieldName in interface IFormField@Nullable public static BaseFormField fromJSFieldName(java.lang.String name)
public <T> T fromJSON(net.sf.json.JSONObject object)