Class AnnotationsUtils


  • public abstract class AnnotationsUtils
    extends Object
    • Constructor Detail

      • AnnotationsUtils

        public AnnotationsUtils()
    • Method Detail

      • hasSchemaAnnotation

        public static boolean hasSchemaAnnotation​(Schema schema)
      • equals

        public static boolean equals​(Schema thisSchema,
                                     Schema thatSchema)
      • hasArrayAnnotation

        public static boolean hasArrayAnnotation​(ArraySchema array)
      • getArraySchema

        public static Optional<ArraySchema> getArraySchema​(ArraySchema arraySchema,
                                                           com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
      • getSchemaFromAnnotation

        public static Optional<Schema> getSchemaFromAnnotation​(Schema schema,
                                                               com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
      • getSchemaFromAnnotation

        public static Optional<Schema> getSchemaFromAnnotation​(Schema schema,
                                                               Components components,
                                                               com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
      • resolveSchemaFromType

        public static Schema resolveSchemaFromType​(Class<?> schemaImplementation,
                                                   Components components,
                                                   com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
      • getTags

        public static Optional<Set<Tag>> getTags​(Tag[] tags,
                                                 boolean skipOnlyName)
      • getHeaders

        public static Optional<Map<String,​Header>> getHeaders​(Header[] annotationHeaders,
                                                                    com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
      • getHeader

        public static Optional<Header> getHeader​(Header header,
                                                 com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
      • addEncodingToMediaType

        public static void addEncodingToMediaType​(MediaType mediaType,
                                                  Encoding encoding,
                                                  com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
      • getSchemaType

        public static Type getSchemaType​(Schema schema)
      • getSchemaType

        public static Type getSchemaType​(Schema schema,
                                         boolean nullIfNotFound)
      • getSchema

        public static Optional<? extends Schema> getSchema​(Content annotationContent,
                                                           Components components,
                                                           com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
      • getSchema

        public static Optional<? extends Schema> getSchema​(Schema schemaAnnotation,
                                                           ArraySchema arrayAnnotation,
                                                           boolean isArray,
                                                           Class<?> schemaImplementation,
                                                           Components components,
                                                           com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
      • getSchemaAnnotation

        public static Schema getSchemaAnnotation​(com.fasterxml.jackson.databind.introspect.Annotated a)
      • getSchemaDeclaredAnnotation

        public static Schema getSchemaDeclaredAnnotation​(com.fasterxml.jackson.databind.introspect.Annotated a)
      • getSchemaAnnotation

        public static Schema getSchemaAnnotation​(Class<?> cls)
      • getSchemaDeclaredAnnotation

        public static Schema getSchemaDeclaredAnnotation​(Class<?> cls)
      • getSchemaAnnotation

        public static Schema getSchemaAnnotation​(Annotation... annotations)
      • getArraySchemaAnnotation

        public static ArraySchema getArraySchemaAnnotation​(Annotation... annotations)
      • getAnnotation

        public static <T> T getAnnotation​(Class<T> cls,
                                          Annotation... annotations)
      • updateAnnotation

        public static void updateAnnotation​(Class<?> clazz,
                                            Schema newAnnotation)
      • mergeSchemaAnnotations

        public static Annotation mergeSchemaAnnotations​(Annotation[] ctxAnnotations,
                                                        com.fasterxml.jackson.databind.JavaType type)
      • mergeSchemaAnnotations

        public static Schema mergeSchemaAnnotations​(Schema master,
                                                    Schema patch)