Package io.swagger.models.properties
Class DecimalProperty
- java.lang.Object
-
- io.swagger.models.properties.AbstractProperty
-
- io.swagger.models.properties.AbstractNumericProperty
-
- io.swagger.models.properties.DecimalProperty
-
- Direct Known Subclasses:
DoubleProperty,FloatProperty
public class DecimalProperty extends AbstractNumericProperty
The DecimalProperty class defines properties for (decimal) numbers without a specific format, or with a custom format. The two standard formats are defined inDoublePropertyandFloatProperty.
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
Fields inherited from class io.swagger.models.properties.AbstractNumericProperty
exclusiveMaximum, exclusiveMinimum, maximum, minimum, multipleOf
-
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 DecimalProperty()DecimalProperty(String format)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DecimalPropertyexample(String example)static booleanisType(String type, String format)DecimalPropertyreadOnly()voidsetExample(Object example)DecimalPropertyvendorExtension(String key, Object obj)DecimalPropertyxml(Xml xml)-
Methods inherited from class io.swagger.models.properties.AbstractNumericProperty
equals, exclusiveMaximum, exclusiveMinimum, getExclusiveMaximum, getExclusiveMinimum, getMaximum, getMinimum, getMultipleOf, hashCode, maximum, minimum, multipleOf, setExclusiveMaximum, setExclusiveMinimum, setMaximum, setMinimum, setMultipleOf
-
Methods inherited from class io.swagger.models.properties.AbstractProperty
allowEmptyValue, description, getAccess, getAllowEmptyValue, getBooleanValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getType, getVendorExtensions, getXml, rename, setAccess, setAllowEmptyValue, setBooleanValue, setDefault, setDescription, setExample, setFormat, setName, setPosition, setReadOnly, setRequired, setTitle, setType, setVendorExtension, setVendorExtensionMap, setVendorExtensions, setXml, title
-
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
description, getAccess, getAllowEmptyValue, getBooleanValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getType, getVendorExtensions, getXml, rename, setAccess, setAllowEmptyValue, setBooleanValue, setDefault, setDescription, setExample, setName, setPosition, setReadOnly, setRequired, setTitle, setXml, title
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DecimalProperty
public DecimalProperty()
-
DecimalProperty
public DecimalProperty(String format)
-
-
Method Detail
-
xml
public DecimalProperty xml(Xml xml)
-
example
public DecimalProperty example(String example)
-
vendorExtension
public DecimalProperty vendorExtension(String key, Object obj)
-
readOnly
public DecimalProperty readOnly()
- Overrides:
readOnlyin classAbstractProperty
-
setExample
public void setExample(Object example)
- Specified by:
setExamplein interfaceProperty- Overrides:
setExamplein classAbstractProperty
-
-