com.alibaba.excel.enums
枚举 CellDataTypeEnum
- java.lang.Object
-
- java.lang.Enum<CellDataTypeEnum>
-
- com.alibaba.excel.enums.CellDataTypeEnum
-
- 所有已实现的接口:
- Serializable, Comparable< CellDataTypeEnum>
public enum CellDataTypeEnum extends Enum<CellDataTypeEnum>
excel internal data type- 作者:
- Jiaju Zhuang
-
枚举常量概要
枚举常量 枚举常量和说明 BOOLEAN
booleanDATE
date.DIRECT_STRING
This type of data does not need to be read in the 'sharedStrings.xml', it is only used for overuse, and the data will be stored as aSTRING
EMPTY
emptyERROR
errorNUMBER
numberRICH_TEXT_STRING
rich text string.Support only when writing.STRING
string
方法概要
所有方法 静态方法 具体方法 限定符和类型 方法和说明 static CellDataTypeEnum
buildFromCellType(String cellType)
Build data typesstatic CellDataTypeEnum
valueOf(String name)
返回带有指定名称的该类型的枚举常量。static CellDataTypeEnum[]
values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
枚举常量详细资料
STRING
public static final CellDataTypeEnum STRING
string
DIRECT_STRING
public static final CellDataTypeEnum DIRECT_STRING
This type of data does not need to be read in the 'sharedStrings.xml', it is only used for overuse, and the data will be stored as aSTRING
NUMBER
public static final CellDataTypeEnum NUMBER
number
BOOLEAN
public static final CellDataTypeEnum BOOLEAN
boolean
EMPTY
public static final CellDataTypeEnum EMPTY
empty
ERROR
public static final CellDataTypeEnum ERROR
error
DATE
public static final CellDataTypeEnum DATE
date. Support only when writing.
RICH_TEXT_STRING
public static final CellDataTypeEnum RICH_TEXT_STRING
rich text string.Support only when writing.
方法详细资料
values
public static CellDataTypeEnum[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (CellDataTypeEnum c : CellDataTypeEnum.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
valueOf
public static CellDataTypeEnum valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符 完全匹配。(不允许有多余 的空格字符。)- 参数:
-
name
- 要返回的枚举常量的名称。 - 返回:
- 返回带有指定名称的枚举常量
- 抛出:
-
IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量 -
NullPointerException
- 如果参数为空值
buildFromCellType
public static CellDataTypeEnum buildFromCellType(String cellType)
Build data types- 参数:
-
cellType
- - 返回:
Copyright © 2018–2021 Alibaba Group. All rights reserved.