public enum ParameterType extends Enum<ParameterType>
| Enum Constant and Description |
|---|
ARRAY
数组类型
|
BOOLEAN
boolean
|
FILE
文件类型:
If type is "file", the consumes MUST be either "multipart/form-data", " application/x-www-form-urlencoded" or both and the parameter MUST be in "formData".
|
INTEGER
long
|
INTEGER_32
integer
|
NUMBER
float
|
STRING
string
|
UNKNOWN
未知类型
|
| Modifier and Type | Method and Description |
|---|---|
static ParameterType |
fromText(String s) |
String |
openapiValue() |
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 UNKNOWN
public static final ParameterType STRING
public static final ParameterType INTEGER_32
public static final ParameterType INTEGER
public static final ParameterType NUMBER
public static final ParameterType BOOLEAN
public static final ParameterType ARRAY
public static final ParameterType FILE
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 String openapiValue()
public static ParameterType fromText(String s)
Copyright © 2021. All rights reserved.