[]
        
立即试用
(Showing Draft Content)

ValidationType

Enum Class ValidationType

java.lang.Object
java.lang.Enum<ValidationType>
com.grapecity.documents.excel.ValidationType
All Implemented Interfaces:
Serializable, Comparable<ValidationType>, Constable

public enum ValidationType extends Enum<ValidationType>
指定与值一起执行验证测试的类型。
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    指定数据验证使用自定义公式来检查单元格值。
    指定数据验证检查并允许符合给定条件的日期值。
    指定数据验证检查并允许满足给定条件的十进制值。
    指定数据验证检查并允许与值列表中的一个匹配的值。
    指定数据验证允许任何类型的值,并不检查值类型或范围。
    指定数据验证检查并允许其长度满足给定条件的文本值。
    指定数据验证检查并允许满足给定条件的时间值。
    指定数据验证检查并允许满足给定条件的整数价值。
  • Method Summary

    Modifier and Type
    Method
    Description
    forValue(int value)
     
    int
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • None

      public static final ValidationType None
      指定数据验证允许任何类型的值,并不检查值类型或范围。
    • Whole

      public static final ValidationType Whole
      指定数据验证检查并允许满足给定条件的整数价值。
    • Decimal

      public static final ValidationType Decimal
      指定数据验证检查并允许满足给定条件的十进制值。
    • List

      public static final ValidationType List
      指定数据验证检查并允许与值列表中的一个匹配的值。
    • Date

      public static final ValidationType Date
      指定数据验证检查并允许符合给定条件的日期值。
    • Time

      public static final ValidationType Time
      指定数据验证检查并允许满足给定条件的时间值。
    • TextLength

      public static final ValidationType TextLength
      指定数据验证检查并允许其长度满足给定条件的文本值。
    • Custom

      public static final ValidationType Custom
      指定数据验证使用自定义公式来检查单元格值。
  • Method Details

    • values

      public static ValidationType[] 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

      public static ValidationType 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.)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
    • forValue

      public static ValidationType forValue(int value)