Class OpenApiDocument


  • public class OpenApiDocument
    extends Object
    Holds the final OpenAPI document produced during the startup of the app.

    Note that the model must be initialized first!

    Author:
    Martin Kouba
    • Method Detail

      • get

        public org.eclipse.microprofile.openapi.models.OpenAPI get()
        Returns:
        the final OpenAPI document produced during the startup of the app
        Throws:
        IllegalStateException - If the final model is not initialized yet
      • set

        public void set​(org.eclipse.microprofile.openapi.models.OpenAPI model)
        Set the final OpenAPI document. This method should only be used for testing.
        Parameters:
        model - OpenAPI model instance
      • reset

        public void reset()
        Reset the holder.
      • isSet

        public boolean isSet()
        Returns:
        true if model initialized
      • modelFromAnnotations

        public void modelFromAnnotations​(org.eclipse.microprofile.openapi.models.OpenAPI model)
      • modelFromReader

        public void modelFromReader​(org.eclipse.microprofile.openapi.models.OpenAPI model)
      • modelFromStaticFile

        public void modelFromStaticFile​(org.eclipse.microprofile.openapi.models.OpenAPI model)
      • filter

        public void filter​(org.eclipse.microprofile.openapi.OASFilter filter)
      • archiveName

        public void archiveName​(String archiveName)
      • version

        public void version​(String version)
      • initialize

        public void initialize()