Package org.apache.poi.xssf.usermodel
Class XSSFDataValidationHelper
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.XSSFDataValidationHelper
-
- All Implemented Interfaces:
DataValidationHelper
public class XSSFDataValidationHelper extends java.lang.Object implements DataValidationHelper
-
-
Constructor Summary
Constructors Constructor Description XSSFDataValidationHelper(XSSFSheet xssfSheet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataValidationConstraint
createCustomConstraint(java.lang.String formula)
DataValidationConstraint
createDateConstraint(int operatorType, java.lang.String formula1, java.lang.String formula2, java.lang.String dateFormat)
DataValidationConstraint
createDecimalConstraint(int operatorType, java.lang.String formula1, java.lang.String formula2)
DataValidationConstraint
createExplicitListConstraint(java.lang.String[] listOfValues)
DataValidationConstraint
createFormulaListConstraint(java.lang.String listFormula)
DataValidationConstraint
createIntegerConstraint(int operatorType, java.lang.String formula1, java.lang.String formula2)
DataValidationConstraint
createNumericConstraint(int validationType, int operatorType, java.lang.String formula1, java.lang.String formula2)
DataValidationConstraint
createTextLengthConstraint(int operatorType, java.lang.String formula1, java.lang.String formula2)
DataValidationConstraint
createTimeConstraint(int operatorType, java.lang.String formula1, java.lang.String formula2)
DataValidation
createValidation(DataValidationConstraint constraint, CellRangeAddressList cellRangeAddressList)
-
-
-
Constructor Detail
-
XSSFDataValidationHelper
public XSSFDataValidationHelper(XSSFSheet xssfSheet)
-
-
Method Detail
-
createDateConstraint
public DataValidationConstraint createDateConstraint(int operatorType, java.lang.String formula1, java.lang.String formula2, java.lang.String dateFormat)
- Specified by:
createDateConstraint
in interfaceDataValidationHelper
-
createDecimalConstraint
public DataValidationConstraint createDecimalConstraint(int operatorType, java.lang.String formula1, java.lang.String formula2)
- Specified by:
createDecimalConstraint
in interfaceDataValidationHelper
-
createExplicitListConstraint
public DataValidationConstraint createExplicitListConstraint(java.lang.String[] listOfValues)
- Specified by:
createExplicitListConstraint
in interfaceDataValidationHelper
-
createFormulaListConstraint
public DataValidationConstraint createFormulaListConstraint(java.lang.String listFormula)
- Specified by:
createFormulaListConstraint
in interfaceDataValidationHelper
-
createNumericConstraint
public DataValidationConstraint createNumericConstraint(int validationType, int operatorType, java.lang.String formula1, java.lang.String formula2)
- Specified by:
createNumericConstraint
in interfaceDataValidationHelper
-
createIntegerConstraint
public DataValidationConstraint createIntegerConstraint(int operatorType, java.lang.String formula1, java.lang.String formula2)
- Specified by:
createIntegerConstraint
in interfaceDataValidationHelper
-
createTextLengthConstraint
public DataValidationConstraint createTextLengthConstraint(int operatorType, java.lang.String formula1, java.lang.String formula2)
- Specified by:
createTextLengthConstraint
in interfaceDataValidationHelper
-
createTimeConstraint
public DataValidationConstraint createTimeConstraint(int operatorType, java.lang.String formula1, java.lang.String formula2)
- Specified by:
createTimeConstraint
in interfaceDataValidationHelper
-
createCustomConstraint
public DataValidationConstraint createCustomConstraint(java.lang.String formula)
- Specified by:
createCustomConstraint
in interfaceDataValidationHelper
-
createValidation
public DataValidation createValidation(DataValidationConstraint constraint, CellRangeAddressList cellRangeAddressList)
- Specified by:
createValidation
in interfaceDataValidationHelper
-
-