public enum ParameterType extends java.lang.Enum<ParameterType>
RESTParameter
.
Any one of the value from this enumeration can be used for RESTParameter.setParameterType(String)
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getParameterType()
Obtains the String value for the enum object.
|
static ParameterType |
getParameterType(java.lang.String paramType)
Returns the
ParameterType enum object for a given parameter type string value. |
static ParameterType |
valueOf(java.lang.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 QUERY
public static final ParameterType PATH
public static final ParameterType HEADER
public static final ParameterType FORM
public static ParameterType[] values()
for (ParameterType c : ParameterType.values()) System.out.println(c);
public static ParameterType 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 getParameterType()
public static ParameterType getParameterType(java.lang.String paramType)
ParameterType
enum object for a given parameter type string value.
The given string value should correspond to the allowed list of Parameter Types.paramType
- The String value for which the enum object is expectedParameterType
enum if the given string corresponds
to an allowed value, null
otherwise