com.smartbear.swagger4j
Enum Parameter.ParamType
java.lang.Object
java.lang.Enum<Parameter.ParamType>
com.smartbear.swagger4j.Parameter.ParamType
- All Implemented Interfaces:
- Serializable, Comparable<Parameter.ParamType>
- Enclosing interface:
- Parameter
public static enum Parameter.ParamType
- extends Enum<Parameter.ParamType>
Parameter type - see https://github.com/wordnik/swagger-core/wiki/Parameters
path
public static final Parameter.ParamType path
query
public static final Parameter.ParamType query
body
public static final Parameter.ParamType body
header
public static final Parameter.ParamType header
form
public static final Parameter.ParamType form
values
public static Parameter.ParamType[] 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 (Parameter.ParamType c : Parameter.ParamType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Parameter.ParamType 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
Copyright © 2013. All Rights Reserved.