Package io.swagger.models.properties
Class ArrayProperty
- java.lang.Object
-
- io.swagger.models.properties.AbstractProperty
-
- io.swagger.models.properties.ArrayProperty
-
public class ArrayProperty extends AbstractProperty implements Property
-
-
Field Summary
Fields Modifier and Type Field Description protected Propertyitemsstatic StringTYPEprotected BooleanuniqueItems-
Fields inherited from class io.swagger.models.properties.AbstractProperty
access, allowEmptyValue, booleanValue, description, example, format, name, position, readOnly, required, title, type, vendorExtensions, xml
-
-
Constructor Summary
Constructors Constructor Description ArrayProperty()ArrayProperty(Property items)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayPropertydescription(String description)booleanequals(Object o)ArrayPropertyexample(Object example)PropertygetItems()IntegergetMaxItems()IntegergetMinItems()BooleangetUniqueItems()inthashCode()static booleanisType(String type)ArrayPropertyitems(Property items)ArrayPropertyreadOnly()voidsetItems(Property items)voidsetMaxItems(Integer maxItems)voidsetMinItems(Integer minItems)voidsetUniqueItems(Boolean uniqueItems)ArrayPropertytitle(String title)ArrayPropertyuniqueItems()ArrayPropertyvendorExtension(String key, Object obj)ArrayPropertyxml(Xml xml)-
Methods inherited from class io.swagger.models.properties.AbstractProperty
allowEmptyValue, getAccess, getAllowEmptyValue, getBooleanValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getType, getVendorExtensions, getXml, rename, setAccess, setAllowEmptyValue, setBooleanValue, setDefault, setDescription, setExample, setExample, setFormat, setName, setPosition, setReadOnly, setRequired, setTitle, setType, setVendorExtension, setVendorExtensionMap, setVendorExtensions, setXml
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.swagger.models.properties.Property
getAccess, getAllowEmptyValue, getBooleanValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getType, getVendorExtensions, getXml, rename, setAccess, setAllowEmptyValue, setBooleanValue, setDefault, setDescription, setExample, setExample, setName, setPosition, setReadOnly, setRequired, setTitle, setXml
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
uniqueItems
protected Boolean uniqueItems
-
items
protected Property items
-
-
Constructor Detail
-
ArrayProperty
public ArrayProperty()
-
ArrayProperty
public ArrayProperty(Property items)
-
-
Method Detail
-
isType
public static boolean isType(String type)
-
xml
public ArrayProperty xml(Xml xml)
-
uniqueItems
public ArrayProperty uniqueItems()
-
description
public ArrayProperty description(String description)
- Specified by:
descriptionin interfaceProperty- Overrides:
descriptionin classAbstractProperty
-
title
public ArrayProperty title(String title)
- Specified by:
titlein interfaceProperty- Overrides:
titlein classAbstractProperty
-
example
public ArrayProperty example(Object example)
-
items
public ArrayProperty items(Property items)
-
vendorExtension
public ArrayProperty vendorExtension(String key, Object obj)
-
readOnly
public ArrayProperty readOnly()
- Overrides:
readOnlyin classAbstractProperty
-
getItems
public Property getItems()
-
setItems
public void setItems(Property items)
-
getUniqueItems
public Boolean getUniqueItems()
-
setUniqueItems
public void setUniqueItems(Boolean uniqueItems)
-
getMaxItems
public Integer getMaxItems()
-
setMaxItems
public void setMaxItems(Integer maxItems)
-
getMinItems
public Integer getMinItems()
-
setMinItems
public void setMinItems(Integer minItems)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractProperty
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractProperty
-
-