Class TagReader
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.tag.TagReader
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.jboss.jandex.AnnotationInstance>getTagAnnotations(org.jboss.jandex.AnnotationTarget target)static booleanhasTagAnnotation(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.static Optional<List<org.eclipse.microprofile.openapi.models.tags.Tag>>readTags(com.fasterxml.jackson.databind.JsonNode node)Reads a list ofTagOpenAPI nodes.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.
-
-
-
Method Detail
-
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(org.jboss.jandex.AnnotationTarget target)
-
getTagAnnotations
public static List<org.jboss.jandex.AnnotationInstance> getTagAnnotations(org.jboss.jandex.AnnotationTarget target)
-
-