public enum ParameterDataType extends java.lang.Enum<ParameterDataType>
RESTParameter
.
Any one of the value from this enumeration can be used for RESTParameter.setDataType(String)
Enum Constant and Description |
---|
BOOLEAN |
DATE_OR_TIME |
DURATION |
EMAIL |
IP_ADDRESS |
NUMBER |
STRING |
URL_URI |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getParameterDataType()
Obtains the String value for the enum object.
|
static ParameterDataType |
getParameterDataType(java.lang.String paramDataType)
Returns the
ParameterDataType enum object for a given parameter Data type string value. |
static ParameterDataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ParameterDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParameterDataType BOOLEAN
public static final ParameterDataType DATE_OR_TIME
public static final ParameterDataType DURATION
public static final ParameterDataType EMAIL
public static final ParameterDataType IP_ADDRESS
public static final ParameterDataType NUMBER
public static final ParameterDataType STRING
public static final ParameterDataType URL_URI
public static ParameterDataType[] values()
for (ParameterDataType c : ParameterDataType.values()) System.out.println(c);
public static ParameterDataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getParameterDataType()
public static ParameterDataType getParameterDataType(java.lang.String paramDataType)
ParameterDataType
enum object for a given parameter Data type string value.
The given string value should correspond to the allowed list of Parameter Data Types.paramDataType
- The String value for which the enum object is expectedParameterDataType
enum if the given string corresponds
to an allowed value, null
otherwise