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>_enumprotected BooleanallowEmptyValueprotected StringcollectionFormatprotected StringdefaultValueprotected Stringexampleprotected BooleanexclusiveMaximumprotected BooleanexclusiveMinimumprotected Stringformatprotected Propertyitemsprotected BigDecimalmaximumIntegermaxLengthSee http://json-schema.org/latest/json-schema-validation.html#anchor26protected BigDecimalminimumIntegerminLengthSee http://json-schema.org/latest/json-schema-validation.html#anchor29NumbermultipleOfSee http://json-schema.org/latest/json-schema-validation.html#anchor14StringpatternSee http://json-schema.org/latest/json-schema-validation.html#anchor33protected StringtypeBooleanuniqueItemsSee 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:
getEnumin interfaceSerializableParameter
-
setEnum
public void setEnum(List<String> _enum)
- Specified by:
setEnumin interfaceSerializableParameter
-
getEnumValue
public List<Object> getEnumValue()
- Specified by:
getEnumValuein interfaceSerializableParameter
-
setEnumValue
public void setEnumValue(List<?> enumValue)
- Specified by:
setEnumValuein interfaceSerializableParameter
-
getItems
public Property getItems()
- Specified by:
getItemsin interfaceSerializableParameter
-
setItems
public void setItems(Property items)
- Specified by:
setItemsin interfaceSerializableParameter
-
getFormat
public String getFormat()
- Specified by:
getFormatin interfaceSerializableParameter
-
setFormat
public void setFormat(String format)
- Specified by:
setFormatin interfaceSerializableParameter
-
getType
public String getType()
- Specified by:
getTypein interfaceSerializableParameter
-
setType
public void setType(String type)
- Specified by:
setTypein interfaceSerializableParameter
-
getCollectionFormat
public String getCollectionFormat()
- Specified by:
getCollectionFormatin interfaceSerializableParameter
-
setCollectionFormat
public void setCollectionFormat(String collectionFormat)
- Specified by:
setCollectionFormatin 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:
setExclusiveMaximumin interfaceSerializableParameter
-
getMaximum
public BigDecimal getMaximum()
- Specified by:
getMaximumin interfaceSerializableParameter
-
setMaximum
public void setMaximum(BigDecimal maximum)
- Specified by:
setMaximumin interfaceSerializableParameter
-
isExclusiveMinimum
public Boolean isExclusiveMinimum()
- Specified by:
isExclusiveMinimumin interfaceSerializableParameter
-
setExclusiveMinimum
public void setExclusiveMinimum(Boolean exclusiveMinimum)
- Specified by:
setExclusiveMinimumin interfaceSerializableParameter
-
getMinimum
public BigDecimal getMinimum()
- Specified by:
getMinimumin interfaceSerializableParameter
-
setMinimum
public void setMinimum(BigDecimal minimum)
- Specified by:
setMinimumin interfaceSerializableParameter
-
getMaxItems
public Integer getMaxItems()
- Specified by:
getMaxItemsin interfaceSerializableParameter
-
setMaxItems
public void setMaxItems(Integer maxItems)
- Specified by:
setMaxItemsin interfaceSerializableParameter
-
getMinItems
public Integer getMinItems()
- Specified by:
getMinItemsin interfaceSerializableParameter
-
setMinItems
public void setMinItems(Integer minItems)
- Specified by:
setMinItemsin interfaceSerializableParameter
-
getAllowEmptyValue
public Boolean getAllowEmptyValue()
- Specified by:
getAllowEmptyValuein interfaceSerializableParameter
-
setAllowEmptyValue
public void setAllowEmptyValue(Boolean allowEmptyValue)
- Specified by:
setAllowEmptyValuein interfaceSerializableParameter
-
getExample
public Object getExample()
-
getMaxLength
public Integer getMaxLength()
- Specified by:
getMaxLengthin interfaceSerializableParameter
-
setMaxLength
public void setMaxLength(Integer maxLength)
- Specified by:
setMaxLengthin interfaceSerializableParameter
-
getMinLength
public Integer getMinLength()
- Specified by:
getMinLengthin interfaceSerializableParameter
-
setMinLength
public void setMinLength(Integer minLength)
- Specified by:
setMinLengthin interfaceSerializableParameter
-
getPattern
public String getPattern()
- Specified by:
getPatternin interfaceParameter- Specified by:
getPatternin interfaceSerializableParameter- Overrides:
getPatternin classAbstractParameter
-
setPattern
public void setPattern(String pattern)
- Specified by:
setPatternin interfaceParameter- Specified by:
setPatternin interfaceSerializableParameter- Overrides:
setPatternin classAbstractParameter
-
isUniqueItems
public Boolean isUniqueItems()
- Specified by:
isUniqueItemsin interfaceSerializableParameter
-
setUniqueItems
public void setUniqueItems(Boolean uniqueItems)
- Specified by:
setUniqueItemsin interfaceSerializableParameter
-
getMultipleOf
public Number getMultipleOf()
- Specified by:
getMultipleOfin interfaceSerializableParameter
-
setMultipleOf
public void setMultipleOf(Number multipleOf)
- Specified by:
setMultipleOfin interfaceSerializableParameter
-
isExclusiveMaximum
public Boolean isExclusiveMaximum()
- Specified by:
isExclusiveMaximumin interfaceSerializableParameter
-
setExample
public void setExample(String example)
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractParameter
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractParameter
-
-