Class JavaMicronautAbstractCodegen

    • Field Detail

      • OPT_TITLE

        public static final String OPT_TITLE
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_BUILD

        public static final String OPT_BUILD
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_BUILD_GRADLE

        public static final String OPT_BUILD_GRADLE
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_BUILD_MAVEN

        public static final String OPT_BUILD_MAVEN
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_BUILD_ALL

        public static final String OPT_BUILD_ALL
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_TEST

        public static final String OPT_TEST
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_TEST_JUNIT

        public static final String OPT_TEST_JUNIT
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_TEST_SPOCK

        public static final String OPT_TEST_SPOCK
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_REQUIRED_PROPERTIES_IN_CONSTRUCTOR

        public static final String OPT_REQUIRED_PROPERTIES_IN_CONSTRUCTOR
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_MICRONAUT_VERSION

        public static final String OPT_MICRONAUT_VERSION
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_USE_AUTH

        public static final String OPT_USE_AUTH
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_VISITABLE

        public static final String OPT_VISITABLE
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_DATE_LIBRARY_JAVA8

        public static final String OPT_DATE_LIBRARY_JAVA8
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_DATE_LIBRARY_JAVA8_LOCAL_DATETIME

        public static final String OPT_DATE_LIBRARY_JAVA8_LOCAL_DATETIME
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_DATE_FORMAT

        public static final String OPT_DATE_FORMAT
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_DATETIME_FORMAT

        public static final String OPT_DATETIME_FORMAT
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_REACTIVE

        public static final String OPT_REACTIVE
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_WRAP_IN_HTTP_RESPONSE

        public static final String OPT_WRAP_IN_HTTP_RESPONSE
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_APPLICATION_NAME

        public static final String OPT_APPLICATION_NAME
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_GENERATE_SWAGGER_ANNOTATIONS

        public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1

        public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_1
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2

        public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_GENERATE_SWAGGER_ANNOTATIONS_TRUE

        public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_TRUE
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE

        public static final String OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG

        public static final String OPT_GENERATE_OPERATION_ONLY_FOR_FIRST_TAG
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • LOGGER

        protected final org.slf4j.Logger LOGGER
        Deprecated, for removal: This API element is subject to removal in a future version.
      • title

        protected String title
        Deprecated, for removal: This API element is subject to removal in a future version.
      • useOptional

        protected boolean useOptional
        Deprecated, for removal: This API element is subject to removal in a future version.
      • visitable

        protected boolean visitable
        Deprecated, for removal: This API element is subject to removal in a future version.
      • buildTool

        protected String buildTool
        Deprecated, for removal: This API element is subject to removal in a future version.
      • testTool

        protected String testTool
        Deprecated, for removal: This API element is subject to removal in a future version.
      • requiredPropertiesInConstructor

        protected boolean requiredPropertiesInConstructor
        Deprecated, for removal: This API element is subject to removal in a future version.
      • micronautVersion

        protected String micronautVersion
        Deprecated, for removal: This API element is subject to removal in a future version.
      • reactive

        protected boolean reactive
        Deprecated, for removal: This API element is subject to removal in a future version.
      • wrapInHttpResponse

        protected boolean wrapInHttpResponse
        Deprecated, for removal: This API element is subject to removal in a future version.
      • appName

        protected String appName
        Deprecated, for removal: This API element is subject to removal in a future version.
      • generateSwaggerAnnotations

        protected String generateSwaggerAnnotations
        Deprecated, for removal: This API element is subject to removal in a future version.
      • generateOperationOnlyForFirstTag

        protected boolean generateOperationOnlyForFirstTag
        Deprecated, for removal: This API element is subject to removal in a future version.
      • serializationLibrary

        protected String serializationLibrary
        Deprecated, for removal: This API element is subject to removal in a future version.
      • CONTENT_TYPE_APPLICATION_FORM_URLENCODED

        public static final String CONTENT_TYPE_APPLICATION_FORM_URLENCODED
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • CONTENT_TYPE_APPLICATION_JSON

        public static final String CONTENT_TYPE_APPLICATION_JSON
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • CONTENT_TYPE_MULTIPART_FORM_DATA

        public static final String CONTENT_TYPE_MULTIPART_FORM_DATA
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • CONTENT_TYPE_ANY

        public static final String CONTENT_TYPE_ANY
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • DATE_FORMAT

        public static final String DATE_FORMAT
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • DATETIME_FORMAT

        public static final String DATETIME_FORMAT
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • OFFSET_DATETIME_FORMAT

        public static final String OFFSET_DATETIME_FORMAT
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JavaMicronautAbstractCodegen

        public JavaMicronautAbstractCodegen()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • setUseOptional

        public void setUseOptional​(boolean useOptional)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        setUseOptional in interface OptionalFeatures
      • toApiVarName

        public String toApiVarName​(String name)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from class: DefaultCodegen
        Return the variable name in the Api
        Specified by:
        toApiVarName in interface CodegenConfig
        Overrides:
        toApiVarName in class DefaultCodegen
        Parameters:
        name - the variable name of the Api
        Returns:
        the snake-cased variable name
      • fromModel

        public CodegenModel fromModel​(String name,
                                      io.swagger.v3.oas.models.media.Schema model)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from class: DefaultCodegen
        Convert OAS Model object to Codegen Model object.
        Specified by:
        fromModel in interface CodegenConfig
        Overrides:
        fromModel in class AbstractJavaCodegen
        Parameters:
        name - the name of the model
        model - OAS Model object
        Returns:
        Codegen Model object
      • setParameterExampleValue

        public void setParameterExampleValue​(CodegenParameter p)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from class: DefaultCodegen
        Return the example value of the parameter.
        Overrides:
        setParameterExampleValue in class AbstractJavaCodegen
        Parameters:
        p - Codegen parameter
      • getParameterExampleValue

        protected String getParameterExampleValue​(CodegenParameter p,
                                                  boolean groovy)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getPropertyExampleValue

        protected String getPropertyExampleValue​(CodegenProperty p,
                                                 boolean groovy)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • escapeTextGroovy

        public String escapeTextGroovy​(String text)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • addMustacheLambdas

        protected com.google.common.collect.ImmutableMap.Builder<String,​com.samskivert.mustache.Mustache.Lambda> addMustacheLambdas()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from class: DefaultCodegen
        Preset map builder with commonly used Mustache lambdas. To extend the map, override addMustacheLambdas(), call parent method first and then add additional lambdas to the returned builder. If common lambdas are not desired, override addMustacheLambdas() method and return empty builder.
        Overrides:
        addMustacheLambdas in class DefaultCodegen
        Returns:
        preinitialized map with common lambdas
      • setSerializationLibrary

        public void setSerializationLibrary​(String serializationLibrary)
        Deprecated, for removal: This API element is subject to removal in a future version.