public interface DataValidationConstraint
| Modifier and Type | Interface and Description |
|---|---|
static class |
DataValidationConstraint.OperatorType
Condition operator enum
|
static class |
DataValidationConstraint.ValidationType
ValidationType enum
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getExplicitListValues()
If validation type is
DataValidationConstraint.ValidationType.LIST
and formula1 was comma-separated literal values rather than a range or named range,
returns list of literal values. |
java.lang.String |
getFormula1() |
java.lang.String |
getFormula2() |
int |
getOperator() |
int |
getValidationType() |
void |
setExplicitListValues(java.lang.String[] explicitListValues) |
void |
setFormula1(java.lang.String formula1)
Sets a formula for expression 1.
|
void |
setFormula2(java.lang.String formula2)
Sets a formula for expression 2.
|
void |
setOperator(int operator)
Sets the comparison operator for this constraint
|
int getValidationType()
DataValidationConstraint.ValidationTypeint getOperator()
DataValidationConstraint.OperatorTypevoid setOperator(int operator)
DataValidationConstraint.OperatorTypejava.lang.String[] getExplicitListValues()
DataValidationConstraint.ValidationType.LIST
and formula1 was comma-separated literal values rather than a range or named range,
returns list of literal values.
Otherwise returns null.void setExplicitListValues(java.lang.String[] explicitListValues)
java.lang.String getFormula1()
nullvoid setFormula1(java.lang.String formula1)
java.lang.String getFormula2()
nullvoid setFormula2(java.lang.String formula2)
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.