public abstract class AbstractSerializableParameter<T extends AbstractSerializableParameter<T>> extends AbstractParameter implements SerializableParameter
Modifier and Type | Field and Description |
---|---|
protected List<String> |
_enum |
protected String |
collectionFormat |
protected String |
defaultValue |
protected String |
example |
protected Boolean |
exclusiveMaximum |
protected Boolean |
exclusiveMinimum |
protected String |
format |
protected Property |
items |
protected Double |
maximum |
Integer |
maxLength
See http://json-schema.org/latest/json-schema-validation.html#anchor26
|
protected Double |
minimum |
Integer |
minLength
See http://json-schema.org/latest/json-schema-validation.html#anchor29
|
Number |
multipleOf
See http://json-schema.org/latest/json-schema-validation.html#anchor14
|
String |
pattern
See http://json-schema.org/latest/json-schema-validation.html#anchor33
|
protected String |
type |
Boolean |
uniqueItems
See http://json-schema.org/latest/json-schema-validation.html#anchor49
|
access, description, in, name, required
Constructor and Description |
---|
AbstractSerializableParameter() |
getAccess, getDescription, getIn, getName, getRequired, getVendorExtensions, setAccess, setDescription, setIn, setName, setRequired, setVendorExtension
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAccess, getDescription, getIn, getName, getRequired, getVendorExtensions, setAccess, setDescription, setIn, setName, setRequired
protected String type
protected String format
protected String collectionFormat
protected Property items
protected Boolean exclusiveMaximum
protected Double maximum
protected Boolean exclusiveMinimum
protected Double minimum
protected String example
public Integer maxLength
public Integer minLength
public String pattern
public Boolean uniqueItems
public Number multipleOf
protected String defaultValue
public T required(boolean required)
protected String getDefaultCollectionFormat()
public List<String> getEnum()
getEnum
in interface SerializableParameter
public void setEnum(List<String> _enum)
setEnum
in interface SerializableParameter
public Property getItems()
getItems
in interface SerializableParameter
public void setItems(Property items)
setItems
in interface SerializableParameter
public String getFormat()
getFormat
in interface SerializableParameter
public void setFormat(String format)
setFormat
in interface SerializableParameter
public String getType()
getType
in interface SerializableParameter
public void setType(String type)
setType
in interface SerializableParameter
public String getCollectionFormat()
getCollectionFormat
in interface SerializableParameter
public void setCollectionFormat(String collectionFormat)
setCollectionFormat
in interface SerializableParameter
public void setProperty(Property property)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public Object getDefault()
public void setDefault(Object defaultValue)
public void setExclusiveMaximum(Boolean exclusiveMaximum)
setExclusiveMaximum
in interface SerializableParameter
public Double getMaximum()
getMaximum
in interface SerializableParameter
public void setMaximum(Double maximum)
setMaximum
in interface SerializableParameter
public Boolean isExclusiveMinimum()
isExclusiveMinimum
in interface SerializableParameter
public void setExclusiveMinimum(Boolean exclusiveMinimum)
setExclusiveMinimum
in interface SerializableParameter
public Double getMinimum()
getMinimum
in interface SerializableParameter
public void setMinimum(Double minimum)
setMinimum
in interface SerializableParameter
public Integer getMaxItems()
getMaxItems
in interface SerializableParameter
public void setMaxItems(Integer maxItems)
setMaxItems
in interface SerializableParameter
public Integer getMinItems()
getMinItems
in interface SerializableParameter
public void setMinItems(Integer minItems)
setMinItems
in interface SerializableParameter
public Object getExample()
public Integer getMaxLength()
getMaxLength
in interface SerializableParameter
public void setMaxLength(Integer maxLength)
setMaxLength
in interface SerializableParameter
public Integer getMinLength()
getMinLength
in interface SerializableParameter
public void setMinLength(Integer minLength)
setMinLength
in interface SerializableParameter
public String getPattern()
getPattern
in interface Parameter
getPattern
in interface SerializableParameter
getPattern
in class AbstractParameter
public void setPattern(String pattern)
setPattern
in interface Parameter
setPattern
in interface SerializableParameter
setPattern
in class AbstractParameter
public Boolean isUniqueItems()
isUniqueItems
in interface SerializableParameter
public void setUniqueItems(Boolean uniqueItems)
setUniqueItems
in interface SerializableParameter
public Number getMultipleOf()
getMultipleOf
in interface SerializableParameter
public void setMultipleOf(Number multipleOf)
setMultipleOf
in interface SerializableParameter
public Boolean isExclusiveMaximum()
isExclusiveMaximum
in interface SerializableParameter
public void setExample(String example)
public boolean equals(Object obj)
equals
in class AbstractParameter
public int hashCode()
hashCode
in class AbstractParameter
Copyright © 2017. All rights reserved.