public enum ParameterType extends Enum<ParameterType>
validationMethod()
Enum Constant and Description |
---|
BASE64 |
BOOL
It allows true, false, t, f, 1, 0
|
DATE
DATE as defined by full-date - RFC3339
|
DATETIME
DATETIME as defined by date-time - RFC3339
|
DOUBLE
DOUBLE type does the validation with Double.parseDouble(value)
|
EMAIL |
FLOAT
FLOAT type does the validation with Float.parseFloat(value)
|
GENERIC_STRING
STRING Type accept every string
|
HOSTNAME |
INT
INT type does the validation with Integer.parseInt(value)
|
IPV4 |
IPV6 |
TIME
TIME as defined by partial-time - RFC3339
|
URI |
UUID
UUID as defined by RFC4122
|
Modifier and Type | Method and Description |
---|---|
ParameterTypeValidator |
validationMethod() |
static ParameterType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParameterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParameterType GENERIC_STRING
public static final ParameterType EMAIL
public static final ParameterType URI
public static final ParameterType BOOL
public static final ParameterType INT
public static final ParameterType FLOAT
public static final ParameterType DOUBLE
public static final ParameterType DATE
public static final ParameterType DATETIME
public static final ParameterType TIME
public static final ParameterType BASE64
public static final ParameterType IPV4
public static final ParameterType IPV6
public static final ParameterType HOSTNAME
public static final ParameterType UUID
public static ParameterType[] values()
for (ParameterType c : ParameterType.values()) System.out.println(c);
public static ParameterType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ParameterTypeValidator validationMethod()
Copyright © 2023 Eclipse. All rights reserved.