public class StaticHtmlGenerator extends DefaultCodegen implements CodegenConfig
Modifier and Type | Field and Description |
---|---|
protected String |
artifactId |
protected String |
artifactVersion |
protected String |
groupId |
protected String |
invokerPackage |
protected String |
sourceFolder |
additionalProperties, apiPackage, apiTemplateFiles, cliOptions, defaultIncludes, embeddedTemplateDir, ensureUniqueParams, fileSuffix, importMapping, instantiationTypes, languageSpecificPrimitives, library, LOGGER, modelPackage, modelTemplateFiles, outputFolder, reservedWords, skipOverwrite, sortParamsByRequiredFlag, supportedLibraries, supportingFiles, supportsInheritance, templateDir, typeMapping
Constructor and Description |
---|
StaticHtmlGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addOperationToGroup(String tag,
String resourcePath,
io.swagger.models.Operation operation,
CodegenOperation co,
Map<String,List<CodegenOperation>> operations)
Add operation to group
|
String |
getHelp() |
String |
getName() |
CodegenType |
getTag() |
String |
getTypeDeclaration(io.swagger.models.properties.Property p)
Output the type declaration of the property
|
Map<String,Object> |
postProcessOperations(Map<String,Object> objs) |
additionalProperties, apiFileFolder, apiFilename, apiPackage, apiTemplateFiles, buildLibraryCliOption, camelize, camelize, cliOptions, dashize, defaultIncludes, embeddedTemplateDir, escapeReservedWord, escapeText, fileSuffix, fromModel, fromModel, fromOperation, fromOperation, fromParameter, fromProperty, fromResponse, fromSecurity, generateExamplePath, getLibrary, getOrGenerateOperationId, getOutputDir, getSwaggerType, getterAndSetterCapitalize, getTypeDeclaration, importMapping, initialCaps, instantiationTypes, isSkipOverwrite, languageSpecificPrimitives, modelFileFolder, 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, toDefaultValue, toDefaultValueWithParam, toEnumName, toExamples, toInstantiationType, toModelFilename, toModelImport, toModelName, toOperationId, toParamName, toVarName, typeMapping, underscore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
additionalProperties, apiFileFolder, apiFilename, apiPackage, apiTemplateFiles, cliOptions, defaultIncludes, embeddedTemplateDir, escapeReservedWord, escapeText, fileSuffix, fromModel, fromModel, fromOperation, fromOperation, fromSecurity, generateExamplePath, getLibrary, getOutputDir, getTypeDeclaration, importMapping, instantiationTypes, isSkipOverwrite, languageSpecificPrimitives, modelFileFolder, 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, toParamName, typeMapping
protected String invokerPackage
protected String groupId
protected String artifactId
protected String artifactVersion
protected String sourceFolder
public CodegenType getTag()
getTag
in interface CodegenConfig
public String getName()
getName
in interface CodegenConfig
public String getHelp()
getHelp
in interface CodegenConfig
public String getTypeDeclaration(io.swagger.models.properties.Property p)
DefaultCodegen
getTypeDeclaration
in interface CodegenConfig
getTypeDeclaration
in class DefaultCodegen
p
- Swagger Property objectpublic Map<String,Object> postProcessOperations(Map<String,Object> objs)
postProcessOperations
in interface CodegenConfig
postProcessOperations
in class DefaultCodegen
public void addOperationToGroup(String tag, String resourcePath, io.swagger.models.Operation operation, CodegenOperation co, Map<String,List<CodegenOperation>> operations)
DefaultCodegen
addOperationToGroup
in interface CodegenConfig
addOperationToGroup
in class DefaultCodegen
tag
- name of the tagresourcePath
- path of the resourceoperation
- Swagger Operation objectco
- Codegen Operation objectoperations
- map of Codegen operationsCopyright © 2016. All rights reserved.