Package io.swagger.models
Class ArrayModel
- java.lang.Object
-
- io.swagger.models.AbstractModel
-
- io.swagger.models.ArrayModel
-
- All Implemented Interfaces:
Model
public class ArrayModel extends AbstractModel
-
-
Field Summary
-
Fields inherited from class io.swagger.models.AbstractModel
booleanValue, properties, required
-
-
Constructor Summary
Constructors Constructor Description ArrayModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
ArrayModel
description(String description)
boolean
equals(Object o)
String
getDescription()
Object
getExample()
Property
getItems()
Integer
getMaxItems()
Integer
getMinItems()
String
getType()
Boolean
getUniqueItems()
int
hashCode()
ArrayModel
items(Property items)
ArrayModel
maxItems(int maxItems)
ArrayModel
minItems(int minItems)
void
setDescription(String description)
void
setExample(Object example)
void
setItems(Property items)
void
setMaxItems(Integer maxItems)
void
setMinItems(Integer minItems)
void
setType(String type)
void
setUniqueItems(Boolean uniqueItems)
ArrayModel
uniqueItems(Boolean uniqueItems)
-
Methods inherited from class io.swagger.models.AbstractModel
addProperty, cloneTo, getBooleanValue, getExclusiveMaximum, getExclusiveMinimum, getExternalDocs, getMaximum, getMaxLength, getMinimum, getMinLength, getMultipleOf, getPattern, getProperties, getReference, getRequired, getTitle, getVendorExtensions, getXml, setBooleanValue, setExclusiveMaximum, setExclusiveMinimum, setExternalDocs, setMaximum, setMaxLength, setMinimum, setMinLength, setMultipleOf, setPattern, setProperties, setReference, setRequired, setTitle, setVendorExtension, setVendorExtensions, setXml
-
-
-
-
Method Detail
-
description
public ArrayModel description(String description)
-
items
public ArrayModel items(Property items)
-
uniqueItems
public ArrayModel uniqueItems(Boolean uniqueItems)
-
minItems
public ArrayModel minItems(int minItems)
-
maxItems
public ArrayModel maxItems(int maxItems)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getItems
public Property getItems()
-
getUniqueItems
public Boolean getUniqueItems()
-
setItems
public void setItems(Property items)
-
setUniqueItems
public void setUniqueItems(Boolean uniqueItems)
-
getExample
public Object getExample()
-
setExample
public void setExample(Object example)
-
getMinItems
public Integer getMinItems()
-
setMinItems
public void setMinItems(Integer minItems)
-
getMaxItems
public Integer getMaxItems()
-
setMaxItems
public void setMaxItems(Integer maxItems)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractModel
-
clone
public Object clone()
- Specified by:
clone
in interfaceModel
- Overrides:
clone
in classAbstractModel
-
-