Class ParameterReader
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.parameter.ParameterReader
-
public class ParameterReader extends Object
Reading the Parameter annotation- Author:
- Phillip Kruger ([email protected]), Eric Wittmann ([email protected])
- See Also:
- parameter-object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.microprofile.openapi.models.parameters.Parameter
readParameter(com.fasterxml.jackson.databind.JsonNode node)
Reads aParameter
OpenAPI node.static org.eclipse.microprofile.openapi.models.parameters.Parameter
readParameter(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance)
Reads a Parameter annotation into a model.static Optional<List<org.eclipse.microprofile.openapi.models.parameters.Parameter>>
readParameterList(com.fasterxml.jackson.databind.JsonNode node)
Reads aParameter
OpenAPI node.static Map<String,org.eclipse.microprofile.openapi.models.parameters.Parameter>
readParameters(com.fasterxml.jackson.databind.JsonNode node)
Reads theParameter
OpenAPI nodes.static Map<String,org.eclipse.microprofile.openapi.models.parameters.Parameter>
readParameters(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
Reads a map of Parameter annotations.static Optional<List<org.eclipse.microprofile.openapi.models.parameters.Parameter>>
readParametersList(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
Reads a map of Parameter annotations.
-
-
-
Method Detail
-
readParametersList
public static Optional<List<org.eclipse.microprofile.openapi.models.parameters.Parameter>> readParametersList(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
Reads a map of Parameter annotations.- Parameters:
context
- the scanning contextannotationValue
- Map of @Parameter annotations- Returns:
- List of Parameter model
-
readParameterList
public static Optional<List<org.eclipse.microprofile.openapi.models.parameters.Parameter>> readParameterList(com.fasterxml.jackson.databind.JsonNode node)
Reads aParameter
OpenAPI node.- Parameters:
node
- json list- Returns:
- List of Parameter model
-
readParameters
public static Map<String,org.eclipse.microprofile.openapi.models.parameters.Parameter> readParameters(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
Reads a map of Parameter annotations.- Parameters:
context
- the scanning contextannotationValue
- Map of @Parameter annotations- Returns:
- Map of Parameter model
-
readParameters
public static Map<String,org.eclipse.microprofile.openapi.models.parameters.Parameter> readParameters(com.fasterxml.jackson.databind.JsonNode node)
Reads theParameter
OpenAPI nodes.- Parameters:
node
- json map of Parameters- Returns:
- Map of Parameter model
-
readParameter
public static org.eclipse.microprofile.openapi.models.parameters.Parameter readParameter(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance)
Reads a Parameter annotation into a model.- Parameters:
context
- the scanning contextannotationInstance
- @Parameter model- Returns:
- Parameter model
-
readParameter
public static org.eclipse.microprofile.openapi.models.parameters.Parameter readParameter(com.fasterxml.jackson.databind.JsonNode node)
Reads aParameter
OpenAPI node.- Parameters:
node
- the json object- Returns:
- Parameter model
-
-