public class OpenApiContext extends Object implements ApiContext
| Constructor and Description |
|---|
OpenApiContext(Set<Class<?>> applicationClasses,
org.eclipse.microprofile.openapi.models.OpenAPI api,
String path) |
OpenApiContext(Set<Class<?>> applicationClasses,
org.eclipse.microprofile.openapi.models.OpenAPI api,
String path,
org.eclipse.microprofile.openapi.models.Operation operation) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.microprofile.openapi.models.OpenAPI |
getApi()
The current
OpenAPI object being operated on. |
String |
getPath()
The path of the object currently being visited.
|
org.eclipse.microprofile.openapi.models.Operation |
getWorkingOperation()
The created operation currently being worked on.
|
boolean |
isApplicationType(Class<?> type) |
public OpenApiContext(Set<Class<?>> applicationClasses, org.eclipse.microprofile.openapi.models.OpenAPI api, String path, org.eclipse.microprofile.openapi.models.Operation operation)
public org.eclipse.microprofile.openapi.models.OpenAPI getApi()
ApiContextOpenAPI object being operated on.getApi in interface ApiContextpublic String getPath()
ApiContextgetPath in interface ApiContextpublic org.eclipse.microprofile.openapi.models.Operation getWorkingOperation()
ApiContextgetWorkingOperation in interface ApiContextpublic boolean isApplicationType(Class<?> type)
isApplicationType in interface ApiContexttype - any class, not nullCopyright © 2019. All rights reserved.