| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
static java.lang.String |
getType(java.lang.String name)
根据字符串返回字符串对应的字段类型
|
static FieldType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldType STRING
public static final FieldType INT
public static final FieldType BOOLEAN
public static final FieldType UPLOAD
public static FieldType[] values()
for (FieldType c : FieldType.values()) System.out.println(c);
public static FieldType 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 getName()
public static java.lang.String getType(java.lang.String name)
name - 字段类型字符串