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
public class JavaClientCodegen extends AbstractJavaCodegen implements BeanValidationFeatures, PerformBeanValidationFeatures, GzipFeatures
-
-
Nested Class Summary
-
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, groupId, IGNORE_ANYOF_IN_ENUM, ignoreAnyOfInEnum, IMPLICIT_HEADERS, IMPLICIT_HEADERS_REGEX, implicitHeaders, implicitHeadersRegex, invokerPackage, JACKSON, JAVAX_PACKAGE, licenseName, licenseUrl, modelDocPath, OPENAPI_NULLABLE, openApiNullable, outputTestFolder, parentArtifactId, parentGroupId, parentOverridden, parentVersion, projectFolder, projectTestFolder, scmConnection, scmDeveloperConnection, scmUrl, serializableModel, serializeBigDecimalAsString, sourceFolder, SUPPORT_ASYNC, SUPPORT_JAVA6, supportAsync, supportJava6, TEST_OUTPUT, testFolder, USE_JAKARTA_EE, USE_ONE_OF_INTERFACES, useJakartaEe, WITH_XML, withXml
-
Fields inherited from class org.openapitools.codegen.DefaultCodegen
additionalProperties, addOneOfInterfaceImports, addOneOfInterfaces, addSuffixToDuplicateOperationNicknames, allowUnicodeIdentifiers, apiDocTemplateFiles, apiNamePrefix, apiNameSuffix, apiPackage, apiTemplateFiles, apiTestTemplateFiles, cliOptions, DefaultFeatureSet, defaultIncludes, disallowAdditionalPropertiesIfNotPresent, docExtension, embeddedTemplateDir, enableMinimalUpdate, enablePostProcessFile, ensureUniqueParams, 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, openapiNormalizer, outputFolder, parameterNameMapping, prependFormOrBodyParameters, releaseNote, removeEnumValuePrefix, removeOperationIdPrefix, removeOperationIdPrefixCount, removeOperationIdPrefixDelimiter, reservedWords, reservedWordsMappings, schemaMapping, serverVariables, skipOperationExample, skipOverwrite, sortModelPropertiesByRequiredFlag, sortParamsByRequiredFlag, specialCharReplacements, strictSpecBehavior, supportedLibraries, supportingFiles, supportsAdditionalPropertiesWithComposedSchema, supportsInheritance, supportsMixins, supportsMultipleInheritance, templateDir, 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddImportsToOneOfInterface(List<Map<String,String>> imports)voidaddOperationToGroup(String tag, String resourcePath, io.swagger.v3.oas.models.Operation operation, CodegenOperation co, Map<String,List<CodegenOperation>> operations)Add operation to groupStringapiFilename(String templateName, String tag)DocumentationProviderFeatures.DocumentationProviderdefaultDocumentationProvider()Define the default documentation Provider for CliOpts processing.voidforceSerializationLibrary(String serializationLibrary)CodegenModelfromModel(String name, io.swagger.v3.oas.models.media.Schema model)Convert OAS Model object to Codegen Model object.StringgetHelp()StringgetName()StringgetSerializationLibrary()Serialization library.List<VendorExtension>getSupportedVendorExtensions()CodegenTypegetTag()booleangetUseOneOfDiscriminatorLookup()voidpostProcessModelProperty(CodegenModel model, CodegenProperty property)ModelsMappostProcessModels(ModelsMap objs)ModelsMappostProcessModelsEnum(ModelsMap objs)post process enum defined in model's propertiesOperationsMappostProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels)Map<String,Object>postProcessSupportingFileData(Map<String,Object> objs)voidprocessOpts()voidsetAsyncNative(boolean asyncNative)voidsetCaseInsensitiveResponseHeaders(Boolean caseInsensitiveResponseHeaders)voidsetConfigKey(String configKey)voidsetDoNotUseRx(boolean doNotUseRx)voidsetDynamicOperations(boolean dynamicOperations)voidsetErrorObjectType(String errorObjectType)voidsetGenerateClientAsBean(boolean generateClientAsBean)voidsetGradleProperties(String gradleProperties)voidsetMicroprofileFramework(String microprofileFramework)voidsetMicroprofileMutiny(boolean microprofileMutiny)voidsetParcelableModel(boolean parcelableModel)voidsetPerformBeanValidation(boolean performBeanValidation)voidsetSerializationLibrary(String serializationLibrary)voidsetSupportStreaming(boolean supportStreaming)voidsetUseAbstractionForFiles(boolean useAbstractionForFiles)voidsetUseBeanValidation(boolean useBeanValidation)voidsetUseGzipFeature(boolean useGzipFeature)voidsetUseOneOfDiscriminatorLookup(boolean useOneOfDiscriminatorLookup)voidsetUsePlayWS(boolean usePlayWS)voidsetUseReflectionEqualsHashCode(boolean useReflectionEqualsHashCode)voidsetUseRuntimeException(boolean useRuntimeException)voidsetUseRxJava(boolean useRxJava)voidsetUseRxJava2(boolean useRxJava2)voidsetUseRxJava3(boolean useRxJava3)voidsetWithAWSV4Signature(boolean withAWSV4Signature)List<DocumentationProviderFeatures.AnnotationLibrary>supportedAnnotationLibraries()Define the list of supported annotation libraries for CliOpts processing.List<DocumentationProviderFeatures.DocumentationProvider>supportedDocumentationProvider()Define the List of supported documentation Provider for CliOpts processing.StringtoApiVarName(String name)Return the variable name in the Api-
Methods inherited from class org.openapitools.codegen.languages.AbstractJavaCodegen
addAdditionPropertiesToCodeGenModel, addImports, apiDocFileFolder, apiFileFolder, apiTestFileFolder, applyJakartaPackage, applyJavaxPackage, escapeQuotationMark, escapeReservedWord, escapeUnsafeCharacters, findByName, fromOperation, getAdditionalModelTypeAnnotations, getAdditionalOneOfTypeAnnotations, getAlias, getAnnotationLibrary, getArtifactDescription, getArtifactId, getArtifactUrl, getArtifactVersion, getBooleanGetterPrefix, getDateLibrary, getDeveloperEmail, getDeveloperName, getDeveloperOrganization, getDeveloperOrganizationUrl, getDocumentationProvider, getGroupId, getInvokerPackage, getLicenseName, getLicenseUrl, getOutputTestFolder, getSchemaType, getScmConnection, getScmDeveloperConnection, getScmUrl, getSerializableModel, getSourceFolder, getterAndSetterCapitalize, getTestFolder, getTypeDeclaration, handleImplicitHeaders, isAddNullableImports, isOpenApiNullable, modelDocFileFolder, modelFileFolder, modelTestFileFolder, needToImport, postProcessAllModels, postProcessFile, preprocessOpenAPI, sanitizeTag, setAdditionalEnumTypeAnnotations, setAdditionalModelTypeAnnotations, setAdditionalOneOfTypeAnnotations, setAnnotationLibrary, setArtifactDescription, setArtifactId, setArtifactUrl, setArtifactVersion, setBooleanGetterPrefix, setCamelCaseDollarSign, setContainerDefaultToNull, setDateLibrary, setDeveloperEmail, setDeveloperName, setDeveloperOrganization, setDeveloperOrganizationUrl, setDisableHtmlEscaping, setDiscriminatorCaseSensitive, setDocumentationProvider, setGroupId, setIgnoreAnyOfInEnum, setImplicitHeaders, setImplicitHeadersRegex, setInvokerPackage, setLicenseName, setLicenseUrl, setOpenApiNullable, setOutputDir, setOutputTestFolder, setParameterExampleValue, setParameterExampleValue, setParameterExampleValue, setParentArtifactId, setParentGroupId, setParentOverridden, setParentVersion, setScmConnection, setScmDeveloperConnection, setScmUrl, setSerializableModel, setSerializeBigDecimalAsString, setSourceFolder, setSupportAsync, setSupportJava6, setTestFolder, setUseJakartaEe, setWithXml, 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, addProperties, addRegularExpressionDelimiter, addRequiredVarsMap, addSwitch, addVars, addVars, addVarsRequiredVarsAdditionalProps, apiDocFilename, apiDocTemplateFiles, apiPackage, apiTemplateFiles, apiTestFilename, apiTestTemplateFiles, buildEnumVars, buildLibraryCliOption, cliOptions, convertPropertyToBoolean, convertPropertyToBooleanAndWriteBack, createDiscriminator, defaultIncludes, defaultTemplatingEngine, embeddedTemplateDir, encodePath, escapeText, escapeTextWhileAllowingNewLines, fileSuffix, findCommonPrefixOfVars, findMethodResponse, fromCallback, fromFormProperty, fromParameter, fromProperty, fromProperty, fromProperty, fromRequestBody, fromRequestBodyToFormParameters, fromResponse, fromSecurity, fromServers, fromServerVariables, generateExamplePath, generateJSONSpecFile, generateYAMLSpecFile, generatorLanguage, generatorLanguageVersion, getAdditionalPropertiesName, getAddSuffixToDuplicateOperationNicknames, getAllModels, getAllOfDescendants, getAllowUnicodeIdentifiers, getApiNamePrefix, getApiNameSuffix, getCollectionFormat, getCollectionFormat, getConsumesInfo, getContent, getContentType, getDisallowAdditionalPropertiesIfNotPresent, getDocExtension, getEnsureUniqueParams, getEnumDefaultValue, getEnumUnknownDefaultCase, getFeatureSet, getFilesMetadataFilename, getGeneratorMetadata, getGitHost, getGitRepoId, getGitUserId, getHttpUserAgent, getIgnoreFilePathOverride, getInnerEnumAllowableValues, getInputSpec, getItemsName, getLegacyDiscriminatorBehavior, getLibrary, getModelNamePrefix, getModelNameSuffix, getModelNameToSchemaCache, getMostInnerItems, getOneOfAnyOfDescendants, getOrGenerateOperationId, getOutputDir, getParameterDataType, getPrependFormOrBodyParameters, getProducesInfo, getReleaseNote, getRemoveOperationIdPrefixCount, getRemoveOperationIdPrefixDelimiter, getSchemaAdditionalProperties, getSchemaFromBooleanOrSchema, getSchemaItems, getSingleSchemaType, getSortModelPropertiesByRequiredFlag, getSortParamsByRequiredFlag, getSymbolName, getTemplatingEngine, getTypeDeclaration, getUseInlineModelResolver, getUseOneOfInterfaces, getUseOpenAPINormalizer, getVersionMetadataFilename, handleMethodResponse, handleMethodResponse, handleSpecialCharacters, hasBodyParameter, hasFormParameter, importMapping, initializeSpecialCharacterMapping, inlineSchemaNameMapping, inlineSchemaOption, instantiationTypes, isAnyTypeSchema, isDataTypeBinary, isDataTypeFile, isDataTypeString, isEnableMinimalUpdate, isEnablePostProcessFile, isHideGenerationTimestamp, isJsonMimeType, isJsonVendorMimeType, isLibrary, isParameterNameUnique, isPropertyInnerMostEnum, isRemoveEnumValuePrefix, isRemoveOperationIdPrefix, isReservedWord, isSkipOperationExample, isSkipOverwrite, isStrictSpecBehavior, isXmlMimeType, languageSpecificPrimitives, lowerCamelCase, modelDocTemplateFiles, modelFilename, modelNameMapping, modelPackage, modelTemplateFiles, modelTestTemplateFiles, modifyFeatureSet, nameMapping, openapiNormalizer, outputFolder, parameterNameMapping, postProcess, postProcessParameter, processCompiler, processOpenAPI, processTemplatingEngine, processTestExampleData, removeImport, removeNonNameElementToCamelCase, removeNonNameElementToCamelCase, removeOption, removeSelfReferenceImports, reservedWords, reservedWordsMappings, sanitizeName, sanitizeName, sanitizeName, schemaMapping, serverVariableOverrides, setAddProps, setAllowUnicodeIdentifiers, setApiNamePrefix, setApiNameSuffix, setApiPackage, setCircularReferences, setDisallowAdditionalPropertiesIfNotPresent, setDocExtension, setEnableMinimalUpdate, setEnablePostProcessFile, setEnsureUniqueParams, setEnumUnknownDefaultCase, setFilesMetadataFilename, setGitHost, setGitRepoId, setGitUserId, setHideGenerationTimestamp, setHttpUserAgent, setIgnoreFilePathOverride, setInputSpec, setLegacyDiscriminatorBehavior, setLibrary, setModelNamePrefix, setModelNameSuffix, setModelPackage, setNonArrayMapProperty, setOpenAPI, setParameterBooleanFlagWithCodegenProperty, setParameterEncodingValues, setParameterExamples, setParameterNullable, setPrependFormOrBodyParameters, setReleaseNote, setRemoveEnumValuePrefix, setRemoveOperationIdPrefix, setRemoveOperationIdPrefixCount, setRemoveOperationIdPrefixDelimiter, setReservedWordsLowerCase, setSkipOperationExample, setSkipOverwrite, setSortModelPropertiesByRequiredFlag, setSortParamsByRequiredFlag, setStrictSpecBehavior, setTemplateDir, setTemplatingEngine, setUseOneOfInterfaces, setVersionMetadataFilename, shouldAddImport, shouldOverwrite, supportedLibraries, supportingFiles, templateDir, testPackage, toAllOfName, toAnyOfName, toApiImport, toApiName, toArrayModelParamName, toDefaultParameterValue, toDefaultValue, toDefaultValueWithParam, 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, 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.CodegenConfig
additionalProperties, apiDocFilename, apiDocTemplateFiles, apiPackage, apiTemplateFiles, apiTestFilename, apiTestTemplateFiles, cliOptions, defaultIncludes, defaultTemplatingEngine, embeddedTemplateDir, encodePath, escapeText, escapeTextWhileAllowingNewLines, fileSuffix, fromSecurity, fromServers, fromServerVariables, generateExamplePath, generatorLanguage, generatorLanguageVersion, getAddSuffixToDuplicateOperationNicknames, getDocExtension, getFeatureSet, getFilesMetadataFilename, getGeneratorMetadata, getGitHost, getGitRepoId, getGitUserId, getHttpUserAgent, getIgnoreFilePathOverride, getInputSpec, getLibrary, getOutputDir, getReleaseNote, getTemplatingEngine, getTypeDeclaration, getUseInlineModelResolver, getUseOpenAPINormalizer, getVersionMetadataFilename, importMapping, inlineSchemaNameMapping, inlineSchemaOption, instantiationTypes, isEnableMinimalUpdate, isEnablePostProcessFile, isHideGenerationTimestamp, isRemoveEnumValuePrefix, isRemoveOperationIdPrefix, isSkipOperationExample, isSkipOverwrite, isStrictSpecBehavior, languageSpecificPrimitives, modelDocTemplateFiles, modelFilename, modelNameMapping, modelPackage, modelTemplateFiles, modelTestTemplateFiles, nameMapping, openapiNormalizer, outputFolder, parameterNameMapping, postProcess, postProcessParameter, 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, setStrictSpecBehavior, setTemplatingEngine, shouldOverwrite, supportedLibraries, supportingFiles, templateDir, testPackage, toApiImport, toApiName, toGetter, toModelImport, toModelImportMap, toSetter, typeMapping, unaliasSchema, updateAllModels, vendorExtensions
-
-
-
-
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
-
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
-
GOOGLE_API_CLIENT
public static final String GOOGLE_API_CLIENT
- See Also:
- Constant Field Values
-
JERSEY1
public static final String JERSEY1
- 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
-
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
-
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
-
microprofileMutiny
protected boolean microprofileMutiny
-
configKey
protected String configKey
-
asyncNative
protected boolean asyncNative
-
parcelableModel
protected boolean parcelableModel
-
useBeanValidation
protected boolean useBeanValidation
-
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
-
authFolder
protected String authFolder
-
serializationLibrary
protected String serializationLibrary
-
useOneOfDiscriminatorLookup
protected boolean useOneOfDiscriminatorLookup
-
rootJavaEEPackage
protected String rootJavaEEPackage
-
mpRestClientVersions
protected Map<String,org.openapitools.codegen.languages.JavaClientCodegen.MpRestClientVersion> mpRestClientVersions
-
useSingleRequestParameter
protected boolean useSingleRequestParameter
-
webclientBlockingOperations
protected boolean webclientBlockingOperations
-
generateClientAsBean
protected boolean generateClientAsBean
-
-
Method Detail
-
defaultDocumentationProvider
public DocumentationProviderFeatures.DocumentationProvider defaultDocumentationProvider()
Description copied from interface:DocumentationProviderFeaturesDefine the default documentation Provider for CliOpts processing. A NULL return value will disable the documentation provider support. Override in subclasses to customize.- Specified by:
defaultDocumentationProviderin interfaceDocumentationProviderFeatures- Returns:
- the default documentation provider
-
supportedDocumentationProvider
public List<DocumentationProviderFeatures.DocumentationProvider> supportedDocumentationProvider()
Description copied from interface:DocumentationProviderFeaturesDefine the List of supported documentation Provider for CliOpts processing. Override in subclasses to customize.- Specified by:
supportedDocumentationProviderin interfaceDocumentationProviderFeatures- Returns:
- the list of supported documentation provider
-
supportedAnnotationLibraries
public List<DocumentationProviderFeatures.AnnotationLibrary> supportedAnnotationLibraries()
Description copied from interface:DocumentationProviderFeaturesDefine the list of supported annotation libraries for CliOpts processing. Override in subclasses to customize.- Specified by:
supportedAnnotationLibrariesin interfaceDocumentationProviderFeatures- Returns:
- the list of supported annotation libraries
-
getTag
public CodegenType getTag()
- Specified by:
getTagin interfaceCodegenConfig- Overrides:
getTagin classDefaultCodegen
-
getName
public String getName()
- Specified by:
getNamein interfaceCodegenConfig- Overrides:
getNamein classDefaultCodegen
-
getHelp
public String getHelp()
- Specified by:
getHelpin interfaceCodegenConfig- Overrides:
getHelpin 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:DefaultCodegenAdd operation to group- Specified by:
addOperationToGroupin interfaceCodegenConfig- Overrides:
addOperationToGroupin 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:
processOptsin interfaceCodegenConfig- Overrides:
processOptsin classAbstractJavaCodegen
-
postProcessOperationsWithModels
public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<ModelMap> allModels)
- Specified by:
postProcessOperationsWithModelsin interfaceCodegenConfig- Overrides:
postProcessOperationsWithModelsin classAbstractJavaCodegen
-
apiFilename
public String apiFilename(String templateName, String tag)
- Specified by:
apiFilenamein interfaceCodegenConfig- Overrides:
apiFilenamein classDefaultCodegen
-
postProcessModelProperty
public void postProcessModelProperty(CodegenModel model, CodegenProperty property)
- Specified by:
postProcessModelPropertyin interfaceCodegenConfig- Overrides:
postProcessModelPropertyin classAbstractJavaCodegen
-
fromModel
public CodegenModel fromModel(String name, io.swagger.v3.oas.models.media.Schema model)
Description copied from class:DefaultCodegenConvert OAS Model object to Codegen Model object.- Specified by:
fromModelin interfaceCodegenConfig- Overrides:
fromModelin 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:DefaultCodegenpost process enum defined in model's properties- Overrides:
postProcessModelsEnumin classDefaultCodegen- Parameters:
objs- Map of models- Returns:
- maps of models with better enum support
-
postProcessModels
public ModelsMap postProcessModels(ModelsMap objs)
- Specified by:
postProcessModelsin interfaceCodegenConfig- Overrides:
postProcessModelsin classAbstractJavaCodegen
-
setUseOneOfDiscriminatorLookup
public void setUseOneOfDiscriminatorLookup(boolean useOneOfDiscriminatorLookup)
-
getUseOneOfDiscriminatorLookup
public boolean getUseOneOfDiscriminatorLookup()
-
setUseRxJava
public void setUseRxJava(boolean useRxJava)
-
setUseRxJava2
public void setUseRxJava2(boolean useRxJava2)
-
setUseRxJava3
public void setUseRxJava3(boolean useRxJava3)
-
setDoNotUseRx
public void setDoNotUseRx(boolean doNotUseRx)
-
setUsePlayWS
public void setUsePlayWS(boolean usePlayWS)
-
setAsyncNative
public void setAsyncNative(boolean asyncNative)
-
setMicroprofileFramework
public void setMicroprofileFramework(String microprofileFramework)
-
setMicroprofileMutiny
public void setMicroprofileMutiny(boolean microprofileMutiny)
-
setConfigKey
public void setConfigKey(String configKey)
-
setParcelableModel
public void setParcelableModel(boolean parcelableModel)
-
setUseBeanValidation
public void setUseBeanValidation(boolean useBeanValidation)
- Specified by:
setUseBeanValidationin interfaceBeanValidationFeatures
-
setPerformBeanValidation
public void setPerformBeanValidation(boolean performBeanValidation)
- Specified by:
setPerformBeanValidationin interfacePerformBeanValidationFeatures
-
setUseGzipFeature
public void setUseGzipFeature(boolean useGzipFeature)
- Specified by:
setUseGzipFeaturein interfaceGzipFeatures
-
setUseRuntimeException
public void setUseRuntimeException(boolean useRuntimeException)
-
setUseReflectionEqualsHashCode
public void setUseReflectionEqualsHashCode(boolean useReflectionEqualsHashCode)
-
setCaseInsensitiveResponseHeaders
public void setCaseInsensitiveResponseHeaders(Boolean caseInsensitiveResponseHeaders)
-
setUseAbstractionForFiles
public void setUseAbstractionForFiles(boolean useAbstractionForFiles)
-
setDynamicOperations
public void setDynamicOperations(boolean dynamicOperations)
-
setSupportStreaming
public void setSupportStreaming(boolean supportStreaming)
-
setWithAWSV4Signature
public void setWithAWSV4Signature(boolean withAWSV4Signature)
-
setGradleProperties
public void setGradleProperties(String gradleProperties)
-
setErrorObjectType
public void setErrorObjectType(String errorObjectType)
-
setGenerateClientAsBean
public void setGenerateClientAsBean(boolean generateClientAsBean)
-
getSerializationLibrary
public String getSerializationLibrary()
Serialization library.- Returns:
- 'gson' or 'jackson'
-
setSerializationLibrary
public void setSerializationLibrary(String serializationLibrary)
-
forceSerializationLibrary
public void forceSerializationLibrary(String serializationLibrary)
-
postProcessSupportingFileData
public Map<String,Object> postProcessSupportingFileData(Map<String,Object> objs)
- Specified by:
postProcessSupportingFileDatain interfaceCodegenConfig- Overrides:
postProcessSupportingFileDatain classDefaultCodegen
-
toApiVarName
public String toApiVarName(String name)
Description copied from class:DefaultCodegenReturn the variable name in the Api- Specified by:
toApiVarNamein interfaceCodegenConfig- Overrides:
toApiVarNamein 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:
addImportsToOneOfInterfacein classAbstractJavaCodegen
-
getSupportedVendorExtensions
public List<VendorExtension> getSupportedVendorExtensions()
- Specified by:
getSupportedVendorExtensionsin interfaceCodegenConfig- Overrides:
getSupportedVendorExtensionsin classAbstractJavaCodegen
-
-