Enum Class RowLevelReadPolicy

java.lang.Object
java.lang.Enum<RowLevelReadPolicy>
cn.toutatis.xvoid.axolotl.excel.constant.RowLevelReadPolicy
所有已实现的接口:
Serializable, Comparable<RowLevelReadPolicy>, Constable

public enum RowLevelReadPolicy extends Enum<RowLevelReadPolicy>
读取Excel的功能可配置特性
  • 枚举常量详细资料

    • IGNORE_EMPTY_SHEET_ERROR

      public static final RowLevelReadPolicy IGNORE_EMPTY_SHEET_ERROR
      忽略空sheet的错误 空sheet将返回null
    • INCLUDE_EMPTY_ROW

      public static final RowLevelReadPolicy INCLUDE_EMPTY_ROW
      空行也视为有效数据 读取时将转换为一个空对象
    • SORTED_READ_SHEET_DATA

      public static final RowLevelReadPolicy SORTED_READ_SHEET_DATA
      读取的sheet数据按顺序排列 在使用Map接收时,使用LinkedHashMap
    • CAST_NUMBER_TO_DATE

      public static final RowLevelReadPolicy CAST_NUMBER_TO_DATE
      判断数字为日期类型将转换为日期格式
    • DATA_BIND_PRECISE_LOCALIZATION

      public static final RowLevelReadPolicy DATA_BIND_PRECISE_LOCALIZATION
      精确绑定属性 指定此特性,在按行读取时,若没有指定列名,将不会绑定对象属性 否则将按照实体字段顺序自动按照索引绑定数据
    • TRIM_CELL_VALUE

      public static final RowLevelReadPolicy TRIM_CELL_VALUE
      修整单元格去掉单元格所有的空格和换行符
    • USE_MAP_DEBUG

      public static final RowLevelReadPolicy USE_MAP_DEBUG
      使用Map接收数据时,打印调试信息
    • FIELD_EXIST_OVERRIDE

      public static final RowLevelReadPolicy FIELD_EXIST_OVERRIDE
      如果字段存在值覆盖掉原值
    • VALIDATE_READ_ROW_DATA

      public static final RowLevelReadPolicy VALIDATE_READ_ROW_DATA
      读取数据后校验数据
  • 方法详细资料

    • values

      public static RowLevelReadPolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RowLevelReadPolicy 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getPolicyAsBoolean

      public boolean getPolicyAsBoolean()