public class DefaultGenerator extends AbstractGenerator implements Generator
Modifier and Type | Field and Description |
---|---|
protected CodegenConfig |
config |
protected CodegenIgnoreProcessor |
ignoreProcessor |
protected org.slf4j.Logger |
LOGGER |
protected ClientOptInput |
opts |
protected io.swagger.models.Swagger |
swagger |
Constructor and Description |
---|
DefaultGenerator() |
Modifier and Type | Method and Description |
---|---|
io.swagger.models.auth.SecuritySchemeDefinition |
fromSecurity(String name) |
List<File> |
generate() |
Generator |
opts(ClientOptInput opts) |
Map<String,Object> |
processModels(CodegenConfig config,
Map<String,io.swagger.models.Model> definitions,
Map<String,io.swagger.models.Model> allDefinitions) |
void |
processOperation(String resourcePath,
String httpMethod,
io.swagger.models.Operation operation,
Map<String,List<CodegenOperation>> operations,
io.swagger.models.Path path) |
Map<String,Object> |
processOperations(CodegenConfig config,
String tag,
List<CodegenOperation> ops) |
Map<String,List<CodegenOperation>> |
processPaths(Map<String,io.swagger.models.Path> paths) |
embeddedTemplateExists, getCPResourcePath, getFullTemplateFile, getTemplateReader, readResourceContents, readTemplate, writeToFile
protected org.slf4j.Logger LOGGER
protected CodegenConfig config
protected ClientOptInput opts
protected io.swagger.models.Swagger swagger
protected CodegenIgnoreProcessor ignoreProcessor
public Generator opts(ClientOptInput opts)
public Map<String,List<CodegenOperation>> processPaths(Map<String,io.swagger.models.Path> paths)
public io.swagger.models.auth.SecuritySchemeDefinition fromSecurity(String name)
public void processOperation(String resourcePath, String httpMethod, io.swagger.models.Operation operation, Map<String,List<CodegenOperation>> operations, io.swagger.models.Path path)
public Map<String,Object> processOperations(CodegenConfig config, String tag, List<CodegenOperation> ops)
Copyright © 2016. All rights reserved.