Bug 57143 - Javadocs and throws clause for WorkbookUtil

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1634412 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2014-10-27 00:36:13 +00:00
parent 2ff41d7acd
commit 8dcdbe9c1a

View File

@ -124,6 +124,7 @@ public class WorkbookUtil {
* </p> * </p>
* *
* @param sheetName the name to validate * @param sheetName the name to validate
* @throws IllegalArgumentException if validation fails
*/ */
public static void validateSheetName(String sheetName) { public static void validateSheetName(String sheetName) {
if (sheetName == null) { if (sheetName == null) {
@ -160,6 +161,15 @@ public class WorkbookUtil {
} }
/**
* Validates sheet state
*
* @param state the state to validate
* @throws IllegalArgumentException if state is not one of
* {@link Workbook#SHEET_STATE_VISIBLE},
* {@link Workbook#SHEET_STATE_HIDDEN} or
* {@link Workbook#SHEET_STATE_VERY_HIDDEN}
*/
public static void validateSheetState(int state) { public static void validateSheetState(int state) {
switch(state){ switch(state){
case Workbook.SHEET_STATE_VISIBLE: break; case Workbook.SHEET_STATE_VISIBLE: break;