update javadoc for clarification about non-literal lists

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1749133 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-06-19 06:23:57 +00:00
parent 3eb3df8d35
commit 8240a8ab5d
2 changed files with 7 additions and 3 deletions

View File

@ -37,6 +37,12 @@ public interface DataValidationConstraint {
*/ */
public abstract void setOperator(int operator); public abstract void setOperator(int operator);
/**
* If validation type is {@link ValidationType#LIST}
* and <code>formula1</code> was comma-separated literal values rather than a range or named range,
* returns list of literal values.
* Otherwise returns <code>null</code>.
*/
public abstract String[] getExplicitListValues(); public abstract String[] getExplicitListValues();
public abstract void setExplicitListValues(String[] explicitListValues); public abstract void setExplicitListValues(String[] explicitListValues);

View File

@ -90,9 +90,7 @@ public class XSSFDataValidationConstraint implements DataValidationConstraint {
} }
} }
/** /* (non-Javadoc)
* If validation type is {@link org.apache.poi.ss.usermodel.DataValidationConstraint.ValidationType#LIST}, returns list of literal values.
* Otherwise returns <code>null</code>.
* @see org.apache.poi.ss.usermodel.DataValidationConstraint#getExplicitListValues() * @see org.apache.poi.ss.usermodel.DataValidationConstraint#getExplicitListValues()
*/ */
public String[] getExplicitListValues() { public String[] getExplicitListValues() {