public class FormParameter extends AbstractParameter implements SerializableParameter
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
_enum |
protected String |
collectionFormat |
protected String |
defaultValue |
protected String |
format |
protected Property |
items |
protected String |
type |
access, description, in, name, pattern, required| Constructor and Description |
|---|
FormParameter() |
| Modifier and Type | Method and Description |
|---|---|
FormParameter |
_enum(List<String> value) |
FormParameter |
array(boolean isArray) |
FormParameter |
collectionFormat(String collectionFormat) |
FormParameter |
description(String description) |
String |
getCollectionFormat() |
String |
getDefaultValue() |
List<String> |
getEnum() |
String |
getFormat() |
Property |
getItems() |
String |
getType() |
FormParameter |
items(Property items) |
FormParameter |
name(String name) |
FormParameter |
property(Property property) |
void |
setArray(boolean isArray) |
void |
setCollectionFormat(String collectionFormat) |
void |
setDefaultValue(String defaultValue) |
void |
setEnum(List<String> _enum) |
void |
setFormat(String format) |
void |
setItems(Property items) |
void |
setProperty(Property property) |
void |
setType(String type) |
FormParameter |
type(String type) |
getAccess, getDescription, getIn, getName, getPattern, getRequired, getVendorExtensions, setAccess, setDescription, setIn, setName, setPattern, setRequired, setVendorExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccess, getDescription, getIn, getName, getPattern, getRequired, getVendorExtensions, setAccess, setDescription, setIn, setName, setPattern, setRequiredprotected String type
protected String format
protected String collectionFormat
protected Property items
protected String defaultValue
public FormParameter type(String type)
public FormParameter property(Property property)
public FormParameter description(String description)
public FormParameter name(String name)
public FormParameter collectionFormat(String collectionFormat)
public FormParameter array(boolean isArray)
public FormParameter items(Property items)
public FormParameter _enum(List<String> value)
public List<String> getEnum()
getEnum in interface SerializableParameterpublic void setEnum(List<String> _enum)
setEnum in interface SerializableParameterpublic void setArray(boolean isArray)
public void setItems(Property items)
setItems in interface SerializableParameterpublic Property getItems()
getItems in interface SerializableParameterpublic String getType()
getType in interface SerializableParameterpublic void setType(String type)
setType in interface SerializableParameterpublic String getFormat()
getFormat in interface SerializableParameterpublic void setFormat(String format)
setFormat in interface SerializableParameterpublic String getCollectionFormat()
getCollectionFormat in interface SerializableParameterpublic void setCollectionFormat(String collectionFormat)
setCollectionFormat in interface SerializableParameterpublic void setProperty(Property property)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
Copyright © 2015. All Rights Reserved.