Package springfox.documentation.schema
Class Annotations
- java.lang.Object
-
- springfox.documentation.schema.Annotations
-
public class Annotations extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A extends java.lang.annotation.Annotation>
java.util.Optional<A>findPropertyAnnotation(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanPropertyDefinition, java.lang.Class<A> annotationClass)
Finds first annotation of the given type on the given bean property and returns it.static boolean
memberIsUnwrapped(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)
static java.lang.String
memberName(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)
static java.lang.String
unwrappedPrefix(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)
-
-
-
Method Detail
-
findPropertyAnnotation
public static <A extends java.lang.annotation.Annotation> java.util.Optional<A> findPropertyAnnotation(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanPropertyDefinition, java.lang.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 property definitionannotationClass
- class object representing desired annotation- Returns:
- first annotation found for property
-
memberIsUnwrapped
public static boolean memberIsUnwrapped(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)
-
unwrappedPrefix
public static java.lang.String unwrappedPrefix(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)
-
memberName
public static java.lang.String memberName(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)
-
-