Package org.apache.poi.ss.usermodel
Enum CellType
- java.lang.Object
-
- java.lang.Enum<CellType>
-
- org.apache.poi.ss.usermodel.CellType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description _NONE
Unknown type, used to represent a state prior to initialization or the lack of a concrete type.BLANK
Blank cell typeBOOLEAN
Boolean cell typeERROR
Error cell typeFORMULA
Formula cell typeNUMERIC
Numeric cell type (whole numbers, fractional numbers, dates)STRING
String (text) cell type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CellType
forInt(int code)
Deprecated.POI 3.15 beta 3.int
getCode()
Deprecated.POI 3.15 beta 3static CellType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CellType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
_NONE
@Internal(since="POI 3.15 beta 3") public static final CellType _NONE
Unknown type, used to represent a state prior to initialization or the lack of a concrete type. For internal use only.
-
NUMERIC
public static final CellType NUMERIC
Numeric cell type (whole numbers, fractional numbers, dates)
-
STRING
public static final CellType STRING
String (text) cell type
-
FORMULA
public static final CellType FORMULA
Formula cell type- See Also:
FormulaType
-
BLANK
public static final CellType BLANK
Blank cell type
-
BOOLEAN
public static final CellType BOOLEAN
Boolean cell type
-
ERROR
public static final CellType ERROR
Error cell type- See Also:
FormulaError
-
-
Method Detail
-
values
public static CellType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CellType c : CellType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CellType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forInt
@Deprecated public static CellType forInt(int code)
Deprecated.POI 3.15 beta 3. Used to transition code fromint
s toCellType
s.- Since:
- POI 3.15 beta 3.
-
getCode
@Deprecated public int getCode()
Deprecated.POI 3.15 beta 3- Since:
- POI 3.15 beta 3
-
-