org.apache.poi.xssf.usermodel
Class XSSFDataValidationConstraint
java.lang.Object
org.apache.poi.xssf.usermodel.XSSFDataValidationConstraint
- All Implemented Interfaces:
- DataValidationConstraint
public class XSSFDataValidationConstraint
- extends java.lang.Object
- implements DataValidationConstraint
- Author:
- Radhakrishnan J
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSSFDataValidationConstraint
public XSSFDataValidationConstraint(java.lang.String[] explicitListOfValues)
XSSFDataValidationConstraint
public XSSFDataValidationConstraint(int validationType,
java.lang.String formula1)
XSSFDataValidationConstraint
public XSSFDataValidationConstraint(int validationType,
int operator,
java.lang.String formula1)
XSSFDataValidationConstraint
public XSSFDataValidationConstraint(int validationType,
int operator,
java.lang.String formula1,
java.lang.String formula2)
getExplicitListValues
public java.lang.String[] getExplicitListValues()
- Specified by:
getExplicitListValues
in interface DataValidationConstraint
getFormula1
public java.lang.String getFormula1()
- Specified by:
getFormula1
in interface DataValidationConstraint
- Returns:
- the formula for expression 1. May be
null
getFormula2
public java.lang.String getFormula2()
- Specified by:
getFormula2
in interface DataValidationConstraint
- Returns:
- the formula for expression 2. May be
null
getOperator
public int getOperator()
- Specified by:
getOperator
in interface DataValidationConstraint
- Returns:
- the operator used for this constraint
- See Also:
DataValidationConstraint.OperatorType
getValidationType
public int getValidationType()
- Specified by:
getValidationType
in interface DataValidationConstraint
- Returns:
- data validation type of this constraint
- See Also:
DataValidationConstraint.ValidationType
setExplicitListValues
public void setExplicitListValues(java.lang.String[] explicitListValues)
- Specified by:
setExplicitListValues
in interface DataValidationConstraint
setFormula1
public void setFormula1(java.lang.String formula1)
- Description copied from interface:
DataValidationConstraint
- Sets a formula for expression 1.
- Specified by:
setFormula1
in interface DataValidationConstraint
removeLeadingEquals
protected java.lang.String removeLeadingEquals(java.lang.String formula1)
setFormula2
public void setFormula2(java.lang.String formula2)
- Description copied from interface:
DataValidationConstraint
- Sets a formula for expression 2.
- Specified by:
setFormula2
in interface DataValidationConstraint
setOperator
public void setOperator(int operator)
- Description copied from interface:
DataValidationConstraint
- Sets the comparison operator for this constraint
- Specified by:
setOperator
in interface DataValidationConstraint
- See Also:
DataValidationConstraint.OperatorType
validate
public void validate()
isFormulaEmpty
protected boolean isFormulaEmpty(java.lang.String formula1)
prettyPrint
public java.lang.String prettyPrint()
Copyright 2012 The Apache Software Foundation or
its licensors, as applicable.