io.swagger.codegen.config.CodegenConfigurator Java Examples
The following examples show how to use
io.swagger.codegen.config.CodegenConfigurator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SwaggerToJavaGenerator.java From msf4j with Apache License 2.0 | 4 votes |
private void setSystemProperties(CodegenConfigurator configurator) { final Map<String, String> map = createMapFromKeyValuePairs(systemProperties); for (Map.Entry<String, String> entry : map.entrySet()) { configurator.addSystemProperty(entry.getKey(), entry.getValue()); } }
Example #2
Source File: SwaggerToJavaGenerator.java From msf4j with Apache License 2.0 | 4 votes |
private void setInstantiationTypes(CodegenConfigurator configurator) { final Map<String, String> map = createMapFromKeyValuePairs(instantiationTypes); for (Map.Entry<String, String> entry : map.entrySet()) { configurator.addInstantiationType(entry.getKey(), entry.getValue()); } }
Example #3
Source File: SwaggerToJavaGenerator.java From msf4j with Apache License 2.0 | 4 votes |
private void setImportMappings(CodegenConfigurator configurator) { final Map<String, String> map = createMapFromKeyValuePairs(importMappings); for (Map.Entry<String, String> entry : map.entrySet()) { configurator.addImportMapping(entry.getKey(), entry.getValue()); } }
Example #4
Source File: SwaggerToJavaGenerator.java From msf4j with Apache License 2.0 | 4 votes |
private void setTypeMappings(CodegenConfigurator configurator) { final Map<String, String> map = createMapFromKeyValuePairs(typeMappings); for (Map.Entry<String, String> entry : map.entrySet()) { configurator.addTypeMapping(entry.getKey(), entry.getValue()); } }
Example #5
Source File: SwaggerToJavaGenerator.java From msf4j with Apache License 2.0 | 4 votes |
private void setAdditionalProperties(CodegenConfigurator configurator) { final Map<String, String> map = createMapFromKeyValuePairs(additionalProperties); for (Map.Entry<String, String> entry : map.entrySet()) { configurator.addAdditionalProperty(entry.getKey(), entry.getValue()); } }
Example #6
Source File: SwaggerToJavaGenerator.java From msf4j with Apache License 2.0 | 4 votes |
private void setLanguageSpecificPrimitives(CodegenConfigurator configurator) { final Set<String> set = createSetFromCsvList(languageSpecificPrimitives); for (String item : set) { configurator.addLanguageSpecificPrimitive(item); } }