public class Qt5CPPGenerator extends DefaultCodegen implements CodegenConfig
Modifier and Type | Field and Description |
---|---|
protected String |
apiVersion |
protected Set<String> |
foundationClasses |
protected Map<String,String> |
namespaces |
protected String |
PREFIX |
protected String |
sourceFolder |
protected Set<String> |
systemIncludes |
additionalProperties, apiPackage, apiTemplateFiles, cliOptions, defaultIncludes, fileSuffix, importMapping, instantiationTypes, languageSpecificPrimitives, modelPackage, modelTemplateFiles, outputFolder, reservedWords, supportingFiles, templateDir, typeMapping
Constructor and Description |
---|
Qt5CPPGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
apiFileFolder()
Location to write api files.
|
String |
escapeReservedWord(String name)
Escapes a reserved word as defined in the `reservedWords` array.
|
String |
getHelp()
Returns human-friendly help for the generator.
|
String |
getName()
Configures a friendly name for the generator.
|
String |
getSwaggerType(io.swagger.models.properties.Property p)
Optional - swagger type conversion.
|
CodegenType |
getTag()
Configures the type of generator.
|
String |
getTypeDeclaration(io.swagger.models.properties.Property p)
Optional - type declaration.
|
String |
modelFileFolder()
Location to write model files.
|
String |
toApiFilename(String name) |
String |
toApiName(String type) |
String |
toDefaultValue(io.swagger.models.properties.Property p) |
String |
toModelFilename(String name) |
String |
toModelImport(String name) |
String |
toModelName(String type) |
additionalProperties, addOperationToGroup, apiFilename, apiPackage, apiTemplateFiles, camelize, camelize, cliOptions, defaultIncludes, escapeText, fileSuffix, fromModel, fromOperation, fromParameter, fromProperty, fromResponse, fromSecurity, generateExamplePath, getOutputDir, getterAndSetterCapitalize, getTypeDeclaration, importMapping, initialCaps, instantiationTypes, languageSpecificPrimitives, modelPackage, modelTemplateFiles, outputFolder, postProcessModels, postProcessOperations, postProcessSupportingFileData, processOpts, processSwagger, removeNonNameElementToCamelCase, reservedWords, setApiPackage, setModelPackage, setNonArrayMapProperty, setOutputDir, setTemplateDir, shouldOverwrite, snakeCase, supportingFiles, templateDir, toApiImport, toApiVarName, toEnumName, toExamples, toInstantiationType, toOperationId, toParamName, toVarName, typeMapping, underscore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
additionalProperties, addOperationToGroup, apiFilename, apiPackage, apiTemplateFiles, cliOptions, defaultIncludes, escapeText, fileSuffix, fromModel, fromOperation, fromSecurity, generateExamplePath, getOutputDir, getTypeDeclaration, importMapping, instantiationTypes, modelPackage, modelTemplateFiles, outputFolder, postProcessModels, postProcessOperations, postProcessSupportingFileData, processOpts, processSwagger, reservedWords, setOutputDir, shouldOverwrite, supportingFiles, templateDir, toApiImport, toApiVarName, toParamName, typeMapping
protected final String PREFIX
protected String sourceFolder
protected String apiVersion
public CodegenType getTag()
getTag
in interface CodegenConfig
CodegenType
public String getName()
getName
in interface CodegenConfig
public String getHelp()
getHelp
in interface CodegenConfig
public String toModelImport(String name)
toModelImport
in interface CodegenConfig
toModelImport
in class DefaultCodegen
public String escapeReservedWord(String name)
escapeReservedWord
in interface CodegenConfig
escapeReservedWord
in class DefaultCodegen
public String modelFileFolder()
modelFileFolder
in interface CodegenConfig
modelFileFolder
in class DefaultCodegen
public String apiFileFolder()
apiFileFolder
in interface CodegenConfig
apiFileFolder
in class DefaultCodegen
public String toModelFilename(String name)
toModelFilename
in interface CodegenConfig
toModelFilename
in class DefaultCodegen
public String toApiFilename(String name)
toApiFilename
in interface CodegenConfig
toApiFilename
in class DefaultCodegen
public String getTypeDeclaration(io.swagger.models.properties.Property p)
getTypeDeclaration
in interface CodegenConfig
getTypeDeclaration
in class DefaultCodegen
public String toDefaultValue(io.swagger.models.properties.Property p)
toDefaultValue
in class DefaultCodegen
public String getSwaggerType(io.swagger.models.properties.Property p)
getSwaggerType
in class DefaultCodegen
Property
public String toModelName(String type)
toModelName
in interface CodegenConfig
toModelName
in class DefaultCodegen
public String toApiName(String type)
toApiName
in interface CodegenConfig
toApiName
in class DefaultCodegen
Copyright © 2015. All Rights Reserved.