public abstract class AbstractSerializableParameter<T extends AbstractSerializableParameter<T>> extends AbstractParameter implements SerializableParameter
Modifier and Type | Field and Description |
---|---|
protected List<String> |
_enum |
protected Boolean |
allowEmptyValue |
protected String |
collectionFormat |
protected String |
defaultValue |
protected String |
example |
protected Boolean |
exclusiveMaximum |
protected Boolean |
exclusiveMinimum |
protected String |
format |
protected Property |
items |
protected BigDecimal |
maximum |
Integer |
maxLength
See http://json-schema.org/latest/json-schema-validation.html#anchor26
|
protected BigDecimal |
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, readOnly, required
Constructor and Description |
---|
AbstractSerializableParameter() |
getAccess, getDescription, getIn, getName, getRequired, getVendorExtensions, isReadOnly, setAccess, setDescription, setIn, setName, setReadOnly, setRequired, setVendorExtension, setVendorExtensions
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAccess, getDescription, getIn, getName, getRequired, getVendorExtensions, isReadOnly, setAccess, setDescription, setIn, setName, setReadOnly, setRequired
protected String type
protected String format
protected String collectionFormat
protected Property items
protected Boolean exclusiveMaximum
protected BigDecimal maximum
protected Boolean exclusiveMinimum
protected BigDecimal minimum
protected String example
protected Boolean allowEmptyValue
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 List<Object> getEnumValue()
getEnumValue
in interface SerializableParameter
public void setEnumValue(List<?> enumValue)
setEnumValue
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 Object getDefaultValue()
public void setDefaultValue(String defaultValue)
public Object getDefault()
public void setDefault(Object defaultValue)
public void setExclusiveMaximum(Boolean exclusiveMaximum)
setExclusiveMaximum
in interface SerializableParameter
public BigDecimal getMaximum()
getMaximum
in interface SerializableParameter
public void setMaximum(BigDecimal maximum)
setMaximum
in interface SerializableParameter
public Boolean isExclusiveMinimum()
isExclusiveMinimum
in interface SerializableParameter
public void setExclusiveMinimum(Boolean exclusiveMinimum)
setExclusiveMinimum
in interface SerializableParameter
public BigDecimal getMinimum()
getMinimum
in interface SerializableParameter
public void setMinimum(BigDecimal 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 Boolean getAllowEmptyValue()
getAllowEmptyValue
in interface SerializableParameter
public void setAllowEmptyValue(Boolean allowEmptyValue)
setAllowEmptyValue
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 © 2019. All Rights Reserved.