public abstract class AbstractSerializableParameter<T extends AbstractSerializableParameter<T>>
extends io.swagger.models.parameters.AbstractParameter
implements io.swagger.models.parameters.SerializableParameter
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
_enum |
protected Boolean |
allowEmptyValue |
protected String |
collectionFormat |
protected String |
defaultValue |
protected String |
example |
protected Boolean |
exclusiveMaximum |
protected Boolean |
exclusiveMinimum |
protected String |
format |
protected io.swagger.models.properties.Property |
items |
protected BigDecimal |
maximum |
Integer |
maxLength
See http://json-schema.org/latest/json-schema-validation.html#anchor26
|
protected BigDecimal |
minimum |
Integer |
minLength
See http://json-schema.org/latest/json-schema-validation.html#anchor29
|
Number |
multipleOf
See http://json-schema.org/latest/json-schema-validation.html#anchor14
|
String |
pattern
See http://json-schema.org/latest/json-schema-validation.html#anchor33
|
protected String |
type |
Boolean |
uniqueItems
See http://json-schema.org/latest/json-schema-validation.html#anchor49
|
| Constructor and Description |
|---|
AbstractSerializableParameter() |
getAccess, getDescription, getIn, getName, getRequired, getVendorExtensions, isReadOnly, setAccess, setDescription, setIn, setName, setReadOnly, setRequired, setVendorExtension, setVendorExtensionspublic Integer maxLength
public Integer minLength
public String pattern
public Boolean uniqueItems
public Number multipleOf
protected String type
protected String format
protected String collectionFormat
protected io.swagger.models.properties.Property items
protected Boolean exclusiveMaximum
protected BigDecimal maximum
protected Boolean exclusiveMinimum
protected BigDecimal minimum
protected String example
protected Boolean allowEmptyValue
protected String defaultValue
public T property(io.swagger.models.properties.Property property)
public T required(boolean required)
protected String getDefaultCollectionFormat()
public T items(io.swagger.models.properties.Property items)
public List<String> getEnum()
getEnum in interface io.swagger.models.parameters.SerializableParameterpublic void setEnum(List<String> _enum)
setEnum in interface io.swagger.models.parameters.SerializableParameterpublic List<Object> getEnumValue()
getEnumValue in interface io.swagger.models.parameters.SerializableParameterpublic void setEnumValue(List<?> enumValue)
setEnumValue in interface io.swagger.models.parameters.SerializableParameterpublic io.swagger.models.properties.Property getItems()
getItems in interface io.swagger.models.parameters.SerializableParameterpublic void setItems(io.swagger.models.properties.Property items)
setItems in interface io.swagger.models.parameters.SerializableParameterpublic String getFormat()
getFormat in interface io.swagger.models.parameters.SerializableParameterpublic void setFormat(String format)
setFormat in interface io.swagger.models.parameters.SerializableParameterpublic String getType()
getType in interface io.swagger.models.parameters.SerializableParameterpublic void setType(String type)
setType in interface io.swagger.models.parameters.SerializableParameterpublic String getCollectionFormat()
getCollectionFormat in interface io.swagger.models.parameters.SerializableParameterpublic void setCollectionFormat(String collectionFormat)
setCollectionFormat in interface io.swagger.models.parameters.SerializableParameterpublic void setProperty(io.swagger.models.properties.Property property)
public Object getDefaultValue()
public void setDefaultValue(String defaultValue)
public Object getDefault()
public void setDefault(Object defaultValue)
public void setExclusiveMaximum(Boolean exclusiveMaximum)
setExclusiveMaximum in interface io.swagger.models.parameters.SerializableParameterpublic BigDecimal getMaximum()
getMaximum in interface io.swagger.models.parameters.SerializableParameterpublic void setMaximum(BigDecimal maximum)
setMaximum in interface io.swagger.models.parameters.SerializableParameterpublic Boolean isExclusiveMinimum()
isExclusiveMinimum in interface io.swagger.models.parameters.SerializableParameterpublic void setExclusiveMinimum(Boolean exclusiveMinimum)
setExclusiveMinimum in interface io.swagger.models.parameters.SerializableParameterpublic BigDecimal getMinimum()
getMinimum in interface io.swagger.models.parameters.SerializableParameterpublic void setMinimum(BigDecimal minimum)
setMinimum in interface io.swagger.models.parameters.SerializableParameterpublic Integer getMaxItems()
getMaxItems in interface io.swagger.models.parameters.SerializableParameterpublic void setMaxItems(Integer maxItems)
setMaxItems in interface io.swagger.models.parameters.SerializableParameterpublic Integer getMinItems()
getMinItems in interface io.swagger.models.parameters.SerializableParameterpublic void setMinItems(Integer minItems)
setMinItems in interface io.swagger.models.parameters.SerializableParameterpublic Boolean getAllowEmptyValue()
getAllowEmptyValue in interface io.swagger.models.parameters.SerializableParameterpublic void setAllowEmptyValue(Boolean allowEmptyValue)
setAllowEmptyValue in interface io.swagger.models.parameters.SerializableParameterpublic Object getExample()
public void setExample(String example)
public Integer getMaxLength()
getMaxLength in interface io.swagger.models.parameters.SerializableParameterpublic void setMaxLength(Integer maxLength)
setMaxLength in interface io.swagger.models.parameters.SerializableParameterpublic Integer getMinLength()
getMinLength in interface io.swagger.models.parameters.SerializableParameterpublic void setMinLength(Integer minLength)
setMinLength in interface io.swagger.models.parameters.SerializableParameterpublic String getPattern()
getPattern in interface io.swagger.models.parameters.ParametergetPattern in interface io.swagger.models.parameters.SerializableParametergetPattern in class io.swagger.models.parameters.AbstractParameterpublic void setPattern(String pattern)
setPattern in interface io.swagger.models.parameters.ParametersetPattern in interface io.swagger.models.parameters.SerializableParametersetPattern in class io.swagger.models.parameters.AbstractParameterpublic Boolean isUniqueItems()
isUniqueItems in interface io.swagger.models.parameters.SerializableParameterpublic void setUniqueItems(Boolean uniqueItems)
setUniqueItems in interface io.swagger.models.parameters.SerializableParameterpublic Number getMultipleOf()
getMultipleOf in interface io.swagger.models.parameters.SerializableParameterpublic void setMultipleOf(Number multipleOf)
setMultipleOf in interface io.swagger.models.parameters.SerializableParameterpublic Boolean isExclusiveMaximum()
isExclusiveMaximum in interface io.swagger.models.parameters.SerializableParameterpublic boolean equals(Object obj)
equals in class io.swagger.models.parameters.AbstractParameterpublic int hashCode()
hashCode in class io.swagger.models.parameters.AbstractParameterCopyright © 2019. All rights reserved.