Enum Class LargeCellHandler
- All Implemented Interfaces:
Serializable,Comparable<LargeCellHandler>,Constable
Strategy for text values longer than
ExcelWriter.MAX_CELL_LENGTH characters, the most an Excel cell can hold.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringhandleLargeValueImpl(Field field, String value) Returns the replacement for a value overExcelWriter.MAX_CELL_LENGTHcharacters, or throws to reject it.final StringinterceptValue(Field field, String value) Returns the value unchanged if it is null or fits in a cell, otherwise the result of this strategy.static LargeCellHandlerReturns the handler whose name matches the given one case-insensitively, or null if it is empty or unknown.static LargeCellHandlerReturns the enum constant of this class with the specified name.static LargeCellHandler[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAIL
-
TRUNCATE
-
SKIP
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
interceptValue
Returns the value unchanged if it is null or fits in a cell, otherwise the result of this strategy. -
handleLargeValueImpl
Returns the replacement for a value overExcelWriter.MAX_CELL_LENGTHcharacters, or throws to reject it. -
lookup
Returns the handler whose name matches the given one case-insensitively, or null if it is empty or unknown.
-