Class OperationReader
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.operation.OperationReader
-
public class OperationReader extends Object
Reading the Operation from annotation or json- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
- operationObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.jboss.jandex.AnnotationInstancegetOperationAnnotation(org.jboss.jandex.MethodInfo method)static booleanoperationIsHidden(org.jboss.jandex.MethodInfo method)static org.eclipse.microprofile.openapi.models.OperationreadOperation(com.fasterxml.jackson.databind.JsonNode node)Reads aOperationOpenAPI node.static org.eclipse.microprofile.openapi.models.OperationreadOperation(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance, org.jboss.jandex.MethodInfo methodInfo)Reads a single Operation annotation.
-
-
-
Method Detail
-
readOperation
public static org.eclipse.microprofile.openapi.models.Operation readOperation(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance, org.jboss.jandex.MethodInfo methodInfo)
Reads a single Operation annotation.- Parameters:
context- the scanning contextmethodInfo- the method- Returns:
- Operation model
-
readOperation
public static org.eclipse.microprofile.openapi.models.Operation readOperation(com.fasterxml.jackson.databind.JsonNode node)
Reads aOperationOpenAPI node.- Parameters:
node- json object- Returns:
- Operation model
-
operationIsHidden
public static boolean operationIsHidden(org.jboss.jandex.MethodInfo method)
-
getOperationAnnotation
public static org.jboss.jandex.AnnotationInstance getOperationAnnotation(org.jboss.jandex.MethodInfo method)
-
-