public static enum Parameter.Type extends Enum<Parameter.Type>
| Enum Constant and Description |
|---|
BOOL
The type is a simple boolean.
|
DATE
The type is a date-field.
|
DATETIME |
DECIMAL
The type is a decimal value.
|
ENUM |
FILE
The type of the field is file.
|
INT
The type is a simple integer.
|
TEXT
The type is free-text.
|
UNKNOWN
The type is unknown, this case should raise an exception.
|
USER
The type of the field is user, which basically references a hidden
table.
|
VARCHAR
The type is a variable character string.
|
| Modifier and Type | Field and Description |
|---|---|
String |
tag
The string-representation of the enumeration-type.
|
| Modifier and Type | Method and Description |
|---|---|
static Parameter.Type |
getType(String tag)
With this method the enumeration-type can be found based on the given
string.
|
static Parameter.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Parameter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Parameter.Type UNKNOWN
public static final Parameter.Type BOOL
public static final Parameter.Type INT
public static final Parameter.Type DECIMAL
public static final Parameter.Type VARCHAR
public static final Parameter.Type TEXT
public static final Parameter.Type DATE
public static final Parameter.Type DATETIME
public static final Parameter.Type USER
public static final Parameter.Type FILE
public static final Parameter.Type ENUM
public final String tag
public static Parameter.Type[] values()
for (Parameter.Type c : Parameter.Type.values()) System.out.println(c);
public static Parameter.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Parameter.Type getType(String tag)
tag - The string-representation of the tag.Copyright © 2015. All Rights Reserved.