Class OpenApiContext

    • Constructor Detail

      • OpenApiContext

        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)
      • OpenApiContext

        public OpenApiContext​(OpenApiContext parentApiContext,
                              org.glassfish.hk2.classmodel.reflect.AnnotatedElement annotatedElement)
    • Method Detail

      • getApi

        public org.eclipse.microprofile.openapi.models.OpenAPI getApi()
        Description copied from interface: ApiContext
        The current OpenAPI object being operated on.
        Specified by:
        getApi in interface ApiContext
      • getPath

        public String getPath()
        Description copied from interface: ApiContext
        The path of the object currently being visited. If the path is null, the object has no context (e.g a POJO).
        Specified by:
        getPath in interface ApiContext
      • getWorkingOperation

        public org.eclipse.microprofile.openapi.models.Operation getWorkingOperation()
        Description copied from interface: ApiContext
        The created operation currently being worked on.
        Specified by:
        getWorkingOperation in interface ApiContext
      • addMappedExceptionResponse

        public void addMappedExceptionResponse​(String exceptionType,
                                               org.eclipse.microprofile.openapi.models.responses.APIResponse exceptionResponse)
        Specified by:
        addMappedExceptionResponse in interface ApiContext
      • isAllowedType

        public boolean isAllowedType​(org.glassfish.hk2.classmodel.reflect.Type type)
        Specified by:
        isAllowedType in interface ApiContext
        Parameters:
        type - any class, not null
        Returns:
        true, if the give type is a filtered class for OpenAPI metadata processing otherwise false
      • isApplicationType

        public boolean isApplicationType​(String type)
        Specified by:
        isApplicationType in interface ApiContext
        Parameters:
        type - any class, not null
        Returns:
        true, if the give type is a known type in this context, else false
      • getType

        public org.glassfish.hk2.classmodel.reflect.Type getType​(String type)
        Specified by:
        getType in interface ApiContext
        Parameters:
        type - any class, not null
        Returns:
        type, if the give type is a known type in this context, else null
      • getAnnotationInfo

        public AnnotationInfo getAnnotationInfo​(org.glassfish.hk2.classmodel.reflect.ExtensibleType<? extends org.glassfish.hk2.classmodel.reflect.ExtensibleType> type)
        Specified by:
        getAnnotationInfo in interface ApiContext
        Returns:
        the aggregated annotation info of type