com.mangofactory.swagger.models.property
Class BaseModelProperty
java.lang.Object
com.mangofactory.swagger.models.property.BaseModelProperty
- All Implemented Interfaces:
- ModelProperty
- Direct Known Subclasses:
- BeanModelProperty, FieldModelProperty
public abstract class BaseModelProperty
- extends java.lang.Object
- implements ModelProperty
|
Constructor Summary |
BaseModelProperty(java.lang.String name,
AlternateTypeProvider alternateTypeProvider,
com.google.common.base.Optional<com.wordnik.swagger.annotations.ApiModelProperty> apiModelProperty)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseModelProperty
public BaseModelProperty(java.lang.String name,
AlternateTypeProvider alternateTypeProvider,
com.google.common.base.Optional<com.wordnik.swagger.annotations.ApiModelProperty> apiModelProperty)
realType
protected abstract com.fasterxml.classmate.ResolvedType realType()
getType
public com.fasterxml.classmate.ResolvedType getType()
- Specified by:
getType in interface ModelProperty
getName
public java.lang.String getName()
- Specified by:
getName in interface ModelProperty
qualifiedTypeName
public java.lang.String qualifiedTypeName()
- Specified by:
qualifiedTypeName in interface ModelProperty
typeName
public java.lang.String typeName(ModelContext modelContext)
- Specified by:
typeName in interface ModelProperty
allowableValues
public AllowableValues allowableValues()
- Specified by:
allowableValues in interface ModelProperty
isRequired
public boolean isRequired()
- Specified by:
isRequired in interface ModelProperty
isHidden
public boolean isHidden()
- Specified by:
isHidden in interface ModelProperty
propertyDescription
public java.lang.String propertyDescription()
- Specified by:
propertyDescription in interface ModelProperty
getApiModelProperty
protected com.google.common.base.Optional<com.wordnik.swagger.annotations.ApiModelProperty> getApiModelProperty()
position
public int position()
- Specified by:
position in interface ModelProperty