public class OpenApiContext extends Object implements ApiContext
| Constructor and Description |
|---|
OpenApiContext(OpenApiContext parentApiContext,
org.glassfish.hk2.classmodel.reflect.AnnotatedElement annotatedElement) |
OpenApiContext(org.glassfish.hk2.classmodel.reflect.Types allTypes,
Set<org.glassfish.hk2.classmodel.reflect.Type> allowedTypes,
ClassLoader appClassLoader,
org.eclipse.microprofile.openapi.models.OpenAPI api) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.microprofile.openapi.models.OpenAPI |
getApi()
The current
OpenAPI object being operated on. |
ClassLoader |
getApplicationClassLoader() |
String |
getPath()
The path of the object currently being visited.
|
org.glassfish.hk2.classmodel.reflect.Type |
getType(String type) |
org.eclipse.microprofile.openapi.models.Operation |
getWorkingOperation()
The created operation currently being worked on.
|
boolean |
isAllowedType(org.glassfish.hk2.classmodel.reflect.Type type) |
boolean |
isApplicationType(String type) |
public OpenApiContext(org.glassfish.hk2.classmodel.reflect.Types allTypes,
Set<org.glassfish.hk2.classmodel.reflect.Type> allowedTypes,
ClassLoader appClassLoader,
org.eclipse.microprofile.openapi.models.OpenAPI api)
public OpenApiContext(OpenApiContext parentApiContext, org.glassfish.hk2.classmodel.reflect.AnnotatedElement annotatedElement)
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 isAllowedType(org.glassfish.hk2.classmodel.reflect.Type type)
isAllowedType in interface ApiContexttype - any class, not nullpublic boolean isApplicationType(String type)
isApplicationType in interface ApiContexttype - any class, not nullpublic org.glassfish.hk2.classmodel.reflect.Type getType(String type)
getType in interface ApiContexttype - any class, not nullpublic ClassLoader getApplicationClassLoader()
getApplicationClassLoader in interface ApiContextCopyright © 2020. All rights reserved.