public class XSSFDataValidationConstraint extends java.lang.Object implements DataValidationConstraint
DataValidationConstraint.OperatorType, DataValidationConstraint.ValidationType
Constructor and Description |
---|
XSSFDataValidationConstraint(int validationType,
int operator,
java.lang.String formula1) |
XSSFDataValidationConstraint(int validationType,
int operator,
java.lang.String formula1,
java.lang.String formula2) |
XSSFDataValidationConstraint(int validationType,
java.lang.String formula1) |
XSSFDataValidationConstraint(java.lang.String[] explicitListOfValues) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String[] |
getExplicitListValues() |
java.lang.String |
getFormula1() |
java.lang.String |
getFormula2() |
int |
getOperator() |
java.lang.String |
getRefRange() |
int |
getValidationType() |
int |
hashCode() |
boolean |
isExplicitList() |
protected boolean |
isFormulaEmpty(java.lang.String formula1) |
boolean |
isRefRange() |
java.lang.String |
prettyPrint() |
protected java.lang.String |
removeLeadingEquals(java.lang.String formula1) |
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
|
void |
validate() |
public XSSFDataValidationConstraint(java.lang.String[] explicitListOfValues)
public XSSFDataValidationConstraint(int validationType, java.lang.String formula1)
public XSSFDataValidationConstraint(int validationType, int operator, java.lang.String formula1)
public XSSFDataValidationConstraint(int validationType, int operator, java.lang.String formula1, java.lang.String formula2)
public java.lang.String[] getExplicitListValues()
getExplicitListValues
in interface DataValidationConstraint
public java.lang.String getFormula1()
getFormula1
in interface DataValidationConstraint
null
public java.lang.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(java.lang.String[] explicitListValues)
setExplicitListValues
in interface DataValidationConstraint
public void setFormula1(java.lang.String formula1)
DataValidationConstraint
setFormula1
in interface DataValidationConstraint
protected java.lang.String removeLeadingEquals(java.lang.String formula1)
public void setFormula2(java.lang.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(java.lang.String formula1)
public java.lang.String prettyPrint()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public boolean isExplicitList()
public boolean isRefRange()
public java.lang.String getRefRange()
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.