Package com.grapecity.documents.excel
Enum Class ValidationType
- All Implemented Interfaces:
Serializable,Comparable<ValidationType>,Constable
指定与值一起执行验证测试的类型。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationTypeforValue(int value) intgetValue()static ValidationTypeReturns the enum constant of this class with the specified name.static ValidationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
指定数据验证允许任何类型的值,并不检查值类型或范围。 -
Whole
指定数据验证检查并允许满足给定条件的整数价值。 -
Decimal
指定数据验证检查并允许满足给定条件的十进制值。 -
List
指定数据验证检查并允许与值列表中的一个匹配的值。 -
Date
指定数据验证检查并允许符合给定条件的日期值。 -
Time
指定数据验证检查并允许满足给定条件的时间值。 -
TextLength
指定数据验证检查并允许其长度满足给定条件的文本值。 -
Custom
指定数据验证使用自定义公式来检查单元格值。
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
forValue
-