Enum Class LargeCellHandler

java.lang.Object
java.lang.Enum<LargeCellHandler>
com.northconcepts.datapipeline.excel.LargeCellHandler
All Implemented Interfaces:
Serializable, Comparable<LargeCellHandler>, Constable

public enum LargeCellHandler extends Enum<LargeCellHandler>
Strategy for text values longer than ExcelWriter.MAX_CELL_LENGTH characters, the most an Excel cell can hold.
  • Enum Constant Details

  • Method Details

    • values

      public static LargeCellHandler[] 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

      public static LargeCellHandler valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • interceptValue

      public final String interceptValue(Field field, String value)
      Returns the value unchanged if it is null or fits in a cell, otherwise the result of this strategy.
    • handleLargeValueImpl

      protected abstract String handleLargeValueImpl(Field field, String value)
      Returns the replacement for a value over ExcelWriter.MAX_CELL_LENGTH characters, or throws to reject it.
    • lookup

      public static LargeCellHandler lookup(String name)
      Returns the handler whose name matches the given one case-insensitively, or null if it is empty or unknown.