- All Implemented Interfaces:
Serializable,Comparable<ValueType>,Constable
There are different types of formats that can be provided. This enum lists the most common types of such format. E.g.
you may need to express user, that e-mail value should be of format: ^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$ so in this case
you specify 'REGEXP. When provided format is: [STRING, ENUM, LIST, REGEXP], you specify ENUM since it refers to the
list of possible enumerated string values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
BOOLEAN
-
INTEGER
-
DECIMAL
-
NUMBER
-
STRING
-
DATETIME
-
REGEXP
-
SEMVER
-
UUID
-
ENUM
-
LIST
-
SET
-
MAP
-
JSON
-
XML
-
URL
-
URI
-
OBJECT
-
TYPE
-
AUTO_MIME_TYPE
A special type telling that consumer should follow serialization hints of response. Use this type in the case you pass an object as a value and you expect that correct type will be set at the time of serialization. This might be helpful when using multiple serialization types as response.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-