public enum RestParamType extends Enum<RestParamType>
Enum Constant and Description |
---|
BODY
Request body
|
FORM_DATA
Form data entry
|
HEADER
Header value
|
OTHER
Not a standard Swagger-defined field
|
PATH
Path variable
|
QUERY
Query parameter
|
RESPONSE
Response value
|
RESPONSE_BODY
Response value
|
RESPONSE_HEADER
Response header value
|
RESPONSE_STATUS
Response status value
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAny(RestParamType... t)
Returns
|
String |
toString() |
static RestParamType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestParamType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestParamType PATH
public static final RestParamType HEADER
public static final RestParamType FORM_DATA
public static final RestParamType QUERY
public static final RestParamType BODY
public static final RestParamType RESPONSE
public static final RestParamType RESPONSE_BODY
public static final RestParamType RESPONSE_HEADER
public static final RestParamType RESPONSE_STATUS
public static final RestParamType OTHER
public static RestParamType[] values()
for (RestParamType c : RestParamType.values()) System.out.println(c);
public static RestParamType 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 boolean isAny(RestParamType... t)
t
- The list to check against.public String toString()
toString
in class Enum<RestParamType>
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.