public class XSSFDataValidationConstraint extends Object implements DataValidationConstraint
DataValidationConstraint.OperatorType, DataValidationConstraint.ValidationType
Constructor and Description |
---|
XSSFDataValidationConstraint(int validationType,
int operator,
String formula1) |
XSSFDataValidationConstraint(int validationType,
int operator,
String formula1,
String formula2) |
XSSFDataValidationConstraint(int validationType,
String formula1) |
XSSFDataValidationConstraint(String[] explicitListOfValues) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String[] |
getExplicitListValues() |
String |
getFormula1() |
String |
getFormula2() |
int |
getOperator() |
String |
getRefRange() |
int |
getValidationType() |
int |
hashCode() |
boolean |
isExplicitList() |
protected boolean |
isFormulaEmpty(String formula1) |
boolean |
isRefRange() |
String |
prettyPrint() |
protected String |
removeLeadingEquals(String formula1) |
void |
setExplicitListValues(String[] explicitListValues) |
void |
setFormula1(String formula1)
Sets a formula for expression 1.
|
void |
setFormula2(String formula2)
Sets a formula for expression 2.
|
void |
setOperator(int operator)
Sets the comparison operator for this constraint
|
void |
validate() |
public XSSFDataValidationConstraint(String[] explicitListOfValues)
public XSSFDataValidationConstraint(int validationType, String formula1)
public XSSFDataValidationConstraint(int validationType, int operator, String formula1)
public String[] getExplicitListValues()
getExplicitListValues
in interface DataValidationConstraint
public String getFormula1()
getFormula1
in interface DataValidationConstraint
null
public String getFormula2()
getFormula2
in interface DataValidationConstraint
null
public int getOperator()
getOperator
in interface DataValidationConstraint
DataValidationConstraint.OperatorType
public int getValidationType()
getValidationType
in interface DataValidationConstraint
DataValidationConstraint.ValidationType
public void setExplicitListValues(String[] explicitListValues)
setExplicitListValues
in interface DataValidationConstraint
public void setFormula1(String formula1)
DataValidationConstraint
setFormula1
in interface DataValidationConstraint
public void setFormula2(String formula2)
DataValidationConstraint
setFormula2
in interface DataValidationConstraint
public void setOperator(int operator)
DataValidationConstraint
setOperator
in interface DataValidationConstraint
DataValidationConstraint.OperatorType
public void validate()
protected boolean isFormulaEmpty(String formula1)
public String prettyPrint()
public boolean isExplicitList()
public boolean isRefRange()
public String getRefRange()
Copyright © 2020. All rights reserved.