Enum FieldDataFormat

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

    public enum FieldDataFormat
    extends java.lang.Enum<FieldDataFormat>
    Type of parsing applied to field.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      GENDER
      Field value is parsed as "Male", "Female".
      ISO_COUNTRY_ALPHA_2
      Field value is parsed as ISO 3166-1 alpha-2 country code.
      ISO_COUNTRY_ALPHA_3
      Field value is parsed as ISO 3166-1 alpha-3 country code.
      ISO_COUNTRY_NAME
      Field value is parsed as ISO 3166-1 country name.
      ISO_COUNTRY_NUMERIC
      Field value is parsed as ISO 3166-1 numeric country code.
      ISO_DATE
      Field value is parsed as ISO 8601 date in format YYYY-MM-DD.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FieldDataFormat valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static FieldDataFormat[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • ISO_DATE

        public static final FieldDataFormat ISO_DATE
        Field value is parsed as ISO 8601 date in format YYYY-MM-DD.
      • ISO_COUNTRY_ALPHA_2

        public static final FieldDataFormat ISO_COUNTRY_ALPHA_2
        Field value is parsed as ISO 3166-1 alpha-2 country code. E.g. "DE" for Germany.
      • ISO_COUNTRY_ALPHA_3

        public static final FieldDataFormat ISO_COUNTRY_ALPHA_3
        Field value is parsed as ISO 3166-1 alpha-3 country code. E.g. "DEU" for Germany.
      • ISO_COUNTRY_NUMERIC

        public static final FieldDataFormat ISO_COUNTRY_NUMERIC
        Field value is parsed as ISO 3166-1 numeric country code. E.g. "276" for Germany.
      • ISO_COUNTRY_NAME

        public static final FieldDataFormat ISO_COUNTRY_NAME
        Field value is parsed as ISO 3166-1 country name. E.g. "Germany".
      • GENDER

        public static final FieldDataFormat GENDER
        Field value is parsed as "Male", "Female".
    • Method Detail

      • values

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

        public static FieldDataFormat 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 name
        java.lang.NullPointerException - if the argument is null