public static enum ExcelReader.FailedExpressionStrategy extends Enum<ExcelReader.FailedExpressionStrategy>
ExcelReader#getFailedExpressionStrategy()},
ExcelReader#setFailedExpressionStrategy(FailedExpressionStrategy)},
ExcelReader#isEvaluateExpressions()},
ExcelReader#setEvaluateExpressions(boolean)}| Enum Constant and Description |
|---|
FAIL
Throw exception when cell formula/expression evaluation fails -- causing the pipeline/job to abort.
|
SET_CACHED_VALUE
Use the last value cached in the Excel spreadsheet when cell formula/expression evaluation fails if available.
|
SET_EXCEPTION_MESSAGE
Use the failure's exception message as the field's value when a cell formula evaluation fails.
|
SET_EXPRESSION
Use the formula/expression as the field's value when a cell formula evaluation fails.
|
SET_NULL
Use
null as the field's value when a cell formula evaluation fails. |
| Modifier and Type | Method and Description |
|---|---|
static ExcelReader.FailedExpressionStrategy |
lookup(String name)
Looks up a FailedExpressionStrategy by name (case-insensitive).
|
static ExcelReader.FailedExpressionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExcelReader.FailedExpressionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExcelReader.FailedExpressionStrategy FAIL
public static final ExcelReader.FailedExpressionStrategy SET_CACHED_VALUE
public static final ExcelReader.FailedExpressionStrategy SET_EXPRESSION
public static final ExcelReader.FailedExpressionStrategy SET_NULL
null as the field's value when a cell formula evaluation fails.public static final ExcelReader.FailedExpressionStrategy SET_EXCEPTION_MESSAGE
public static ExcelReader.FailedExpressionStrategy[] values()
for (ExcelReader.FailedExpressionStrategy c : ExcelReader.FailedExpressionStrategy.values()) System.out.println(c);
public static ExcelReader.FailedExpressionStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ExcelReader.FailedExpressionStrategy lookup(String name)
name - the name of the strategy to lookupCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.