|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DataValidationEvaluator.ValidationEnum> org.apache.poi.ss.formula.DataValidationEvaluator.ValidationEnum
public static enum DataValidationEvaluator.ValidationEnum
Not calling it ValidationType to avoid confusion for now with DataValidationConstraint.ValidationType. Definition order matches OOXML type ID indexes
Enum Constant Summary | |
---|---|
ANY
|
|
DATE
|
|
DECIMAL
|
|
FORMULA
|
|
INTEGER
|
|
LIST
|
|
TEXT_LENGTH
|
|
TIME
|
Method Summary | |
---|---|
static boolean |
isValid(Cell cell,
DataValidationEvaluator.DataValidationContext context)
Validates against the type defined in context, as an index of the enum values array. |
protected boolean |
isValidNumericCell(Cell cell,
DataValidationEvaluator.DataValidationContext context)
Uses the cell value, which may be the cached formula result value. |
protected boolean |
isValidNumericValue(java.lang.Double value,
DataValidationEvaluator.DataValidationContext context)
Is the number a valid option for the validation? |
boolean |
isValidValue(Cell cell,
DataValidationEvaluator.DataValidationContext context)
|
static DataValidationEvaluator.ValidationEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DataValidationEvaluator.ValidationEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DataValidationEvaluator.ValidationEnum ANY
public static final DataValidationEvaluator.ValidationEnum INTEGER
public static final DataValidationEvaluator.ValidationEnum DECIMAL
public static final DataValidationEvaluator.ValidationEnum LIST
public static final DataValidationEvaluator.ValidationEnum DATE
public static final DataValidationEvaluator.ValidationEnum TIME
public static final DataValidationEvaluator.ValidationEnum TEXT_LENGTH
public static final DataValidationEvaluator.ValidationEnum FORMULA
Method Detail |
---|
public static DataValidationEvaluator.ValidationEnum[] values()
for (DataValidationEvaluator.ValidationEnum c : DataValidationEvaluator.ValidationEnum.values()) System.out.println(c);
public static DataValidationEvaluator.ValidationEnum 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 name
java.lang.NullPointerException
- if the argument is nullpublic boolean isValidValue(Cell cell, DataValidationEvaluator.DataValidationContext context)
protected boolean isValidNumericCell(Cell cell, DataValidationEvaluator.DataValidationContext context)
protected boolean isValidNumericValue(java.lang.Double value, DataValidationEvaluator.DataValidationContext context)
public static boolean isValid(Cell cell, DataValidationEvaluator.DataValidationContext context)
cell
- Cell to check validity ofcontext
- The Data Validation to check against
java.lang.ArrayIndexOutOfBoundsException
- if the constraint type is an invalid index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |