public class DefaultCodegen extends Object
Constructor and Description |
---|
DefaultCodegen()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel,
io.swagger.models.ModelImpl swaggerModel) |
protected void |
addImport(CodegenModel m,
String type) |
Map<String,Object> |
additionalProperties() |
void |
addOperationToGroup(String tag,
String resourcePath,
io.swagger.models.Operation operation,
CodegenOperation co,
Map<String,List<CodegenOperation>> operations)
Add operation to group
|
protected void |
addProperties(Map<String,io.swagger.models.properties.Property> properties,
List<String> required,
io.swagger.models.Model model,
Map<String,io.swagger.models.Model> allDefinitions) |
String |
addRegularExpressionDelimiter(String pattern)
If the pattern misses the delimiter, add "/" to the beginning and end
Otherwise, return the original pattern
|
String |
apiDocFileFolder() |
String |
apiDocFilename(String templateName,
String tag)
Return the full path and API documentation file
|
Map<String,String> |
apiDocTemplateFiles() |
String |
apiFileFolder() |
String |
apiFilename(String templateName,
String tag) |
String |
apiPackage() |
Map<String,String> |
apiTemplateFiles() |
String |
apiTestFileFolder() |
String |
apiTestFilename(String templateName,
String tag)
Return the full path and API test file
|
Map<String,String> |
apiTestTemplateFiles() |
protected CliOption |
buildLibraryCliOption(Map<String,String> supportedLibraries) |
static String |
camelize(String word)
Camelize name (parameter, property, method, etc) with upper case for first letter
copied from Twitter elephant bird
https://github.com/twitter/elephant-bird/blob/master/core/src/main/java/com/twitter/elephantbird/util/Strings.java
|
static String |
camelize(String word,
boolean lowercaseFirstLetter)
Camelize name (parameter, property, method, etc)
|
List<CliOption> |
cliOptions() |
boolean |
convertPropertyToBoolean(String propertyKey) |
boolean |
convertPropertyToBooleanAndWriteBack(String propertyKey)
reads propertyKey from additionalProperties, converts it to a boolean and
writes it back to additionalProperties to be usable as a boolean in
mustache files.
|
protected String |
dashize(String word)
Dashize the given word.
|
Set<String> |
defaultIncludes() |
String |
embeddedTemplateDir() |
String |
escapeQuotationMark(String input)
Escape single and/or double quote to avoid code injection
|
String |
escapeReservedWord(String name)
Return the escaped name of the reserved word
|
String |
escapeText(String input) |
String |
escapeUnsafeCharacters(String input)
override with any special text escaping logic to handle unsafe
characters so as to avoid code injection
|
String |
fileSuffix() |
String |
findCommonPrefixOfVars(List<Object> vars)
Returns the common prefix of variables for enum naming
|
protected io.swagger.models.Response |
findMethodResponse(Map<String,io.swagger.models.Response> responses)
Override with any special handling of response codes
|
CodegenModel |
fromModel(String name,
io.swagger.models.Model model)
Convert Swagger Model object to Codegen Model object without providing all model definitions
|
CodegenModel |
fromModel(String name,
io.swagger.models.Model model,
Map<String,io.swagger.models.Model> allDefinitions)
Convert Swagger Model object to Codegen Model object
|
CodegenOperation |
fromOperation(String path,
String httpMethod,
io.swagger.models.Operation operation,
Map<String,io.swagger.models.Model> definitions)
Convert Swagger Operation object to Codegen Operation object (without providing a Swagger object)
|
CodegenOperation |
fromOperation(String path,
String httpMethod,
io.swagger.models.Operation operation,
Map<String,io.swagger.models.Model> definitions,
io.swagger.models.Swagger swagger)
Convert Swagger Operation object to Codegen Operation object
|
CodegenParameter |
fromParameter(io.swagger.models.parameters.Parameter param,
Set<String> imports)
Convert Swagger Parameter object to Codegen Parameter object
|
CodegenProperty |
fromProperty(String name,
io.swagger.models.properties.Property p)
Convert Swagger Property object to Codegen Property object
|
CodegenResponse |
fromResponse(String responseCode,
io.swagger.models.Response response)
Convert Swagger Response object to Codegen Response object
|
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 |
generateExamplePath(String path,
io.swagger.models.Operation operation)
Return the example path
|
String |
getAlias(String name)
Determine the type alias for the given type if it exists.
|
String |
getCommonTemplateDir() |
String |
getGitRepoId()
Git repo ID
|
String |
getGitUserId()
Git user ID
|
String |
getHttpUserAgent()
HTTP user agent
|
String |
getIgnoreFilePathOverride()
Provides an override location, if any is specified, for the .swagger-codegen-ignore.
|
protected Map<String,Object> |
getInnerEnumAllowableValues(CodegenProperty property) |
String |
getInputSpec() |
String |
getLibrary()
Library template (sub-template).
|
protected String |
getOrGenerateOperationId(io.swagger.models.Operation operation,
String path,
String httpMethod)
Get operationId from the operation object, and if it's blank, generate a new one from the given parameters.
|
String |
getOutputDir() |
String |
getReleaseNote()
Release note
|
String |
getSwaggerType(io.swagger.models.properties.Property p)
returns the swagger type for the property
|
protected String |
getSymbolName(String input)
Return the symbol name of a symbol
|
String |
getterAndSetterCapitalize(String name)
Camelize the method name of the getter and setter
|
String |
getTypeDeclaration(io.swagger.models.properties.Property p)
Output the type declaration of the property
|
String |
getTypeDeclaration(String name)
Output the type declaration of a given name
|
Map<String,String> |
importMapping() |
protected void |
initalizeSpecialCharacterMapping()
Initialize special character mapping
|
String |
initialCaps(String name)
Capitalize the string
|
Map<String,String> |
instantiationTypes() |
boolean |
isDataTypeBinary(String dataType) |
boolean |
isDataTypeFile(String dataType) |
protected Boolean |
isPropertyInnerMostEnum(CodegenProperty property)
Update property for map container
|
boolean |
isRemoveOperationIdPrefix() |
protected boolean |
isReservedWord(String word) |
boolean |
isSkipOverwrite() |
Set<String> |
languageSpecificPrimitives() |
String |
modelDocFileFolder() |
Map<String,String> |
modelDocTemplateFiles() |
String |
modelFileFolder() |
String |
modelPackage() |
Map<String,String> |
modelTemplateFiles() |
String |
modelTestFileFolder() |
Map<String,String> |
modelTestTemplateFiles() |
protected boolean |
needToImport(String type)
Check the type to see if it needs import the library/module/package
|
String |
outputFolder() |
Map<String,Object> |
postProcessAllModels(Map<String,Object> objs) |
void |
postProcessModelProperty(CodegenModel model,
CodegenProperty property) |
Map<String,Object> |
postProcessModels(Map<String,Object> objs) |
Map<String,Object> |
postProcessModelsEnum(Map<String,Object> objs)
post process enum defined in model's properties
|
Map<String,Object> |
postProcessOperations(Map<String,Object> objs) |
Map<String,Object> |
postProcessOperationsWithModels(Map<String,Object> objs,
List<Object> allModels) |
void |
postProcessParameter(CodegenParameter parameter) |
Map<String,Object> |
postProcessSupportingFileData(Map<String,Object> objs) |
void |
preprocessSwagger(io.swagger.models.Swagger swagger) |
com.samskivert.mustache.Mustache.Compiler |
processCompiler(com.samskivert.mustache.Mustache.Compiler compiler) |
void |
processOpts() |
void |
processSwagger(io.swagger.models.Swagger swagger) |
String |
removeNonNameElementToCamelCase(String name)
Remove characters not suitable for variable or method name from the input and camelize it
|
protected String |
removeNonNameElementToCamelCase(String name,
String nonNameElementPattern)
Remove characters that is not good to be included in method name from the input and camelize it
|
Set<String> |
reservedWords() |
Map<String,String> |
reservedWordsMappings() |
String |
sanitizeName(String name)
Sanitize name (parameter, property, method, etc)
|
String |
sanitizeTag(String tag)
Sanitize tag
|
void |
setAllowUnicodeIdentifiers(Boolean allowUnicodeIdentifiers) |
void |
setApiPackage(String apiPackage) |
void |
setCommonTemplateDir(String commonTemplateDir) |
void |
setEnsureUniqueParams(Boolean ensureUniqueParams) |
void |
setGitRepoId(String gitRepoId)
Set Git repo ID.
|
void |
setGitUserId(String gitUserId)
Set Git user ID.
|
void |
setHttpUserAgent(String httpUserAgent)
Set HTTP user agent.
|
void |
setIgnoreFilePathOverride(String ignoreFileOverride)
Sets an override location for the .swagger-codegen.ignore location for the first code generation.
|
void |
setInputSpec(String inputSpec) |
void |
setLibrary(String library)
Set library template (sub-template).
|
void |
setModelNamePrefix(String modelNamePrefix) |
void |
setModelNameSuffix(String modelNameSuffix) |
void |
setModelPackage(String modelPackage) |
protected void |
setNonArrayMapProperty(CodegenProperty property,
String type) |
void |
setOutputDir(String dir) |
void |
setParameterBooleanFlagWithCodegenProperty(CodegenParameter parameter,
CodegenProperty property)
Set CodegenParameter boolean flag using CodegenProperty.
|
void |
setParameterExampleValue(CodegenParameter p)
Return the example value of the parameter.
|
void |
setReleaseNote(String releaseNote)
Set release note.
|
void |
setRemoveOperationIdPrefix(boolean removeOperationIdPrefix) |
protected void |
setReservedWordsLowerCase(List<String> words) |
void |
setSkipOverwrite(boolean skipOverwrite) |
void |
setSortParamsByRequiredFlag(Boolean sortParamsByRequiredFlag) |
void |
setTemplateDir(String templateDir) |
boolean |
shouldOverwrite(String filename) |
String |
snakeCase(String name)
Return the snake-case of the string
|
Map<String,String> |
supportedLibraries()
All library templates supported.
|
List<SupportingFile> |
supportingFiles() |
String |
templateDir() |
String |
testPackage() |
String |
toApiDocFilename(String name)
Return the file name of the Api Documentation
|
String |
toApiFilename(String name)
Return the file name of the Api Test
|
String |
toApiImport(String name)
Return the fully-qualified "Api" name for import
|
String |
toApiName(String name)
Output the API (class) name (capitalized) ending with "Api"
Return DefaultApi if name is empty
|
String |
toApiTestFilename(String name)
Return the file name of the Api Test
|
String |
toApiVarName(String name)
Return the variable name in the Api
|
String |
toBooleanGetter(String name)
Output the Getter name for boolean property, e.g.
|
String |
toDefaultValue(io.swagger.models.properties.Property p)
Return the default value of the property
|
String |
toDefaultValueWithParam(String name,
io.swagger.models.properties.Property p)
Return the property initialized from a data object
Useful for initialization with a plain object in Javascript
|
String |
toEnumDefaultValue(String value,
String datatype)
Return the enum default value in the language specified format
|
String |
toEnumName(CodegenProperty property)
Return the Enum name (e.g.
|
String |
toEnumValue(String value,
String datatype)
Return the enum value in the language specified format
e.g.
|
String |
toEnumVarName(String value,
String datatype)
Return the sanitized variable name for enum
|
protected List<Map<String,Object>> |
toExamples(Map<String,Object> examples) |
String |
toExampleValue(io.swagger.models.properties.Property p)
Return the example value of the property
|
String |
toGetter(String name)
Output the Getter name, e.g.
|
String |
toInstantiationType(io.swagger.models.properties.Property p)
Return the instantiation type of the property, especially for map and array
|
String |
toModelDocFilename(String name)
Return the capitalized file name of the model documentation
|
String |
toModelFilename(String name)
Return the capitalized file name of the model
|
String |
toModelImport(String name)
Return the fully-qualified "Model" name for import
|
String |
toModelName(String name)
Output the proper model name (capitalized).
|
String |
toModelTestFilename(String name)
Return the capitalized file name of the model test
|
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 |
toRegularExpression(String pattern)
Return the regular expression/JSON schema pattern (http://json-schema.org/latest/json-schema-validation.html#anchor33)
|
String |
toSetter(String name)
Output the Getter name, e.g.
|
String |
toVarName(String name)
Return the variable name by removing invalid characters and proper escaping if
it's a reserved word.
|
Map<String,String> |
typeMapping() |
static String |
underscore(String word)
Underscore the given word.
|
void |
updateCodegenPropertyEnum(CodegenProperty var)
Update codegen property's enum by adding "enumVars" (with name and value)
|
protected void |
updateDataTypeWithEnumForArray(CodegenProperty property)
Update datatypeWithEnum for array container
|
protected void |
updateDataTypeWithEnumForMap(CodegenProperty property)
Update datatypeWithEnum for map container
|
protected void |
updatePropertyForArray(CodegenProperty property,
CodegenProperty innerProperty)
Update property for array(list) container
|
protected void |
updatePropertyForMap(CodegenProperty property,
CodegenProperty innerProperty)
Update property for map container
|
Map<String,Object> |
vendorExtensions() |
void |
writeOptional(String outputFolder,
SupportingFile supportingFile)
Only write if the file doesn't exist
|
void |
writePropertyBack(String propertyKey,
boolean value) |
protected static final org.slf4j.Logger LOGGER
protected String inputSpec
protected String outputFolder
protected String modelPackage
protected String apiPackage
protected String fileSuffix
protected String modelNamePrefix
protected String modelNameSuffix
protected String testPackage
protected String templateDir
protected String embeddedTemplateDir
protected String commonTemplateDir
protected List<SupportingFile> supportingFiles
protected boolean skipOverwrite
protected boolean removeOperationIdPrefix
protected boolean supportsInheritance
protected boolean supportsMixins
protected String library
protected Boolean sortParamsByRequiredFlag
protected Boolean ensureUniqueParams
protected Boolean allowUnicodeIdentifiers
protected String gitUserId
protected String gitRepoId
protected String releaseNote
protected String httpUserAgent
protected Boolean hideGenerationTimestamp
protected String ignoreFilePathOverride
public DefaultCodegen()
public void processOpts()
public Map<String,Object> postProcessModelsEnum(Map<String,Object> objs)
objs
- Map of modelspublic String findCommonPrefixOfVars(List<Object> vars)
vars
- List of variable namespublic String toEnumDefaultValue(String value, String datatype)
value
- enum variable namedatatype
- data typepublic String toEnumValue(String value, String datatype)
value
- enum variable namedatatype
- data typepublic String toEnumVarName(String value, String datatype)
value
- enum variable namedatatype
- data typepublic Map<String,Object> postProcessOperationsWithModels(Map<String,Object> objs, List<Object> allModels)
public Map<String,Object> postProcessSupportingFileData(Map<String,Object> objs)
public void postProcessModelProperty(CodegenModel model, CodegenProperty property)
public void postProcessParameter(CodegenParameter parameter)
public void preprocessSwagger(io.swagger.models.Swagger swagger)
public void processSwagger(io.swagger.models.Swagger swagger)
public com.samskivert.mustache.Mustache.Compiler processCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
public String escapeUnsafeCharacters(String input)
input
- String to be cleaned uppublic String escapeQuotationMark(String input)
input
- String to be cleaned uppublic String testPackage()
public String modelPackage()
public String apiPackage()
public String fileSuffix()
public String templateDir()
public String embeddedTemplateDir()
public String getCommonTemplateDir()
public void setCommonTemplateDir(String commonTemplateDir)
public String apiFileFolder()
public String modelFileFolder()
public String apiTestFileFolder()
public String modelTestFileFolder()
public String apiDocFileFolder()
public String modelDocFileFolder()
public List<SupportingFile> supportingFiles()
public String outputFolder()
public void setOutputDir(String dir)
public String getOutputDir()
public String getInputSpec()
public void setInputSpec(String inputSpec)
public void setTemplateDir(String templateDir)
public void setModelPackage(String modelPackage)
public void setModelNamePrefix(String modelNamePrefix)
public void setModelNameSuffix(String modelNameSuffix)
public void setApiPackage(String apiPackage)
public void setSortParamsByRequiredFlag(Boolean sortParamsByRequiredFlag)
public void setEnsureUniqueParams(Boolean ensureUniqueParams)
public void setAllowUnicodeIdentifiers(Boolean allowUnicodeIdentifiers)
public String toRegularExpression(String pattern)
pattern
- the pattern (regular expression)public String toApiFilename(String name)
name
- the file name of the Apipublic String toApiDocFilename(String name)
name
- the file name of the Apipublic String toApiTestFilename(String name)
name
- the file name of the Apipublic String toApiVarName(String name)
name
- the varible name of the Apipublic String toModelFilename(String name)
name
- the model namepublic String toModelTestFilename(String name)
name
- the model namepublic String toModelDocFilename(String name)
name
- the model namepublic String toOperationId(String operationId)
operationId
- operation IDpublic String toVarName(String name)
name
- the variable namepublic String toParamName(String name)
name
- Codegen property objectpublic String toEnumName(CodegenProperty property)
property
- Codegen propertypublic String escapeReservedWord(String name)
name
- the name to be escapedpublic String toModelImport(String name)
name
- the name of the "Model"public String toApiImport(String name)
name
- the name of the "Api"protected void initalizeSpecialCharacterMapping()
protected String getSymbolName(String input)
input
- Symbol (e.g. $)public String generateExamplePath(String path, io.swagger.models.Operation operation)
path
- the path of the operationoperation
- Swagger operation objectpublic String toInstantiationType(io.swagger.models.properties.Property p)
p
- Swagger property objectpublic void setParameterExampleValue(CodegenParameter p)
p
- Swagger property objectpublic String toExampleValue(io.swagger.models.properties.Property p)
p
- Swagger property objectpublic String toDefaultValue(io.swagger.models.properties.Property p)
p
- Swagger property objectpublic String toDefaultValueWithParam(String name, io.swagger.models.properties.Property p)
name
- Name of the property objectp
- Swagger property objectpublic String getSwaggerType(io.swagger.models.properties.Property p)
p
- Swagger property objectpublic String snakeCase(String name)
name
- string to be snake-casedpublic String initialCaps(String name)
name
- string to be capitalizedpublic String getTypeDeclaration(String name)
name
- namepublic String getTypeDeclaration(io.swagger.models.properties.Property p)
p
- Swagger Property objectpublic String getAlias(String name)
name
- The type name.public String toBooleanGetter(String name)
name
- the name of the propertypublic String toGetter(String name)
name
- the name of the propertypublic String toSetter(String name)
name
- the name of the propertypublic String toApiName(String name)
name
- the name of the Apipublic String toModelName(String name)
name
- the name of the modelpublic CodegenModel fromModel(String name, io.swagger.models.Model model)
name
- the name of the modelmodel
- Swagger Model objectpublic CodegenModel fromModel(String name, io.swagger.models.Model model, Map<String,io.swagger.models.Model> allDefinitions)
name
- the name of the modelmodel
- Swagger Model objectallDefinitions
- a map of all Swagger models from the specprotected void addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel, io.swagger.models.ModelImpl swaggerModel)
protected void addProperties(Map<String,io.swagger.models.properties.Property> properties, List<String> required, io.swagger.models.Model model, Map<String,io.swagger.models.Model> allDefinitions)
public String getterAndSetterCapitalize(String name)
name
- string to be camelizedpublic CodegenProperty fromProperty(String name, io.swagger.models.properties.Property p)
name
- name of the propertyp
- Swagger property objectprotected void updatePropertyForArray(CodegenProperty property, CodegenProperty innerProperty)
property
- Codegen propertyinnerProperty
- Codegen inner property of map or listprotected void updatePropertyForMap(CodegenProperty property, CodegenProperty innerProperty)
property
- Codegen propertyinnerProperty
- Codegen inner property of map or listprotected Boolean isPropertyInnerMostEnum(CodegenProperty property)
property
- Codegen propertyprotected Map<String,Object> getInnerEnumAllowableValues(CodegenProperty property)
protected void updateDataTypeWithEnumForArray(CodegenProperty property)
property
- Codegen propertyprotected void updateDataTypeWithEnumForMap(CodegenProperty property)
property
- Codegen propertyprotected void setNonArrayMapProperty(CodegenProperty property, String type)
protected io.swagger.models.Response findMethodResponse(Map<String,io.swagger.models.Response> responses)
responses
- Swagger Operation's responsespublic CodegenOperation fromOperation(String path, String httpMethod, io.swagger.models.Operation operation, Map<String,io.swagger.models.Model> definitions)
path
- the path of the operationhttpMethod
- HTTP methodoperation
- Swagger operation objectdefinitions
- a map of Swagger modelspublic CodegenOperation fromOperation(String path, String httpMethod, io.swagger.models.Operation operation, Map<String,io.swagger.models.Model> definitions, io.swagger.models.Swagger swagger)
path
- the path of the operationhttpMethod
- HTTP methodoperation
- Swagger operation objectdefinitions
- a map of Swagger modelsswagger
- a Swagger object representing the specpublic CodegenResponse fromResponse(String responseCode, io.swagger.models.Response response)
responseCode
- HTTP response coderesponse
- Swagger Response objectpublic CodegenParameter fromParameter(io.swagger.models.parameters.Parameter param, Set<String> imports)
param
- Swagger parameter objectimports
- set of imports for library/package/modulepublic boolean isDataTypeBinary(String dataType)
public boolean isDataTypeFile(String dataType)
public List<CodegenSecurity> fromSecurity(Map<String,io.swagger.models.auth.SecuritySchemeDefinition> schemes)
schemes
- a map of Swagger SecuritySchemeDefinition objectprotected boolean isReservedWord(String word)
protected String getOrGenerateOperationId(io.swagger.models.Operation operation, String path, String httpMethod)
operation
- the operation objectpath
- the path of the operationhttpMethod
- the HTTP method of the operationprotected boolean needToImport(String type)
type
- name of the typepublic void addOperationToGroup(String tag, String resourcePath, io.swagger.models.Operation operation, CodegenOperation co, Map<String,List<CodegenOperation>> operations)
tag
- name of the tagresourcePath
- path of the resourceoperation
- Swagger Operation objectco
- Codegen Operation objectoperations
- map of Codegen operationspublic static String underscore(String word)
word
- The wordprotected String dashize(String word)
word
- The wordprotected void addImport(CodegenModel m, String type)
public String removeNonNameElementToCamelCase(String name)
name
- string to be camelizeprotected String removeNonNameElementToCamelCase(String name, String nonNameElementPattern)
name
- string to be camelizenonNameElementPattern
- a regex pattern of the characters that is not good to be included in namepublic static String camelize(String word)
word
- string to be camelizepublic static String camelize(String word, boolean lowercaseFirstLetter)
word
- string to be camelizelowercaseFirstLetter
- lower case for first letter if set to truepublic String apiDocFilename(String templateName, String tag)
templateName
- template nametag
- tagpublic String apiTestFilename(String templateName, String tag)
templateName
- template nametag
- tagpublic boolean shouldOverwrite(String filename)
public boolean isSkipOverwrite()
public void setSkipOverwrite(boolean skipOverwrite)
public boolean isRemoveOperationIdPrefix()
public void setRemoveOperationIdPrefix(boolean removeOperationIdPrefix)
public Map<String,String> supportedLibraries()
public void setLibrary(String library)
library
- Library templatepublic String getLibrary()
public void setGitUserId(String gitUserId)
gitUserId
- Git user IDpublic String getGitUserId()
public void setGitRepoId(String gitRepoId)
gitRepoId
- Git repo IDpublic String getGitRepoId()
public void setReleaseNote(String releaseNote)
releaseNote
- Release notepublic String getReleaseNote()
public void setHttpUserAgent(String httpUserAgent)
httpUserAgent
- HTTP user agentpublic String getHttpUserAgent()
protected CliOption buildLibraryCliOption(Map<String,String> supportedLibraries)
public String sanitizeName(String name)
name
- string to be sanitizepublic String sanitizeTag(String tag)
tag
- Tagpublic void writeOptional(String outputFolder, SupportingFile supportingFile)
outputFolder
- Output foldersupportingFile
- Supporting filepublic void setParameterBooleanFlagWithCodegenProperty(CodegenParameter parameter, CodegenProperty property)
parameter
- Codegen Parameterproperty
- Codegen propertypublic void updateCodegenPropertyEnum(CodegenProperty var)
var
- list of CodegenPropertypublic String addRegularExpressionDelimiter(String pattern)
pattern
- the pattern (regular expression)public boolean convertPropertyToBooleanAndWriteBack(String propertyKey)
propertyKey
- property keypublic String getIgnoreFilePathOverride()
public void setIgnoreFilePathOverride(String ignoreFileOverride)
ignoreFileOverride
- The full path to an ignore filepublic boolean convertPropertyToBoolean(String propertyKey)
public void writePropertyBack(String propertyKey, boolean value)
Copyright © 2018. All rights reserved.