public enum ParameterType extends Enum<ParameterType>
| 枚举常量和说明 |
|---|
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
未知类型
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ParameterType |
fromText(String s) |
String |
openapiValue() |
static ParameterType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ParameterType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String openapiValue()
public static ParameterType fromText(String s)
Copyright © 2019. All Rights Reserved.