Enum Class Data.Type

java.lang.Object
java.lang.Enum<Data.Type>
org.apache.velocity.tools.config.Data.Type
所有已实现的接口:
Serializable, Comparable<Data.Type>, Constable
封闭类:
Data

protected static enum Data.Type extends Enum<Data.Type>
Delineates the standard, known types and their associated target classes (Data.setTargetClass(java.lang.Class) and converters (Data.setConverter(java.lang.Class)).
  • 枚举常量详细资料

    • AUTO

      public static final Data.Type AUTO
    • BOOLEAN

      public static final Data.Type BOOLEAN
    • CUSTOM

      public static final Data.Type CUSTOM
    • FIELD

      public static final Data.Type FIELD
    • NUMBER

      public static final Data.Type NUMBER
    • STRING

      public static final Data.Type STRING
    • LIST

      public static final Data.Type LIST
    • LIST_AUTO

      public static final Data.Type LIST_AUTO
    • LIST_BOOLEAN

      public static final Data.Type LIST_BOOLEAN
    • LIST_FIELD

      public static final Data.Type LIST_FIELD
    • LIST_NUMBER

      public static final Data.Type LIST_NUMBER
    • LIST_STRING

      public static final Data.Type LIST_STRING
  • 字段详细资料

    • target

      private Class target
    • converter

      private Converter converter
  • 构造器详细资料

    • Type

      private Type(Class t, Converter c)
  • 方法详细资料

    • values

      public static Data.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Data.Type 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • isCustom

      public boolean isCustom()
    • isList

      public boolean isList()
    • getTarget

      public Class getTarget()
    • getConverter

      public Converter getConverter()
    • value

      public String value()
    • get

      public static Data.Type get(String type)