Package io.swagger.models.properties
Interface Property
-
- All Known Implementing Classes:
AbstractNumericProperty,AbstractProperty,ArrayProperty,BaseIntegerProperty,BinaryProperty,BooleanProperty,BooleanValueProperty,ByteArrayProperty,ComposedProperty,DateProperty,DateTimeProperty,DecimalProperty,DoubleProperty,EmailProperty,FileProperty,FloatProperty,IntegerProperty,LongProperty,MapProperty,ObjectProperty,PasswordProperty,RefProperty,StringProperty,UntypedProperty,UUIDProperty
public interface Property
-
-
Method Summary
-
-
-
Method Detail
-
getType
String getType()
-
getFormat
String getFormat()
-
getTitle
String getTitle()
-
setTitle
void setTitle(String title)
-
getDescription
String getDescription()
-
setDescription
void setDescription(String title)
-
getAllowEmptyValue
Boolean getAllowEmptyValue()
-
setAllowEmptyValue
void setAllowEmptyValue(Boolean value)
-
getName
String getName()
-
setName
void setName(String name)
-
getRequired
boolean getRequired()
-
setRequired
void setRequired(boolean required)
-
getExample
Object getExample()
-
setExample
void setExample(Object example)
-
setExample
@Deprecated void setExample(String example)
Deprecated.
-
getReadOnly
Boolean getReadOnly()
-
setReadOnly
void setReadOnly(Boolean readOnly)
-
getPosition
Integer getPosition()
-
setPosition
void setPosition(Integer position)
-
getXml
Xml getXml()
-
setXml
void setXml(Xml xml)
-
setDefault
void setDefault(String _default)
-
getAccess
String getAccess()
-
setAccess
void setAccess(String access)
-
rename
Property rename(String newName)
creates a new instance and renames the property to the given name.- Returns:
- new shallow copy of the property
-
getBooleanValue
Boolean getBooleanValue()
-
setBooleanValue
void setBooleanValue(Boolean booleanValue)
-
-