类 Annotations
java.lang.Object
springfox.documentation.schema.Annotations
-
方法概要
修饰符和类型方法说明static <A extends Annotation>
com.google.common.base.Optional<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.static booleanmemberIsUnwrapped(com.fasterxml.jackson.databind.introspect.AnnotatedMember member) static StringmemberName(com.fasterxml.jackson.databind.introspect.AnnotatedMember member) static StringunwrappedPrefix(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)
-
方法详细资料
-
findPropertyAnnotation
public static <A extends Annotation> com.google.common.base.Optional<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.- 类型参数:
A- type that extends Annotation- 参数:
beanPropertyDefinition- introspected jackson property definitionannotationClass- class object representing desired annotation- 返回:
- first annotation found for property
-
memberIsUnwrapped
public static boolean memberIsUnwrapped(com.fasterxml.jackson.databind.introspect.AnnotatedMember member) -
unwrappedPrefix
public static String unwrappedPrefix(com.fasterxml.jackson.databind.introspect.AnnotatedMember member) -
memberName
-