com.mangofactory.swagger.models.property
Class BaseModelProperty

java.lang.Object
  extended by com.mangofactory.swagger.models.property.BaseModelProperty
All Implemented Interfaces:
ModelProperty
Direct Known Subclasses:
BeanModelProperty, FieldModelProperty

public abstract class BaseModelProperty
extends Object
implements ModelProperty


Constructor Summary
BaseModelProperty(String name, AlternateTypeProvider alternateTypeProvider, com.google.common.base.Optional<com.wordnik.swagger.annotations.ApiModelProperty> apiModelProperty)
           
 
Method Summary
 com.wordnik.swagger.model.AllowableValues allowableValues()
           
protected  com.google.common.base.Optional<com.wordnik.swagger.annotations.ApiModelProperty> getApiModelProperty()
           
 String getName()
           
 com.fasterxml.classmate.ResolvedType getType()
           
 boolean isRequired()
           
 scala.Option<String> propertyDescription()
           
 String qualifiedTypeName()
           
protected abstract  com.fasterxml.classmate.ResolvedType realType()
           
 String typeName(ModelContext modelContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseModelProperty

public BaseModelProperty(String name,
                         AlternateTypeProvider alternateTypeProvider,
                         com.google.common.base.Optional<com.wordnik.swagger.annotations.ApiModelProperty> apiModelProperty)
Method Detail

realType

protected abstract com.fasterxml.classmate.ResolvedType realType()

getType

public com.fasterxml.classmate.ResolvedType getType()
Specified by:
getType in interface ModelProperty

getName

public String getName()
Specified by:
getName in interface ModelProperty

qualifiedTypeName

public String qualifiedTypeName()
Specified by:
qualifiedTypeName in interface ModelProperty

typeName

public String typeName(ModelContext modelContext)
Specified by:
typeName in interface ModelProperty

allowableValues

public com.wordnik.swagger.model.AllowableValues allowableValues()
Specified by:
allowableValues in interface ModelProperty

isRequired

public boolean isRequired()
Specified by:
isRequired in interface ModelProperty

propertyDescription

public scala.Option<String> propertyDescription()
Specified by:
propertyDescription in interface ModelProperty

getApiModelProperty

protected com.google.common.base.Optional<com.wordnik.swagger.annotations.ApiModelProperty> getApiModelProperty()


Copyright © May 2012-2014 The Mango Factory. All Rights Reserved.