Package io.swagger.models.parameters
Class AbstractSerializableParameter<T extends AbstractSerializableParameter<T>>
- java.lang.Object
-
- io.swagger.models.parameters.AbstractParameter
-
- io.swagger.models.parameters.AbstractSerializableParameter<T>
-
- All Implemented Interfaces:
Parameter
,SerializableParameter
- Direct Known Subclasses:
CookieParameter
,FormParameter
,HeaderParameter
,PathParameter
,QueryParameter
public abstract class AbstractSerializableParameter<T extends AbstractSerializableParameter<T>> extends AbstractParameter implements SerializableParameter
-
-
Field Summary
Fields Modifier and Type Field 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 Property
items
protected BigDecimal
maximum
Integer
maxLength
See http://json-schema.org/latest/json-schema-validation.html#anchor26protected BigDecimal
minimum
Integer
minLength
See http://json-schema.org/latest/json-schema-validation.html#anchor29Number
multipleOf
See http://json-schema.org/latest/json-schema-validation.html#anchor14String
pattern
See http://json-schema.org/latest/json-schema-validation.html#anchor33protected String
type
Boolean
uniqueItems
See http://json-schema.org/latest/json-schema-validation.html#anchor49-
Fields inherited from class io.swagger.models.parameters.AbstractParameter
access, description, in, name, readOnly, required
-
-
Constructor Summary
Constructors Constructor Description AbstractSerializableParameter()
-
Method Summary
-
Methods inherited from class io.swagger.models.parameters.AbstractParameter
getAccess, getDescription, getIn, getName, getRequired, getVendorExtensions, isReadOnly, setAccess, setDescription, setIn, setName, setReadOnly, setRequired, setVendorExtension, setVendorExtensions
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.swagger.models.parameters.Parameter
getAccess, getDescription, getIn, getName, getRequired, getVendorExtensions, isReadOnly, setAccess, setDescription, setIn, setName, setReadOnly, setRequired
-
-
-
-
Field Detail
-
type
protected String type
-
format
protected String format
-
collectionFormat
protected String collectionFormat
-
items
protected Property items
-
exclusiveMaximum
protected Boolean exclusiveMaximum
-
maximum
protected BigDecimal maximum
-
exclusiveMinimum
protected Boolean exclusiveMinimum
-
minimum
protected BigDecimal minimum
-
example
protected String example
-
allowEmptyValue
protected Boolean allowEmptyValue
-
maxLength
public Integer maxLength
See http://json-schema.org/latest/json-schema-validation.html#anchor26
-
minLength
public Integer minLength
See http://json-schema.org/latest/json-schema-validation.html#anchor29
-
pattern
public String pattern
See http://json-schema.org/latest/json-schema-validation.html#anchor33
-
uniqueItems
public Boolean uniqueItems
See http://json-schema.org/latest/json-schema-validation.html#anchor49
-
multipleOf
public Number multipleOf
See http://json-schema.org/latest/json-schema-validation.html#anchor14
-
defaultValue
protected String defaultValue
-
-
Method Detail
-
required
public T required(boolean required)
-
getDefaultCollectionFormat
protected String getDefaultCollectionFormat()
-
getEnum
public List<String> getEnum()
- Specified by:
getEnum
in interfaceSerializableParameter
-
setEnum
public void setEnum(List<String> _enum)
- Specified by:
setEnum
in interfaceSerializableParameter
-
getEnumValue
public List<Object> getEnumValue()
- Specified by:
getEnumValue
in interfaceSerializableParameter
-
setEnumValue
public void setEnumValue(List<?> enumValue)
- Specified by:
setEnumValue
in interfaceSerializableParameter
-
getItems
public Property getItems()
- Specified by:
getItems
in interfaceSerializableParameter
-
setItems
public void setItems(Property items)
- Specified by:
setItems
in interfaceSerializableParameter
-
getFormat
public String getFormat()
- Specified by:
getFormat
in interfaceSerializableParameter
-
setFormat
public void setFormat(String format)
- Specified by:
setFormat
in interfaceSerializableParameter
-
getType
public String getType()
- Specified by:
getType
in interfaceSerializableParameter
-
setType
public void setType(String type)
- Specified by:
setType
in interfaceSerializableParameter
-
getCollectionFormat
public String getCollectionFormat()
- Specified by:
getCollectionFormat
in interfaceSerializableParameter
-
setCollectionFormat
public void setCollectionFormat(String collectionFormat)
- Specified by:
setCollectionFormat
in interfaceSerializableParameter
-
setProperty
public void setProperty(Property property)
-
getDefaultValue
public Object getDefaultValue()
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
getDefault
public Object getDefault()
-
setDefault
public void setDefault(Object defaultValue)
-
setExclusiveMaximum
public void setExclusiveMaximum(Boolean exclusiveMaximum)
- Specified by:
setExclusiveMaximum
in interfaceSerializableParameter
-
getMaximum
public BigDecimal getMaximum()
- Specified by:
getMaximum
in interfaceSerializableParameter
-
setMaximum
public void setMaximum(BigDecimal maximum)
- Specified by:
setMaximum
in interfaceSerializableParameter
-
isExclusiveMinimum
public Boolean isExclusiveMinimum()
- Specified by:
isExclusiveMinimum
in interfaceSerializableParameter
-
setExclusiveMinimum
public void setExclusiveMinimum(Boolean exclusiveMinimum)
- Specified by:
setExclusiveMinimum
in interfaceSerializableParameter
-
getMinimum
public BigDecimal getMinimum()
- Specified by:
getMinimum
in interfaceSerializableParameter
-
setMinimum
public void setMinimum(BigDecimal minimum)
- Specified by:
setMinimum
in interfaceSerializableParameter
-
getMaxItems
public Integer getMaxItems()
- Specified by:
getMaxItems
in interfaceSerializableParameter
-
setMaxItems
public void setMaxItems(Integer maxItems)
- Specified by:
setMaxItems
in interfaceSerializableParameter
-
getMinItems
public Integer getMinItems()
- Specified by:
getMinItems
in interfaceSerializableParameter
-
setMinItems
public void setMinItems(Integer minItems)
- Specified by:
setMinItems
in interfaceSerializableParameter
-
getAllowEmptyValue
public Boolean getAllowEmptyValue()
- Specified by:
getAllowEmptyValue
in interfaceSerializableParameter
-
setAllowEmptyValue
public void setAllowEmptyValue(Boolean allowEmptyValue)
- Specified by:
setAllowEmptyValue
in interfaceSerializableParameter
-
getExample
public Object getExample()
-
getMaxLength
public Integer getMaxLength()
- Specified by:
getMaxLength
in interfaceSerializableParameter
-
setMaxLength
public void setMaxLength(Integer maxLength)
- Specified by:
setMaxLength
in interfaceSerializableParameter
-
getMinLength
public Integer getMinLength()
- Specified by:
getMinLength
in interfaceSerializableParameter
-
setMinLength
public void setMinLength(Integer minLength)
- Specified by:
setMinLength
in interfaceSerializableParameter
-
getPattern
public String getPattern()
- Specified by:
getPattern
in interfaceParameter
- Specified by:
getPattern
in interfaceSerializableParameter
- Overrides:
getPattern
in classAbstractParameter
-
setPattern
public void setPattern(String pattern)
- Specified by:
setPattern
in interfaceParameter
- Specified by:
setPattern
in interfaceSerializableParameter
- Overrides:
setPattern
in classAbstractParameter
-
isUniqueItems
public Boolean isUniqueItems()
- Specified by:
isUniqueItems
in interfaceSerializableParameter
-
setUniqueItems
public void setUniqueItems(Boolean uniqueItems)
- Specified by:
setUniqueItems
in interfaceSerializableParameter
-
getMultipleOf
public Number getMultipleOf()
- Specified by:
getMultipleOf
in interfaceSerializableParameter
-
setMultipleOf
public void setMultipleOf(Number multipleOf)
- Specified by:
setMultipleOf
in interfaceSerializableParameter
-
isExclusiveMaximum
public Boolean isExclusiveMaximum()
- Specified by:
isExclusiveMaximum
in interfaceSerializableParameter
-
setExample
public void setExample(String example)
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractParameter
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractParameter
-
-