Class JavaClientCodegen
- java.lang.Object
-
- org.openapitools.codegen.DefaultCodegen
-
- org.openapitools.codegen.languages.AbstractJavaCodegen
-
- org.openapitools.codegen.languages.JavaClientCodegen
-
- All Implemented Interfaces:
CodegenConfig
,BeanValidationFeatures
,DocumentationProviderFeatures
,GzipFeatures
,PerformBeanValidationFeatures
- Direct Known Subclasses:
JavaMicroprofileServerCodegen
public class JavaClientCodegen extends AbstractJavaCodegen implements BeanValidationFeatures, PerformBeanValidationFeatures, GzipFeatures
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openapitools.codegen.languages.AbstractJavaCodegen
AbstractJavaCodegen.ENUM_PROPERTY_NAMING_TYPE
-
Nested classes/interfaces inherited from interface org.openapitools.codegen.languages.features.DocumentationProviderFeatures
DocumentationProviderFeatures.AnnotationLibrary, DocumentationProviderFeatures.DocumentationProvider
-
-
Field Summary
-
Fields inherited from class org.openapitools.codegen.languages.AbstractJavaCodegen
ADDITIONAL_ENUM_TYPE_ANNOTATIONS, ADDITIONAL_MODEL_TYPE_ANNOTATIONS, ADDITIONAL_ONE_OF_TYPE_ANNOTATIONS, additionalEnumTypeAnnotations, additionalModelTypeAnnotations, additionalOneOfTypeAnnotations, annotationLibrary, apiDocPath, artifactDescription, artifactId, artifactUrl, artifactVersion, BOOLEAN_GETTER_PREFIX, booleanGetterPrefix, CAMEL_CASE_DOLLAR_SIGN, camelCaseDollarSign, CONTAINER_DEFAULT_TO_NULL, containerDefaultToNull, DATE_LIBRARY, dateLibrary, DEFAULT_LIBRARY, DEFAULT_TEST_FOLDER, developerEmail, developerName, developerOrganization, developerOrganizationUrl, DISABLE_HTML_ESCAPING, disableHtmlEscaping, DISCRIMINATOR_CASE_SENSITIVE, discriminatorCaseSensitive, documentationProvider, ENUM_PROPERTY_NAMING_DESC, enumPropertyNaming, GENERATE_BUILDERS, GENERATE_CONSTRUCTOR_WITH_ALL_ARGS, generateBuilders, generateConstructorWithAllArgs, groupId, IGNORE_ANYOF_IN_ENUM, ignoreAnyOfInEnum, IMPLICIT_HEADERS, IMPLICIT_HEADERS_REGEX, implicitHeaders, implicitHeadersRegex, invokerPackage, jackson, JACKSON, JAVAX_PACKAGE, licenseName, licenseUrl, LOMBOK, lombokAnnotations, modelDocPath, OPENAPI_NULLABLE, openApiNullable, outputTestFolder, parentArtifactId, parentGroupId, parentOverridden, parentVersion, projectFolder, projectTestFolder, scmConnection, scmDeveloperConnection, scmUrl, serializableModel, serializeBigDecimalAsString, sourceFolder, SUPPORT_ASYNC, supportAsync, TEST_OUTPUT, testFolder, USE_JAKARTA_EE, USE_ONE_OF_INTERFACES, useBeanValidation, useJakartaEe, WITH_XML, withXml
-
Fields inherited from class org.openapitools.codegen.DefaultCodegen
additionalProperties, addOneOfInterfaceImports, addOneOfInterfaces, addSuffixToDuplicateOperationNicknames, allowUnicodeIdentifiers, apiDocTemplateFiles, apiNamePrefix, apiNameSuffix, apiPackage, apiTemplateFiles, apiTestTemplateFiles, autosetConstants, cliOptions, DefaultFeatureSet, defaultIncludes, disallowAdditionalPropertiesIfNotPresent, docExtension, embeddedTemplateDir, enableMinimalUpdate, enablePostProcessFile, ensureUniqueParams, enumNameMapping, enumUnknownDefaultCase, enumUnknownDefaultCaseName, falseSchema, filesMetadataFilename, fileSuffix, generatorMetadata, gitHost, gitRepoId, gitUserId, hideGenerationTimestamp, httpUserAgent, ignoreFilePathOverride, importBaseType, importContainerType, importMapping, inlineSchemaNameMapping, inlineSchemaOption, inputSpec, instantiationTypes, JSON_MIME_PATTERN, JSON_VENDOR_MIME_PATTERN, languageSpecificPrimitives, legacyDiscriminatorBehavior, library, loadDeepObjectIntoItems, modelDocTemplateFiles, modelNameMapping, modelNamePrefix, modelNameSuffix, modelPackage, modelTemplateFiles, modelTestTemplateFiles, nameMapping, openAPI, openapiGeneratorIgnoreList, openapiNormalizer, operationIdNameMapping, outputFolder, parameterNameMapping, prependFormOrBodyParameters, releaseNote, removeEnumValuePrefix, removeOperationIdPrefix, removeOperationIdPrefixCount, removeOperationIdPrefixDelimiter, reservedWords, reservedWordsMappings, schemaMapping, serverVariables, skipOperationExample, skipOverwrite, skipSortingOperations, sortModelPropertiesByRequiredFlag, sortParamsByRequiredFlag, specialCharReplacements, strictSpecBehavior, supportedLibraries, supportingFiles, supportsAdditionalPropertiesWithComposedSchema, supportsInheritance, supportsMixins, supportsMultipleInheritance, templateDir, templateOutputDirs, testPackage, trueSchema, typeAliases, typeMapping, useOneOfInterfaces, vendorExtensions, versionMetadataFilename, XML_MIME_PATTERN
-
Fields inherited from interface org.openapitools.codegen.languages.features.BeanValidationFeatures
USE_BEANVALIDATION
-
Fields inherited from interface org.openapitools.codegen.languages.features.DocumentationProviderFeatures
ANNOTATION_LIBRARY, DOCUMENTATION_PROVIDER
-
Fields inherited from interface org.openapitools.codegen.languages.features.GzipFeatures
USE_GZIP_FEATURE
-
Fields inherited from interface org.openapitools.codegen.languages.features.PerformBeanValidationFeatures
PERFORM_BEANVALIDATION
-
-
Constructor Summary
Constructors Constructor Description JavaClientCodegen()
-
Method Summary
-
Methods inherited from class org.openapitools.codegen.languages.AbstractJavaCodegen
addAdditionPropertiesToCodeGenModel, addImports, apiDocFileFolder, apiFileFolder, apiTestFileFolder, applyJakartaPackage, applyJavaxPackage, escapeQuotationMark, escapeReservedWord, escapeUnsafeCharacters, findByName, fromOperation, getAnnotationLibrary, getDocumentationProvider, getOutputTestFolder, getSchemaType, getterAndSetterCapitalize, getTypeDeclaration, handleImplicitHeaders, isAddNullableImports, isTypeErasedGenerics, modelDocFileFolder, modelFileFolder, modelTestFileFolder, needToImport, postProcessAllModels, postProcessFile, postProcessResponseWithProperty, preprocessOpenAPI, removeAnnotations, sanitizeDataType, sanitizeTag, setAnnotationLibrary, setDocumentationProvider, setEnumPropertyNaming, setOutputDir, setParameterExampleValue, setParameterExampleValue, setParameterExampleValue, toApiDocFilename, toApiFilename, toApiTestFilename, toArrayDefaultValue, toBooleanGetter, toDefaultParameterValue, toDefaultValue, toEnumName, toEnumValue, toEnumVarName, toExampleValue, toModelDocFilename, toModelFilename, toModelName, toModelTestFilename, toOperationId, toParamName, toRegularExpression, toVarName
-
Methods inherited from class org.openapitools.codegen.DefaultCodegen
addBodyModelSchema, addHeaders, addImport, addImport, addImport, addImports, addImports, addImports, addImportsForPropertyType, additionalProperties, addMustacheLambdas, addOneOfInterfaceModel, addOneOfNameExtension, addOption, addOption, addParentContainer, addParentFromContainer, addProperties, addRegularExpressionDelimiter, addRequiredVarsMap, addSwitch, addVars, addVars, addVarsRequiredVarsAdditionalProps, apiDocFilename, apiDocTemplateFiles, apiFilename, apiPackage, apiTemplateFiles, apiTestFilename, apiTestTemplateFiles, buildEnumVars, buildLibraryCliOption, cliOptions, convertPropertyToBoolean, convertPropertyToBooleanAndWriteBack, convertPropertyToBooleanAndWriteBack, convertPropertyToStringAndWriteBack, convertPropertyToTypeAndWriteBack, createDiscriminator, defaultIncludes, defaultTemplatingEngine, embeddedTemplateDir, encodePath, enumNameMapping, escapeText, escapeTextInSingleQuotes, escapeTextWhileAllowingNewLines, executePostProcessor, fileSuffix, findCommonPrefixOfVars, findMethodResponse, fromCallback, fromFormProperty, fromParameter, fromProperty, fromProperty, fromProperty, fromRequestBody, fromRequestBodyToFormParameters, fromResponse, fromSecurity, fromServers, fromServerVariables, generateExamplePath, generateJSONSpecFile, generateYAMLSpecFile, generatorLanguage, generatorLanguageVersion, getAdditionalPropertiesName, getAddSuffixToDuplicateOperationNicknames, getAlias, getAllModels, getAllOfDescendants, getCollectionFormat, getCollectionFormat, getConsumesInfo, getContent, getContentType, getDisallowAdditionalPropertiesIfNotPresent, getDocExtension, getEnumDefaultValue, getEnumUnknownDefaultCase, getEnumValueForProperty, getFeatureSet, getFilesMetadataFilename, getGeneratorMetadata, getGitHost, getGitRepoId, getGitUserId, getHttpUserAgent, getIgnoreFilePathOverride, getInnerEnumAllowableValues, getInputSpec, getItemsName, getLegacyDiscriminatorBehavior, getLibrary, getModelNameToSchemaCache, getMostInnerItems, getOneOfAnyOfDescendants, getOpenapiGeneratorIgnoreList, getOrGenerateOperationId, getOutputDir, getParameterDataType, getProducesInfo, getReleaseNote, getSchemaAdditionalProperties, getSchemaFromBooleanOrSchema, getSingleSchemaType, getSymbolName, getTemplatingEngine, getTypeDeclaration, getUseInlineModelResolver, getUseOneOfInterfaces, getUseOpenapiNormalizer, getVersionMetadataFilename, handleConstantParams, handleMethodResponse, handleMethodResponse, handleSpecialCharacters, hasBodyParameter, hasFormParameter, importMapping, initializeSpecialCharacterMapping, inlineSchemaNameMapping, inlineSchemaOption, instantiationTypes, isDataTypeBinary, isDataTypeFile, isDataTypeString, isEnableMinimalUpdate, isEnablePostProcessFile, isHideGenerationTimestamp, isJsonMimeType, isJsonVendorMimeType, isLibrary, isParameterNameUnique, isPropertyInnerMostEnum, isRemoveEnumValuePrefix, isRemoveOperationIdPrefix, isReservedWord, isSkipOperationExample, isSkipOverwrite, isSkipSortingOperations, isStrictSpecBehavior, isXmlMimeType, languageSpecificPrimitives, lowerCamelCase, modelDocTemplateFiles, modelFilename, modelFilename, modelNameMapping, modelPackage, modelTemplateFiles, modelTestTemplateFiles, modifyFeatureSet, nameMapping, openapiGeneratorIgnoreList, openapiNormalizer, operationIdNameMapping, outputFolder, parameterNameMapping, postProcess, postProcessEnumVars, postProcessParameter, postProcessWebhooksWithModels, processCompiler, processOpenAPI, processTemplatingEngine, processTestExampleData, removeImport, removeNonNameElementToCamelCase, removeNonNameElementToCamelCase, removeOption, removeSelfReferenceImports, reservedWords, reservedWordsMappings, sanitizeName, sanitizeName, sanitizeName, schemaMapping, serverVariableOverrides, setAddProps, setCircularReferences, setDocExtension, setEnableMinimalUpdate, setEnablePostProcessFile, setEnumDiscriminatorDefaultValue, setGitHost, setGitRepoId, setGitUserId, setHideGenerationTimestamp, setHttpUserAgent, setIgnoreFilePathOverride, setInputSpec, setLibrary, setNonArrayMapProperty, setOpenAPI, setParameterBooleanFlagWithCodegenProperty, setParameterEncodingValues, setParameterExamples, setParameterNullable, setReleaseNote, setRemoveEnumValuePrefix, setRemoveOperationIdPrefix, setReservedWordsLowerCase, setSkipOperationExample, setSkipOverwrite, setSkipSortingOperations, setStrictSpecBehavior, setTemplatingEngine, setUseOneOfInterfaces, shouldAddImport, shouldOverwrite, SortModelPropertiesByRequiredFlag, SortParametersByRequiredFlag, specVersionGreaterThanOrEqualTo310, supportedLibraries, supportingFiles, templateDir, templateOutputDirs, testPackage, toAllOfName, toAnyOfName, toApiImport, toApiName, toArrayModelParamName, toDefaultParameterValue, toDefaultValue, toDefaultValueWithParam, toEnumDefaultValue, toEnumDefaultValue, toExamples, toGetter, toInstantiationType, toMediaTypeSchemaName, toModelImport, toModelImportMap, toOneOfName, toSetter, toTestCaseName, typeMapping, unaliasPropertySchema, unaliasSchema, updateAllModels, updateCodegenPropertyEnum, updateDataTypeWithEnumForArray, updateDataTypeWithEnumForMap, updateEnumVarsWithExtensions, updateModelForAnyType, updateModelForComposedSchema, updateModelForInteger, updateModelForNumber, updateModelForObject, updateModelForString, updateOption, updateParameterForString, updatePropertyForAnyType, updatePropertyForArray, updatePropertyForInteger, updatePropertyForMap, updatePropertyForMap, updatePropertyForNumber, updatePropertyForObject, updatePropertyForString, updateRequestBodyForArray, updateRequestBodyForMap, updateRequestBodyForObject, updateRequestBodyForPrimitiveType, updateRequestBodyForString, useCodegenAsMustacheParentContext, vendorExtensions, writePropertyBack
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openapitools.codegen.languages.features.BeanValidationFeatures
setUseBeanValidation
-
Methods inherited from interface org.openapitools.codegen.CodegenConfig
additionalProperties, apiDocFilename, apiDocTemplateFiles, apiFilename, apiPackage, apiTemplateFiles, apiTestFilename, apiTestTemplateFiles, cliOptions, defaultIncludes, defaultTemplatingEngine, embeddedTemplateDir, encodePath, enumNameMapping, escapeText, escapeTextWhileAllowingNewLines, fileSuffix, fromSecurity, fromServers, fromServerVariables, generateExamplePath, generatorLanguage, generatorLanguageVersion, getAddSuffixToDuplicateOperationNicknames, getDocExtension, getFeatureSet, getFilesMetadataFilename, getGeneratorMetadata, getGitHost, getGitRepoId, getGitUserId, getHttpUserAgent, getIgnoreFilePathOverride, getInputSpec, getLibrary, getOpenapiGeneratorIgnoreList, getOutputDir, getReleaseNote, getTemplatingEngine, getTypeDeclaration, getUseInlineModelResolver, getUseOpenapiNormalizer, getVersionMetadataFilename, importMapping, inlineSchemaNameMapping, inlineSchemaOption, instantiationTypes, isEnableMinimalUpdate, isEnablePostProcessFile, isHideGenerationTimestamp, isRemoveEnumValuePrefix, isRemoveOperationIdPrefix, isSkipOperationExample, isSkipOverwrite, isSkipSortingOperations, isStrictSpecBehavior, languageSpecificPrimitives, modelDocTemplateFiles, modelFilename, modelFilename, modelNameMapping, modelPackage, modelTemplateFiles, modelTestTemplateFiles, nameMapping, openapiGeneratorIgnoreList, openapiNormalizer, operationIdNameMapping, outputFolder, parameterNameMapping, postProcess, postProcessParameter, postProcessWebhooksWithModels, processCompiler, processOpenAPI, processTemplatingEngine, reservedWords, reservedWordsMappings, sanitizeName, schemaMapping, serverVariableOverrides, setDocExtension, setEnableMinimalUpdate, setEnablePostProcessFile, setGitHost, setGitRepoId, setGitUserId, setHideGenerationTimestamp, setHttpUserAgent, setIgnoreFilePathOverride, setInputSpec, setLibrary, setOpenAPI, setReleaseNote, setRemoveEnumValuePrefix, setRemoveOperationIdPrefix, setSkipOperationExample, setSkipOverwrite, setSkipSortingOperations, setStrictSpecBehavior, setTemplatingEngine, shouldOverwrite, supportedLibraries, supportingFiles, templateDir, templateOutputDirs, testPackage, toApiImport, toApiName, toGetter, toModelImport, toModelImportMap, toSetter, typeMapping, unaliasSchema, updateAllModels, vendorExtensions
-
Methods inherited from interface org.openapitools.codegen.languages.features.GzipFeatures
setUseGzipFeature
-
Methods inherited from interface org.openapitools.codegen.languages.features.PerformBeanValidationFeatures
setPerformBeanValidation
-
-
-
-
Field Detail
-
USE_RX_JAVA2
public static final String USE_RX_JAVA2
- See Also:
- Constant Field Values
-
USE_RX_JAVA3
public static final String USE_RX_JAVA3
- See Also:
- Constant Field Values
-
DO_NOT_USE_RX
public static final String DO_NOT_USE_RX
- See Also:
- Constant Field Values
-
USE_PLAY_WS
public static final String USE_PLAY_WS
- See Also:
- Constant Field Values
-
ASYNC_NATIVE
public static final String ASYNC_NATIVE
- See Also:
- Constant Field Values
-
CONFIG_KEY
public static final String CONFIG_KEY
- See Also:
- Constant Field Values
-
CONFIG_KEY_FROM_CLASS_NAME
public static final String CONFIG_KEY_FROM_CLASS_NAME
- See Also:
- Constant Field Values
-
PARCELABLE_MODEL
public static final String PARCELABLE_MODEL
- See Also:
- Constant Field Values
-
USE_RUNTIME_EXCEPTION
public static final String USE_RUNTIME_EXCEPTION
- See Also:
- Constant Field Values
-
USE_REFLECTION_EQUALS_HASHCODE
public static final String USE_REFLECTION_EQUALS_HASHCODE
- See Also:
- Constant Field Values
-
CASE_INSENSITIVE_RESPONSE_HEADERS
public static final String CASE_INSENSITIVE_RESPONSE_HEADERS
- See Also:
- Constant Field Values
-
MICROPROFILE_FRAMEWORK
public static final String MICROPROFILE_FRAMEWORK
- See Also:
- Constant Field Values
-
MICROPROFILE_MUTINY
public static final String MICROPROFILE_MUTINY
- See Also:
- Constant Field Values
-
USE_ABSTRACTION_FOR_FILES
public static final String USE_ABSTRACTION_FOR_FILES
- See Also:
- Constant Field Values
-
DYNAMIC_OPERATIONS
public static final String DYNAMIC_OPERATIONS
- See Also:
- Constant Field Values
-
SUPPORT_STREAMING
public static final String SUPPORT_STREAMING
- See Also:
- Constant Field Values
-
SUPPORT_URL_QUERY
public static final String SUPPORT_URL_QUERY
- See Also:
- Constant Field Values
-
GRADLE_PROPERTIES
public static final String GRADLE_PROPERTIES
- See Also:
- Constant Field Values
-
ERROR_OBJECT_TYPE
public static final String ERROR_OBJECT_TYPE
- See Also:
- Constant Field Values
-
FEIGN
public static final String FEIGN
- See Also:
- Constant Field Values
-
FEIGN_HC5
public static final String FEIGN_HC5
- See Also:
- Constant Field Values
-
GOOGLE_API_CLIENT
public static final String GOOGLE_API_CLIENT
- See Also:
- Constant Field Values
-
JERSEY2
public static final String JERSEY2
- See Also:
- Constant Field Values
-
JERSEY3
public static final String JERSEY3
- See Also:
- Constant Field Values
-
NATIVE
public static final String NATIVE
- See Also:
- Constant Field Values
-
OKHTTP_GSON
public static final String OKHTTP_GSON
- See Also:
- Constant Field Values
-
RESTEASY
public static final String RESTEASY
- See Also:
- Constant Field Values
-
RESTTEMPLATE
public static final String RESTTEMPLATE
- See Also:
- Constant Field Values
-
WEBCLIENT
public static final String WEBCLIENT
- See Also:
- Constant Field Values
-
RESTCLIENT
public static final String RESTCLIENT
- See Also:
- Constant Field Values
-
REST_ASSURED
public static final String REST_ASSURED
- See Also:
- Constant Field Values
-
RETROFIT_2
public static final String RETROFIT_2
- See Also:
- Constant Field Values
-
VERTX
public static final String VERTX
- See Also:
- Constant Field Values
-
MICROPROFILE
public static final String MICROPROFILE
- See Also:
- Constant Field Values
-
APACHE
public static final String APACHE
- See Also:
- Constant Field Values
-
MICROPROFILE_REST_CLIENT_VERSION
public static final String MICROPROFILE_REST_CLIENT_VERSION
- See Also:
- Constant Field Values
-
MICROPROFILE_REST_CLIENT_DEFAULT_VERSION
public static final String MICROPROFILE_REST_CLIENT_DEFAULT_VERSION
- See Also:
- Constant Field Values
-
MICROPROFILE_REST_CLIENT_DEFAULT_ROOT_PACKAGE
public static final String MICROPROFILE_REST_CLIENT_DEFAULT_ROOT_PACKAGE
- See Also:
- Constant Field Values
-
MICROPROFILE_DEFAULT
public static final String MICROPROFILE_DEFAULT
- See Also:
- Constant Field Values
-
MICROPROFILE_KUMULUZEE
public static final String MICROPROFILE_KUMULUZEE
- See Also:
- Constant Field Values
-
WEBCLIENT_BLOCKING_OPERATIONS
public static final String WEBCLIENT_BLOCKING_OPERATIONS
- See Also:
- Constant Field Values
-
USE_ENUM_CASE_INSENSITIVE
public static final String USE_ENUM_CASE_INSENSITIVE
- See Also:
- Constant Field Values
-
FAIL_ON_UNKNOWN_PROPERTIES
public static final String FAIL_ON_UNKNOWN_PROPERTIES
- See Also:
- Constant Field Values
-
SUPPORT_VERTX_FUTURE
public static final String SUPPORT_VERTX_FUTURE
- See Also:
- Constant Field Values
-
SERIALIZATION_LIBRARY_GSON
public static final String SERIALIZATION_LIBRARY_GSON
- See Also:
- Constant Field Values
-
SERIALIZATION_LIBRARY_JACKSON
public static final String SERIALIZATION_LIBRARY_JACKSON
- See Also:
- Constant Field Values
-
SERIALIZATION_LIBRARY_JSONB
public static final String SERIALIZATION_LIBRARY_JSONB
- See Also:
- Constant Field Values
-
GENERATE_CLIENT_AS_BEAN
public static final String GENERATE_CLIENT_AS_BEAN
- See Also:
- Constant Field Values
-
gradleWrapperPackage
protected String gradleWrapperPackage
-
useRxJava
protected boolean useRxJava
-
useRxJava2
protected boolean useRxJava2
-
useRxJava3
protected boolean useRxJava3
-
doNotUseRx
protected boolean doNotUseRx
-
usePlayWS
protected boolean usePlayWS
-
microprofileFramework
protected String microprofileFramework
-
microprofileRestClientVersion
protected String microprofileRestClientVersion
-
microprofileMutiny
protected boolean microprofileMutiny
-
configKey
protected String configKey
-
configKeyFromClassName
protected boolean configKeyFromClassName
-
asyncNative
protected boolean asyncNative
-
parcelableModel
protected boolean parcelableModel
-
performBeanValidation
protected boolean performBeanValidation
-
useGzipFeature
protected boolean useGzipFeature
-
useRuntimeException
protected boolean useRuntimeException
-
useReflectionEqualsHashCode
protected boolean useReflectionEqualsHashCode
-
caseInsensitiveResponseHeaders
protected boolean caseInsensitiveResponseHeaders
-
useAbstractionForFiles
protected boolean useAbstractionForFiles
-
dynamicOperations
protected boolean dynamicOperations
-
supportStreaming
protected boolean supportStreaming
-
withAWSV4Signature
protected boolean withAWSV4Signature
-
gradleProperties
protected String gradleProperties
-
errorObjectType
protected String errorObjectType
-
failOnUnknownProperties
protected boolean failOnUnknownProperties
-
authFolder
protected String authFolder
-
serializationLibrary
protected String serializationLibrary
Serialization library.
-
useOneOfDiscriminatorLookup
protected boolean useOneOfDiscriminatorLookup
-
rootJavaEEPackage
protected String rootJavaEEPackage
-
mpRestClientVersions
protected Map<String,org.openapitools.codegen.languages.JavaClientCodegen.MpRestClientVersion> mpRestClientVersions
-
useSingleRequestParameter
protected String useSingleRequestParameter
-
webclientBlockingOperations
protected boolean webclientBlockingOperations
-
generateClientAsBean
protected boolean generateClientAsBean
-
useEnumCaseInsensitive
protected boolean useEnumCaseInsensitive
-
maxAttemptsForRetry
protected int maxAttemptsForRetry
-
waitTimeMillis
protected long waitTimeMillis
-
-
Method Detail
-
defaultDocumentationProvider
public DocumentationProviderFeatures.DocumentationProvider defaultDocumentationProvider()
Description copied from interface:DocumentationProviderFeatures
Define the default documentation Provider for CliOpts processing. A NULL return value will disable the documentation provider support. Override in subclasses to customize.- Specified by:
defaultDocumentationProvider
in interfaceDocumentationProviderFeatures
- Returns:
- the default documentation provider
-
supportedDocumentationProvider
public List<DocumentationProviderFeatures.DocumentationProvider> supportedDocumentationProvider()
Description copied from interface:DocumentationProviderFeatures
Define the List of supported documentation Provider for CliOpts processing. Override in subclasses to customize.- Specified by:
supportedDocumentationProvider
in interfaceDocumentationProviderFeatures
- Returns:
- the list of supported documentation provider
-
supportedAnnotationLibraries
public List<DocumentationProviderFeatures.AnnotationLibrary> supportedAnnotationLibraries()
Description copied from interface:DocumentationProviderFeatures
Define the list of supported annotation libraries for CliOpts processing. Override in subclasses to customize.- Specified by:
supportedAnnotationLibraries
in interfaceDocumentationProviderFeatures
- Returns:
- the list of supported annotation libraries
-
getTag
public CodegenType getTag()
- Specified by:
getTag
in interfaceCodegenConfig
- Overrides:
getTag
in classDefaultCodegen
-
getName
public String getName()
- Specified by:
getName
in interfaceCodegenConfig
- Overrides:
getName
in classDefaultCodegen
-
getHelp
public String getHelp()
- Specified by:
getHelp
in interfaceCodegenConfig
- Overrides:
getHelp
in classDefaultCodegen
-
addOperationToGroup
public void addOperationToGroup(String tag, String resourcePath, io.swagger.v3.oas.models.Operation operation, CodegenOperation co, Map<String,List<CodegenOperation>> operations)
Description copied from class:DefaultCodegen
Add operation to group- Specified by:
addOperationToGroup
in interfaceCodegenConfig
- Overrides:
addOperationToGroup
in classDefaultCodegen
- Parameters:
tag
- name of the tagresourcePath
- path of the resourceoperation
- OAS Operation objectco
- Codegen Operation objectoperations
- map of Codegen operations
-
processOpts
public void processOpts()
- Specified by:
processOpts
in interfaceCodegenConfig
- Overrides:
processOpts
in classAbstractJavaCodegen
-
postProcessOperationsWithModels
public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels)
- Specified by:
postProcessOperationsWithModels
in interfaceCodegenConfig
- Overrides:
postProcessOperationsWithModels
in classAbstractJavaCodegen
-
apiFilename
public String apiFilename(String templateName, String tag)
- Specified by:
apiFilename
in interfaceCodegenConfig
- Overrides:
apiFilename
in classDefaultCodegen
-
postProcessModelProperty
public void postProcessModelProperty(CodegenModel model, CodegenProperty property)
- Specified by:
postProcessModelProperty
in interfaceCodegenConfig
- Overrides:
postProcessModelProperty
in classAbstractJavaCodegen
-
fromModel
public CodegenModel fromModel(String name, io.swagger.v3.oas.models.media.Schema model)
Description copied from class:DefaultCodegen
Convert OAS Model object to Codegen Model object.- Specified by:
fromModel
in interfaceCodegenConfig
- Overrides:
fromModel
in classAbstractJavaCodegen
- Parameters:
name
- the name of the modelmodel
- OAS Model object- Returns:
- Codegen Model object
-
postProcessModelsEnum
public ModelsMap postProcessModelsEnum(ModelsMap objs)
Description copied from class:DefaultCodegen
post process enum defined in model's properties- Overrides:
postProcessModelsEnum
in classDefaultCodegen
- Parameters:
objs
- Map of models- Returns:
- maps of models with better enum support
-
postProcessModels
public ModelsMap postProcessModels(ModelsMap objs)
- Specified by:
postProcessModels
in interfaceCodegenConfig
- Overrides:
postProcessModels
in classAbstractJavaCodegen
-
isConstructorWithAllArgsAllowed
protected boolean isConstructorWithAllArgsAllowed(CodegenModel codegenModel)
Description copied from class:AbstractJavaCodegen
trigger the generation of all arguments constructor or not. It avoids generating the same constructor twice.- Overrides:
isConstructorWithAllArgsAllowed
in classAbstractJavaCodegen
- Returns:
- true if an allArgConstructor must be generated
-
getUseOneOfDiscriminatorLookup
public boolean getUseOneOfDiscriminatorLookup()
-
getSingleRequestParameter
public boolean getSingleRequestParameter()
-
getStaticRequest
public boolean getStaticRequest()
-
setUseRxJava
public void setUseRxJava(boolean useRxJava)
-
setUseRxJava2
public void setUseRxJava2(boolean useRxJava2)
-
setUseRxJava3
public void setUseRxJava3(boolean useRxJava3)
-
setCaseInsensitiveResponseHeaders
public void setCaseInsensitiveResponseHeaders(Boolean caseInsensitiveResponseHeaders)
-
setSerializationLibrary
public void setSerializationLibrary(String serializationLibrary)
-
forceSerializationLibrary
public void forceSerializationLibrary(String serializationLibrary)
-
postProcessSupportingFileData
public Map<String,Object> postProcessSupportingFileData(Map<String,Object> objs)
- Specified by:
postProcessSupportingFileData
in interfaceCodegenConfig
- Overrides:
postProcessSupportingFileData
in classDefaultCodegen
-
toApiVarName
public String toApiVarName(String name)
Description copied from class:DefaultCodegen
Return the variable name in the Api- Specified by:
toApiVarName
in interfaceCodegenConfig
- Overrides:
toApiVarName
in classDefaultCodegen
- Parameters:
name
- the variable name of the Api- Returns:
- the snake-cased variable name
-
addImportsToOneOfInterface
public void addImportsToOneOfInterface(List<Map<String,String>> imports)
- Overrides:
addImportsToOneOfInterface
in classAbstractJavaCodegen
-
getSupportedVendorExtensions
public List<VendorExtension> getSupportedVendorExtensions()
- Specified by:
getSupportedVendorExtensions
in interfaceCodegenConfig
- Overrides:
getSupportedVendorExtensions
in classAbstractJavaCodegen
-
-