Class TagReader
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.tag.TagReader
-
public class TagReader extends Object
Reading the Tag from annotation or json- Author:
- Phillip Kruger ([email protected]), Eric Wittmann ([email protected])
- See Also:
- tagObject
-
-
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 boolean
hasTagAnnotation(org.jboss.jandex.AnnotationTarget target)
static org.eclipse.microprofile.openapi.models.tags.Tag
readTag(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 ofTag
OpenAPI 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 ofTag
OpenAPI 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)
-
-