public class ApiParameter extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
private ClassType |
dataType |
private String |
defaultValue |
private Boolean |
email |
private HttpMethod[] |
httpMethods |
private Long |
max |
private Long |
min |
private String |
name |
private Boolean |
notBlank |
private Boolean |
notEmpty |
private String |
notes |
private String |
pattern |
private Boolean |
require |
private String |
value |
| 构造器和说明 |
|---|
ApiParameter() |
ApiParameter(ApiPara apiPara,
HttpMethod[] defaultMethods) |
| 限定符和类型 | 方法和说明 |
|---|---|
ClassType |
getDataType() |
String |
getDefaultValue() |
Boolean |
getEmail() |
HttpMethod[] |
getHttpMethods() |
String |
getHttpMethodsString() |
Long |
getMax() |
Long |
getMin() |
String |
getName() |
Boolean |
getNotBlank() |
Boolean |
getNotEmpty() |
String |
getNotes() |
String |
getNotesString() |
String |
getPattern() |
Boolean |
getRequire() |
String |
getValue() |
void |
setDataType(ClassType dataType) |
void |
setDefaultValue(String defaultValue) |
void |
setEmail(Boolean email) |
void |
setHttpMethods(HttpMethod[] httpMethods) |
void |
setMax(Long max) |
void |
setMin(Long min) |
void |
setName(String name) |
void |
setNotBlank(Boolean notBlank) |
void |
setNotEmpty(Boolean notEmpty) |
void |
setNotes(String notes) |
void |
setPattern(String pattern) |
void |
setRequire(Boolean require) |
void |
setValue(String value) |
String |
toString() |
private HttpMethod[] httpMethods
private String defaultValue
public ApiParameter()
public ApiParameter(ApiPara apiPara, HttpMethod[] defaultMethods)
public ClassType getDataType()
public void setDataType(ClassType dataType)
public HttpMethod[] getHttpMethods()
public void setHttpMethods(HttpMethod[] httpMethods)
public Boolean getRequire()
public void setRequire(Boolean require)
public Boolean getNotBlank()
public void setNotBlank(Boolean notBlank)
public Boolean getNotEmpty()
public void setNotEmpty(Boolean notEmpty)
public String getPattern()
public void setPattern(String pattern)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public String getHttpMethodsString()
public String getNotesString()
Copyright © 2024. All rights reserved.