@Bean(properties="type,format,items,collectionFormat,default,maximum,exclusiveMaximum,minimum,exclusiveMinimum,maxLength,minLength,pattern,maxItems,minItems,uniqueItems,enum,multipleOf,*") public class Items extends SwaggerElement
Constructor and Description |
---|
Items() |
Modifier and Type | Method and Description |
---|---|
Items |
_default(Object value)
Same as
setDefault(Object) . |
Items |
_enum(Object... values)
Adds one or more values to the
|
Items |
addEnum(Collection<Object> values)
Adds one or more values to the
|
Items |
collectionFormat(Object value)
Same as
setCollectionFormat(String) . |
Items |
exclusiveMaximum(Object value)
Same as
setExclusiveMaximum(Boolean) . |
Items |
exclusiveMinimum(Object value)
Same as
setExclusiveMinimum(Boolean) . |
Items |
format(Object value)
Same as
setFormat(String) . |
<T> T |
get(String property,
Class<T> type)
Generic property getter.
|
String |
getCollectionFormat()
Bean property getter:
|
Object |
getDefault()
Bean property getter:
|
List<Object> |
getEnum()
Bean property getter:
|
Boolean |
getExclusiveMaximum()
Bean property getter:
|
Boolean |
getExclusiveMinimum()
Bean property getter:
|
String |
getFormat()
Bean property getter:
|
Items |
getItems()
Bean property getter:
|
Number |
getMaximum()
Bean property getter:
|
Integer |
getMaxItems()
Bean property getter:
|
Integer |
getMaxLength()
Bean property getter:
|
Number |
getMinimum()
Bean property getter:
|
Integer |
getMinItems()
Bean property getter:
|
Integer |
getMinLength()
Bean property getter:
|
Number |
getMultipleOf()
Bean property getter:
|
String |
getPattern()
Bean property getter:
|
String |
getType()
Bean property getter:
|
Boolean |
getUniqueItems()
Bean property getter:
|
Items |
items(Object value)
Same as
setItems(Items) . |
Items |
maximum(Object value)
Same as
setMaximum(Number) . |
Items |
maxItems(Object value)
Same as
setMaxItems(Integer) . |
Items |
maxLength(Object value)
Same as
setMaxLength(Integer) . |
Items |
minimum(Object value)
Same as
setMinimum(Number) . |
Items |
minItems(Object value)
Same as
setMinItems(Integer) . |
Items |
minLength(Object value)
Same as
setMinLength(Integer) . |
Items |
multipleOf(Object value)
Same as
setMultipleOf(Number) . |
Items |
pattern(Object value)
Same as
setPattern(String) . |
Items |
set(String property,
Object value)
Generic property setter.
|
Items |
setCollectionFormat(String value)
Bean property setter:
|
Items |
setDefault(Object value)
Bean property setter:
|
Items |
setEnum(Collection<Object> value)
Bean property setter:
|
Items |
setExclusiveMaximum(Boolean value)
Bean property setter:
|
Items |
setExclusiveMinimum(Boolean value)
Bean property setter:
|
Items |
setFormat(String value)
Bean property setter:
|
Items |
setItems(Items value)
Bean property setter:
|
Items |
setMaximum(Number value)
Bean property setter:
|
Items |
setMaxItems(Integer value)
Bean property setter:
|
Items |
setMaxLength(Integer value)
Bean property setter:
|
Items |
setMinimum(Number value)
Bean property setter:
|
Items |
setMinItems(Integer value)
Bean property setter:
|
Items |
setMinLength(Integer value)
Bean property setter:
|
Items |
setMultipleOf(Number value)
Bean property setter:
|
Items |
setPattern(String value)
Bean property setter:
|
Items |
setType(String value)
Bean property setter:
|
Items |
setUniqueItems(Boolean value)
Bean property setter:
|
protected Items |
strict()
Sets strict mode on this bean.
|
Items |
type(Object value)
Same as
setType(String) . |
Items |
uniqueItems(Object value)
Same as
setUniqueItems(Boolean) . |
getExtraProperties, isStrict, strict, toString
public Items()
protected Items strict()
SwaggerElement
strict
in class SwaggerElement
public String getType()
The internal type of the array.
public Items setType(String value)
The internal type of the array.
value
- The new value for this property.
public Items type(Object value)
setType(String)
.value
- The new value for this property.
toString()
.
public String getFormat()
The extending format for the previously mentioned type
.
public Items setFormat(String value)
The extending format for the previously mentioned type
.
value
- The new value for this property.
public Items format(Object value)
setFormat(String)
.value
- The new value for this property.
toString()
.
public Items getItems()
Describes the type of items in the array.
public Items setItems(Items value)
Describes the type of items in the array.
value
- The new value for this property.
type
is public Items items(Object value)
setItems(Items)
.public String getCollectionFormat()
Determines the format of the array if type array is used.
public Items setCollectionFormat(String value)
Determines the format of the array if type array is used.
value
- The new value for this property.
foo,bar
.
foo bar
.
foo\tbar
.
foo|bar
.
public Items collectionFormat(Object value)
setCollectionFormat(String)
.value
- The new value for this property.
toString()
.
foo,bar
.
foo bar
.
foo\tbar
.
foo|bar
.
public Object getDefault()
Declares the value of the item that the server will use if none is provided.
type
for the data type.
public Items setDefault(Object value)
Declares the value of the item that the server will use if none is provided.
type
for the data type.
value
- The new value for this property.
public Items _default(Object value)
setDefault(Object)
.value
- The new value for this property.
public Number getMaximum()
public Items setMaximum(Number value)
value
- The new value for this property.
public Items maximum(Object value)
setMaximum(Number)
.value
- The new value for this property.
toString()
then best number match.
public Boolean getExclusiveMaximum()
public Items setExclusiveMaximum(Boolean value)
value
- The new value for this property.
public Items exclusiveMaximum(Object value)
setExclusiveMaximum(Boolean)
.value
- The new value for this property.
Boolean.valueOf (value.toString())
.
public Number getMinimum()
public Items setMinimum(Number value)
value
- The new value for this property.
public Items minimum(Object value)
setMinimum(Number)
.value
- The new value for this property.
toString()
then best number match.
public Boolean getExclusiveMinimum()
public Items setExclusiveMinimum(Boolean value)
value
- The new value for this property.
public Items exclusiveMinimum(Object value)
setExclusiveMinimum(Boolean)
.value
- The new value for this property.
Boolean.valueOf (value.toString())
.
public Integer getMaxLength()
public Items setMaxLength(Integer value)
value
- The new value for this property.
public Items maxLength(Object value)
setMaxLength(Integer)
.value
- The new value for this property.
Integer.valueOf (value.toString())
.
public Integer getMinLength()
public Items setMinLength(Integer value)
value
- The new value for this property.
public Items minLength(Object value)
setMinLength(Integer)
.value
- The new value for this property.
Integer.valueOf (value.toString())
.
public String getPattern()
public Items setPattern(String value)
value
- The new value for this property.
public Items pattern(Object value)
setPattern(String)
.value
- The new value for this property.
toString()
.
public Integer getMaxItems()
public Items setMaxItems(Integer value)
value
- The new value for this property.
public Items maxItems(Object value)
setMaxItems(Integer)
.value
- The new value for this property.
Integer.valueOf (value.toString())
.
public Integer getMinItems()
public Items setMinItems(Integer value)
value
- The new value for this property.
public Items minItems(Object value)
setMinItems(Integer)
.value
- The new value for this property.
Integer.valueOf (value.toString())
.
public Boolean getUniqueItems()
public Items setUniqueItems(Boolean value)
value
- The new value for this property.
public Items uniqueItems(Object value)
setUniqueItems(Boolean)
.value
- The new value for this property.
Boolean.valueOf (value.toString())
.
public List<Object> getEnum()
public Items setEnum(Collection<Object> value)
value
- The new value for this property.
public Items addEnum(Collection<Object> values)
values
- The values to add to this property.
public Items _enum(Object... values)
values
- The values to add to this property.
Object
Collection<Object>
String
- JSON array representation of Collection<Object>
_enum(
String
- Individual values
_enum(
public Number getMultipleOf()
public Items setMultipleOf(Number value)
value
- The new value for this property.
public Items multipleOf(Object value)
setMultipleOf(Number)
.value
- The new value for this property.
toString()
then best number match.
public <T> T get(String property, Class<T> type)
SwaggerElement
Can be used to retrieve non-standard Swagger fields such as
get
in class SwaggerElement
property
- The property name to retrieve.type
- The datatype to cast the value to.public Items set(String property, Object value)
SwaggerElement
Can be used to set non-standard Swagger fields such as
set
in class SwaggerElement
property
- The property name to set.value
- The new value for the property.Copyright © 2018 Apache. All rights reserved.