public static enum DataValidationEvaluator.ValidationEnum extends java.lang.Enum<DataValidationEvaluator.ValidationEnum>
Enum Constant and Description |
---|
ANY |
DATE |
DECIMAL |
FORMULA |
INTEGER |
LIST |
TEXT_LENGTH |
TIME |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 namejava.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 againstjava.lang.ArrayIndexOutOfBoundsException
- if the constraint type is an invalid indexCopyright 2021 The Apache Software Foundation or its licensors, as applicable.