com.github.fge.jsonschema.messages
Enum FormatMessages
java.lang.Object
java.lang.Enum<FormatMessages>
com.github.fge.jsonschema.messages.FormatMessages
- All Implemented Interfaces:
- Serializable, Comparable<FormatMessages>
public enum FormatMessages
- extends Enum<FormatMessages>
Messages used by format
keyword validation
FORMAT_NOT_SUPPORTED
public static final FormatMessages FORMAT_NOT_SUPPORTED
INVALID_DATE_FORMAT
public static final FormatMessages INVALID_DATE_FORMAT
INVALID_EMAIL
public static final FormatMessages INVALID_EMAIL
INVALID_HOSTNAME
public static final FormatMessages INVALID_HOSTNAME
INVALID_IPV6_ADDR
public static final FormatMessages INVALID_IPV6_ADDR
INVALID_ECMA_262_REGEX
public static final FormatMessages INVALID_ECMA_262_REGEX
INVALID_IPV4_ADDR
public static final FormatMessages INVALID_IPV4_ADDR
INVALID_PHONE_NUMBER
public static final FormatMessages INVALID_PHONE_NUMBER
EPOCH_NEGATIVE
public static final FormatMessages EPOCH_NEGATIVE
EPOCH_OVERFLOW
public static final FormatMessages EPOCH_OVERFLOW
INVALID_URI
public static final FormatMessages INVALID_URI
values
public static FormatMessages[] 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 (FormatMessages c : FormatMessages.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FormatMessages valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
toString
public String toString()
- Overrides:
toString
in class Enum<FormatMessages>
Copyright © 2014. All Rights Reserved.