Enum Format

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

    public enum Format
    extends java.lang.Enum<Format>
    • Enum Constant Detail

      • UUID

        public static final Format UUID
      • DATE

        public static final Format DATE
      • TIME

        public static final Format TIME
      • IDN_EMAIL

        public static final Format IDN_EMAIL
      • IDN_HOSTNAME

        public static final Format IDN_HOSTNAME
      • IRI

        public static final Format IRI
      • IRI_REFERENCE

        public static final Format IRI_REFERENCE
      • RELATIVE_JSON_POINTER

        public static final Format RELATIVE_JSON_POINTER
      • REGEX

        public static final Format REGEX
      • URI_REFERENCE

        public static final Format URI_REFERENCE
      • URI_TEMPLATE

        public static final Format URI_TEMPLATE
      • JSON_POINTER

        public static final Format JSON_POINTER
      • DATE_TIME

        public static final Format DATE_TIME
      • EMAIL

        public static final Format EMAIL
      • HOSTNAME

        public static final Format HOSTNAME
      • IPV4

        public static final Format IPV4
      • IPV6

        public static final Format IPV6
      • URI

        public static final Format URI
    • Method Detail

      • values

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

        public static Format 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
      • getFormat

        public java.lang.String getFormat()
      • of

        public static @Nullable Format of​(@Nullable java.lang.String format)