com.mangofactory.swagger.models
Class Annotations
java.lang.Object
com.mangofactory.swagger.models.Annotations
public class Annotations
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Annotations
public Annotations()
findPropertyAnnotation
public static <A extends Annotation> A findPropertyAnnotation(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanPropertyDefinition,
Class<A> annotationClass)
- Finds first annotation of the given type on the given bean property and returns it.
Search precedence is getter -> setter -> field.
- Type Parameters:
A - type that extends Annotation- Parameters:
beanPropertyDefinition - introspected jackson proprty defintionannotationClass - class object representing desired annotation
- Returns:
- first annotation found for property
findApiModePropertyAnnotation
public static com.google.common.base.Optional<com.wordnik.swagger.annotations.ApiModelProperty> findApiModePropertyAnnotation(AnnotatedElement annotated)
findApiParamAnnotation
public static com.google.common.base.Optional<com.wordnik.swagger.annotations.ApiParam> findApiParamAnnotation(AnnotatedElement annotated)
findApiResponsesAnnotations
public static com.google.common.base.Optional<com.wordnik.swagger.annotations.ApiResponses> findApiResponsesAnnotations(AnnotatedElement annotated)
Copyright © May 2012-2014 The Mango Factory. All Rights Reserved.