Class TagReader
java.lang.Object
io.smallrye.openapi.runtime.io.tag.TagReader
Reading the Tag from annotation or json
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.jboss.jandex.AnnotationInstance>getTagAnnotations(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target) static booleanhasTagAnnotation(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target) static org.eclipse.microprofile.openapi.models.tags.TagreadTag(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance) Reads a single Tag annotation.readTags(com.fasterxml.jackson.databind.JsonNode node) Reads a list ofTagOpenAPI nodes.readTags(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads any Tag annotations.The annotation value is an array of Tag annotations.
-
Method Details
-
readTags
public static Optional<List<org.eclipse.microprofile.openapi.models.tags.Tag>> readTags(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads any Tag annotations.The annotation value is an array of Tag annotations.- Parameters:
context- scanning contextannotationValue- an array of @Tag annotations- Returns:
- List of Tag models
-
readTags
public static Optional<List<org.eclipse.microprofile.openapi.models.tags.Tag>> readTags(com.fasterxml.jackson.databind.JsonNode node) Reads a list ofTagOpenAPI nodes.- Parameters:
node- the json array node- Returns:
- List of Tag models
-
readTag
public static org.eclipse.microprofile.openapi.models.tags.Tag readTag(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance) Reads a single Tag annotation.- Parameters:
context- scanning contextannotationInstance- @Tag annotation, must not be null- Returns:
- Tag model
-
hasTagAnnotation
public static boolean hasTagAnnotation(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target) -
getTagAnnotations
public static List<org.jboss.jandex.AnnotationInstance> getTagAnnotations(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target)
-