public enum ValidationType extends java.lang.Enum<ValidationType>
| Enum Constant and Description |
|---|
Custom
Specifies that the data validation uses a custom formula to check the cell
value.
|
Date
Specifies that the data validation checks for and allows date values that
meet the given condition.
|
Decimal
Specifies that the data validation checks for and allows decimal values that
meet the given condition.
|
List
Specifies that the data validation checks for and allows a value that matches
one in a list of values.
|
None
Specifies that the data validation allows any type of value and does not
check for a type or range of values.
|
TextLength
Specifies that the data validation checks for and allows text values whose
length meet the given condition.
|
Time
Specifies that the data validation checks for and allows time values that
meet the given condition.
|
Whole
Specifies that the data validation checks for and allows whole number values
that meet the given condition.
|
| Modifier and Type | Method and Description |
|---|---|
static ValidationType |
forValue(int value) |
int |
getValue() |
static ValidationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValidationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationType None
public static final ValidationType Whole
public static final ValidationType Decimal
public static final ValidationType List
public static final ValidationType Date
public static final ValidationType Time
public static final ValidationType TextLength
public static final ValidationType Custom
public static ValidationType[] values()
for (ValidationType c : ValidationType.values()) System.out.println(c);
public static ValidationType 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 int getValue()
public static ValidationType forValue(int value)