public abstract class AnnotationsUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENTS_REF |
| Constructor and Description |
|---|
AnnotationsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addEncodingToMediaType(MediaType mediaType,
Encoding encoding,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static void |
applyTypes(String[] classTypes,
String[] methodTypes,
Content content,
MediaType mediaType) |
static boolean |
equals(Annotation thisAnnotation,
Annotation thatAnnotation) |
static boolean |
equals(ArraySchema thisArraySchema,
ArraySchema thatArraySchema) |
static boolean |
equals(Schema thisSchema,
Schema thatSchema) |
static <T> T |
getAnnotation(Class<T> cls,
Annotation... annotations) |
static Optional<ArraySchema> |
getArraySchema(ArraySchema arraySchema,
Components components,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static Optional<ArraySchema> |
getArraySchema(ArraySchema arraySchema,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static ArraySchema |
getArraySchemaAnnotation(Annotation... annotations) |
static Optional<Contact> |
getContact(Contact contact) |
static Optional<Content> |
getContent(Content[] annotationContents,
String[] classTypes,
String[] methodTypes,
Schema schema,
Components components,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static Optional<Example> |
getExample(ExampleObject example) |
static Optional<Example> |
getExample(ExampleObject example,
boolean ignoreName) |
static Map<String,Object> |
getExtensions(Extension... extensions) |
static Optional<ExternalDocumentation> |
getExternalDocumentation(ExternalDocumentation externalDocumentation) |
static Optional<Header> |
getHeader(Header header,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static Optional<Map<String,Header>> |
getHeaders(Header[] annotationHeaders,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static Optional<Info> |
getInfo(Info info) |
static Optional<License> |
getLicense(License license) |
static Optional<Link> |
getLink(Link link) |
static Map<String,String> |
getLinkParameters(LinkParameter[] linkParameter) |
static Map<String,Link> |
getLinks(Link[] links) |
static Optional<? extends Schema> |
getSchema(Content annotationContent,
Components components,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static Optional<? extends Schema> |
getSchema(Schema schemaAnnotation,
ArraySchema arrayAnnotation,
boolean isArray,
Class<?> schemaImplementation,
Components components,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static Schema |
getSchemaAnnotation(com.fasterxml.jackson.databind.introspect.Annotated a) |
static Schema |
getSchemaAnnotation(Annotation... annotations) |
static Schema |
getSchemaAnnotation(Class<?> cls) |
static Schema |
getSchemaDeclaredAnnotation(com.fasterxml.jackson.databind.introspect.Annotated a) |
static Schema |
getSchemaDeclaredAnnotation(Class<?> cls) |
static Optional<Schema> |
getSchemaFromAnnotation(Schema schema,
Components components,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static Optional<Schema> |
getSchemaFromAnnotation(Schema schema,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static Type |
getSchemaType(Schema schema) |
static Type |
getSchemaType(Schema schema,
boolean nullIfNotFound) |
static Optional<Server> |
getServer(Server server) |
static Optional<List<Server>> |
getServers(Server[] servers) |
static Optional<Set<Tag>> |
getTags(Tag[] tags,
boolean skipOnlyName) |
static boolean |
hasArrayAnnotation(ArraySchema array) |
static boolean |
hasSchemaAnnotation(Schema schema) |
static ArraySchema |
mergeArraySchemaAnnotations(ArraySchema master,
ArraySchema patch) |
static ArraySchema |
mergeArrayWithSchemaAnnotation(ArraySchema arraySchema,
Schema schema) |
static Annotation |
mergeSchemaAnnotations(Annotation[] ctxAnnotations,
com.fasterxml.jackson.databind.JavaType type) |
static Schema |
mergeSchemaAnnotations(Schema master,
Schema patch) |
static Annotation[] |
removeAnnotations(Annotation[] annotations,
Class... classes) |
static Schema |
resolveSchemaFromType(Class<?> schemaImplementation,
Components components,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation) |
static void |
updateAnnotation(Class<?> clazz,
Schema newAnnotation) |
public static final String COMPONENTS_REF
public static boolean hasSchemaAnnotation(Schema schema)
public static boolean equals(Annotation thisAnnotation, Annotation thatAnnotation)
public static boolean equals(ArraySchema thisArraySchema, ArraySchema thatArraySchema)
public static boolean hasArrayAnnotation(ArraySchema array)
public static Optional<Example> getExample(ExampleObject example)
public static Optional<Example> getExample(ExampleObject example, boolean ignoreName)
public static Optional<ArraySchema> getArraySchema(ArraySchema arraySchema, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static Optional<ArraySchema> getArraySchema(ArraySchema arraySchema, Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static Optional<Schema> getSchemaFromAnnotation(Schema schema, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static Optional<Schema> getSchemaFromAnnotation(Schema schema, Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static Schema resolveSchemaFromType(Class<?> schemaImplementation, Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static Optional<ExternalDocumentation> getExternalDocumentation(ExternalDocumentation externalDocumentation)
public static Map<String,String> getLinkParameters(LinkParameter[] linkParameter)
public static Optional<Map<String,Header>> getHeaders(Header[] annotationHeaders, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static Optional<Header> getHeader(Header header, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static void addEncodingToMediaType(MediaType mediaType, Encoding encoding, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static Optional<Content> getContent(Content[] annotationContents, String[] classTypes, String[] methodTypes, Schema schema, Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static Optional<? extends Schema> getSchema(Content annotationContent, Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static Optional<? extends Schema> getSchema(Schema schemaAnnotation, ArraySchema arrayAnnotation, boolean isArray, Class<?> schemaImplementation, Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
public static void applyTypes(String[] classTypes, String[] methodTypes, Content content, MediaType mediaType)
public static Schema getSchemaAnnotation(com.fasterxml.jackson.databind.introspect.Annotated a)
public static Schema getSchemaDeclaredAnnotation(com.fasterxml.jackson.databind.introspect.Annotated a)
public static Schema getSchemaAnnotation(Annotation... annotations)
public static ArraySchema getArraySchemaAnnotation(Annotation... annotations)
public static <T> T getAnnotation(Class<T> cls, Annotation... annotations)
public static Annotation[] removeAnnotations(Annotation[] annotations, Class... classes)
public static Annotation mergeSchemaAnnotations(Annotation[] ctxAnnotations, com.fasterxml.jackson.databind.JavaType type)
public static ArraySchema mergeArraySchemaAnnotations(ArraySchema master, ArraySchema patch)
public static ArraySchema mergeArrayWithSchemaAnnotation(ArraySchema arraySchema, Schema schema)
Copyright © 2022. All rights reserved.