Package io.swagger.models.properties
Class RefProperty
- java.lang.Object
-
- io.swagger.models.properties.AbstractProperty
-
- io.swagger.models.properties.RefProperty
-
public class RefProperty extends AbstractProperty implements Property
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
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 RefProperty()RefProperty(String ref)RefProperty(String ref, RefFormat refFormat)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RefPropertyasDefault(String ref)RefPropertydescription(String description)booleanequals(Object obj)Stringget$ref()StringgetOriginalRef()RefFormatgetRefFormat()StringgetSimpleRef()StringgetType()inthashCode()static booleanisType(String type, String format)voidset$ref(String ref)voidsetType(String type)-
Methods inherited from class io.swagger.models.properties.AbstractProperty
allowEmptyValue, getAccess, getAllowEmptyValue, getBooleanValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getVendorExtensions, getXml, readOnly, rename, setAccess, setAllowEmptyValue, setBooleanValue, setDefault, setDescription, setExample, setExample, setFormat, setName, setPosition, setReadOnly, setRequired, setTitle, 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
getAccess, getAllowEmptyValue, getBooleanValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getVendorExtensions, getXml, rename, setAccess, setAllowEmptyValue, setBooleanValue, setDefault, setDescription, setExample, setExample, setName, setPosition, setReadOnly, setRequired, setTitle, setXml, title
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
asDefault
public RefProperty asDefault(String ref)
-
description
public RefProperty description(String description)
- Specified by:
descriptionin interfaceProperty- Overrides:
descriptionin classAbstractProperty
-
getType
public String getType()
- Specified by:
getTypein interfaceProperty- Overrides:
getTypein classAbstractProperty
-
setType
public void setType(String type)
- Overrides:
setTypein classAbstractProperty
-
get$ref
public String get$ref()
-
set$ref
public void set$ref(String ref)
-
getRefFormat
public RefFormat getRefFormat()
-
getSimpleRef
public String getSimpleRef()
-
getOriginalRef
public String getOriginalRef()
- Returns:
- originalRef
- Since:
- 1.5.21
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractProperty
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractProperty
-
-