Package io.swagger.models.properties
Class AbstractProperty
- java.lang.Object
-
- io.swagger.models.properties.AbstractProperty
-
- Direct Known Subclasses:
AbstractNumericProperty,ArrayProperty,BinaryProperty,BooleanProperty,BooleanValueProperty,ComposedProperty,DateProperty,DateTimeProperty,FileProperty,MapProperty,ObjectProperty,PasswordProperty,RefProperty,StringProperty,UntypedProperty,UUIDProperty
public abstract class AbstractProperty extends Object implements Property, Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringaccessprotected BooleanallowEmptyValueprotected BooleanbooleanValueprotected Stringdescriptionprotected Objectexampleprotected Stringformatprotected Stringnameprotected Integerpositionprotected BooleanreadOnlyprotected booleanrequiredprotected Stringtitleprotected Stringtypeprotected Map<String,Object>vendorExtensionsprotected Xmlxml
-
Constructor Summary
Constructors Constructor Description AbstractProperty()
-
Method Summary
-
-
-
Field Detail
-
name
protected String name
-
type
protected String type
-
format
protected String format
-
example
protected Object example
-
xml
protected Xml xml
-
required
protected boolean required
-
position
protected Integer position
-
description
protected String description
-
title
protected String title
-
readOnly
protected Boolean readOnly
-
allowEmptyValue
protected Boolean allowEmptyValue
-
access
protected String access
-
booleanValue
protected Boolean booleanValue
-
-
Method Detail
-
rename
public Property rename(String newName)
Description copied from interface:Propertycreates a new instance and renames the property to the given name.
-
getBooleanValue
public Boolean getBooleanValue()
- Specified by:
getBooleanValuein interfaceProperty
-
setBooleanValue
public void setBooleanValue(Boolean booleanValue)
- Specified by:
setBooleanValuein interfaceProperty
-
description
public Property description(String description)
- Specified by:
descriptionin interfaceProperty
-
readOnly
public Property readOnly()
-
getExample
public Object getExample()
- Specified by:
getExamplein interfaceProperty
-
setExample
public void setExample(Object example)
- Specified by:
setExamplein interfaceProperty
-
setExample
public void setExample(String example)
- Specified by:
setExamplein interfaceProperty
-
getPosition
public Integer getPosition()
- Specified by:
getPositionin interfaceProperty
-
setPosition
public void setPosition(Integer position)
- Specified by:
setPositionin interfaceProperty
-
setType
public void setType(String type)
-
setFormat
public void setFormat(String format)
-
getRequired
public boolean getRequired()
- Specified by:
getRequiredin interfaceProperty
-
setRequired
public void setRequired(boolean required)
- Specified by:
setRequiredin interfaceProperty
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceProperty
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceProperty
-
getReadOnly
public Boolean getReadOnly()
- Specified by:
getReadOnlyin interfaceProperty
-
setReadOnly
public void setReadOnly(Boolean readOnly)
- Specified by:
setReadOnlyin interfaceProperty
-
setDefault
public void setDefault(String _default)
- Specified by:
setDefaultin interfaceProperty
-
getAllowEmptyValue
public Boolean getAllowEmptyValue()
- Specified by:
getAllowEmptyValuein interfaceProperty
-
setAllowEmptyValue
public void setAllowEmptyValue(Boolean allowEmptyValue)
- Specified by:
setAllowEmptyValuein interfaceProperty
-
getVendorExtensions
public Map<String,Object> getVendorExtensions()
- Specified by:
getVendorExtensionsin interfaceProperty
-
-