public enum CellDataType extends Enum<CellDataType>
Enum Constant and Description |
---|
BOOL
Boolean类型
|
DATE
日期类型,此类型使用值判断,而非属性
|
ERROR
类型错误
|
FORMULA
计算结果类型,此类型使用f标签辅助判断,而非属性
|
INLINESTR
富文本类型
|
NULL
空类型
|
NUMBER
数字类型
|
SSTINDEX
共享字符串索引类型
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
获取对应类型的属性值
|
static CellDataType |
of(String name)
类型字符串转为枚举
|
static CellDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CellDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CellDataType BOOL
public static final CellDataType ERROR
public static final CellDataType FORMULA
public static final CellDataType INLINESTR
public static final CellDataType SSTINDEX
public static final CellDataType NUMBER
public static final CellDataType DATE
public static final CellDataType NULL
public static CellDataType[] values()
for (CellDataType c : CellDataType.values()) System.out.println(c);
public static CellDataType 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 String getName()
public static CellDataType of(String name)
name
- 类型字符串Copyright © 2024. All rights reserved.