public class AkkaScalaClientCodegen extends DefaultCodegen implements CodegenConfig
Modifier and Type | Field and Description |
---|---|
protected String |
artifactId |
protected String |
artifactVersion |
protected String |
configKey |
protected String |
configKeyPath |
protected int |
defaultTimeoutInMs |
protected String |
groupId |
protected String |
invokerPackage |
protected String |
mainPackage |
protected boolean |
onlyOneSuccess
If set to true, only the default response (the one with le lowest 2XX code) will be considered as a success, and all
others as ApiErrors.
|
protected boolean |
registerNonStandardStatusCodes |
protected boolean |
removeOAuthSecurities |
protected boolean |
renderJavadoc |
protected String |
resourcesFolder |
protected String |
sourceFolder |
additionalProperties, apiPackage, apiTemplateFiles, cliOptions, defaultIncludes, embeddedTemplateDir, ensureUniqueParams, fileSuffix, importMapping, instantiationTypes, languageSpecificPrimitives, library, modelPackage, modelTemplateFiles, outputFolder, reservedWords, skipOverwrite, sortParamsByRequiredFlag, supportedLibraries, supportingFiles, supportsInheritance, templateDir, typeMapping
Constructor and Description |
---|
AkkaScalaClientCodegen() |
Modifier and Type | Method and Description |
---|---|
String |
apiFileFolder() |
String |
escapeReservedWord(String name)
Return the escaped name of the reserved word
|
List<CodegenSecurity> |
fromSecurity(Map<String,io.swagger.models.auth.SecuritySchemeDefinition> schemes)
Convert map of Swagger SecuritySchemeDefinition objects to a list of Codegen Security objects
|
String |
getHelp() |
String |
getName() |
String |
getSwaggerType(io.swagger.models.properties.Property p)
returns the swagger type for the property
|
CodegenType |
getTag() |
String |
getTypeDeclaration(io.swagger.models.properties.Property p)
Output the type declaration of the property
|
String |
modelFileFolder() |
Map<String,Object> |
postProcessOperations(Map<String,Object> objs) |
String |
toDefaultValue(io.swagger.models.properties.Property p)
Return the default value of the property
|
String |
toEnumName(CodegenProperty property)
Return the Enum name (e.g.
|
String |
toInstantiationType(io.swagger.models.properties.Property p)
Return the instantiation type of the property, especially for map and array
|
String |
toOperationId(String operationId)
Return the operation ID (method name)
|
String |
toParamName(String name)
Return the parameter name by removing invalid characters and proper escaping if
it's a reserved word.
|
String |
toVarName(String name)
Return the variable name by removing invalid characters and proper escaping if
it's a reserved word.
|
additionalProperties, addOperationToGroup, apiFilename, apiPackage, apiTemplateFiles, buildLibraryCliOption, camelize, camelize, cliOptions, dashize, defaultIncludes, embeddedTemplateDir, escapeText, fileSuffix, fromModel, fromModel, fromOperation, fromOperation, fromParameter, fromProperty, fromResponse, generateExamplePath, getLibrary, getOrGenerateOperationId, getOutputDir, getterAndSetterCapitalize, getTypeDeclaration, importMapping, initialCaps, instantiationTypes, isSkipOverwrite, languageSpecificPrimitives, modelPackage, modelTemplateFiles, needToImport, outputFolder, postProcessModelProperty, postProcessModels, postProcessParameter, postProcessSupportingFileData, preprocessSwagger, processOpts, processSwagger, removeNonNameElementToCamelCase, reservedWords, sanitizeName, setApiPackage, setEnsureUniqueParams, setLibrary, setModelPackage, setNonArrayMapProperty, setOutputDir, setSkipOverwrite, setSortParamsByRequiredFlag, setTemplateDir, shouldOverwrite, snakeCase, supportedLibraries, supportingFiles, templateDir, toApiFilename, toApiImport, toApiName, toApiVarName, toDefaultValueWithParam, toExamples, toModelFilename, toModelImport, toModelName, typeMapping, underscore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
additionalProperties, addOperationToGroup, apiFilename, apiPackage, apiTemplateFiles, cliOptions, defaultIncludes, embeddedTemplateDir, escapeText, fileSuffix, fromModel, fromModel, fromOperation, fromOperation, generateExamplePath, getLibrary, getOutputDir, getTypeDeclaration, importMapping, instantiationTypes, isSkipOverwrite, languageSpecificPrimitives, modelPackage, modelTemplateFiles, outputFolder, postProcessModelProperty, postProcessModels, postProcessParameter, postProcessSupportingFileData, preprocessSwagger, processOpts, processSwagger, reservedWords, setLibrary, setOutputDir, setSkipOverwrite, shouldOverwrite, supportedLibraries, supportingFiles, templateDir, toApiFilename, toApiImport, toApiName, toApiVarName, toModelFilename, toModelImport, toModelName, typeMapping
protected String mainPackage
protected String invokerPackage
protected String groupId
protected String artifactId
protected String artifactVersion
protected String sourceFolder
protected String resourcesFolder
protected String configKey
protected int defaultTimeoutInMs
protected String configKeyPath
protected boolean registerNonStandardStatusCodes
protected boolean renderJavadoc
protected boolean removeOAuthSecurities
protected boolean onlyOneSuccess
public CodegenType getTag()
getTag
in interface CodegenConfig
public String getName()
getName
in interface CodegenConfig
public String getHelp()
getHelp
in interface CodegenConfig
public String escapeReservedWord(String name)
DefaultCodegen
escapeReservedWord
in interface CodegenConfig
escapeReservedWord
in class DefaultCodegen
name
- the name to be escapedpublic String apiFileFolder()
apiFileFolder
in interface CodegenConfig
apiFileFolder
in class DefaultCodegen
public String modelFileFolder()
modelFileFolder
in interface CodegenConfig
modelFileFolder
in class DefaultCodegen
public Map<String,Object> postProcessOperations(Map<String,Object> objs)
postProcessOperations
in interface CodegenConfig
postProcessOperations
in class DefaultCodegen
public String getTypeDeclaration(io.swagger.models.properties.Property p)
DefaultCodegen
getTypeDeclaration
in interface CodegenConfig
getTypeDeclaration
in class DefaultCodegen
p
- Swagger Property objectpublic List<CodegenSecurity> fromSecurity(Map<String,io.swagger.models.auth.SecuritySchemeDefinition> schemes)
DefaultCodegen
fromSecurity
in interface CodegenConfig
fromSecurity
in class DefaultCodegen
schemes
- a map of Swagger SecuritySchemeDefinition objectpublic String toOperationId(String operationId)
DefaultCodegen
toOperationId
in class DefaultCodegen
operationId
- operation IDpublic String toParamName(String name)
DefaultCodegen
toParamName
in interface CodegenConfig
toParamName
in class DefaultCodegen
name
- Codegen property objectpublic String toVarName(String name)
DefaultCodegen
toVarName
in class DefaultCodegen
name
- the variable namepublic String toEnumName(CodegenProperty property)
DefaultCodegen
toEnumName
in class DefaultCodegen
property
- Codegen property objectpublic String getSwaggerType(io.swagger.models.properties.Property p)
DefaultCodegen
getSwaggerType
in class DefaultCodegen
p
- Swagger property objectpublic String toInstantiationType(io.swagger.models.properties.Property p)
DefaultCodegen
toInstantiationType
in class DefaultCodegen
p
- Swagger property objectpublic String toDefaultValue(io.swagger.models.properties.Property p)
DefaultCodegen
toDefaultValue
in class DefaultCodegen
p
- Swagger property objectCopyright © 2016. All rights reserved.