Enum FileFieldType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FileFieldType>

    enum FileFieldType
    extends java.lang.Enum<FileFieldType>
    Type of a field in a Web (HTML) table.

    Usually, and unless specified explicitly in the header row, a field is of type STRING. But specifying the field type in the fields makes it easier to write SQL.

    Trivially modified from CsvFieldType.

    • Field Detail

      • primitive

        private final Primitive primitive
      • clazz

        private final java.lang.Class clazz
      • MAP

        private static final java.util.Map<java.lang.String,​FileFieldType> MAP
    • Constructor Detail

      • FileFieldType

        private FileFieldType​(Primitive primitive)
      • FileFieldType

        private FileFieldType​(Primitive primitive,
                              java.lang.Class clazz)
    • Method Detail

      • values

        public static FileFieldType[] 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 (FileFieldType c : FileFieldType.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FileFieldType 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • of

        public static FileFieldType of​(java.lang.String typeString)