public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
advancedMapingTypes |
protected String |
apiDocPath |
protected String |
apiFilesPath |
static String |
AUTHOR_EMAIL |
static String |
AUTHOR_NAME |
protected String |
authorEmail |
protected String |
authorName |
static String |
CLASS_PREFIX |
protected String |
classPrefix |
static String |
CORE_DATA |
protected String |
coreFilesPath |
static String |
DEFAULT_LICENSE |
protected Set<String> |
foundationClasses |
protected boolean |
generateCoreData |
static String |
GIT_REPO_URL |
protected String |
gitRepoURL |
protected String |
license |
static String |
LICENSE |
protected String |
modelDocPath |
protected String |
modelFilesPath |
static String |
POD_NAME |
protected String |
podName |
protected String |
podVersion |
protected String[] |
specialWords |
additionalProperties, allowUnicodeIdentifiers, apiDocTemplateFiles, apiPackage, apiTemplateFiles, apiTestTemplateFiles, cliOptions, commonTemplateDir, defaultIncludes, embeddedTemplateDir, ensureUniqueParams, fileSuffix, gitRepoId, gitUserId, hideGenerationTimestamp, httpUserAgent, ignoreFilePathOverride, importMapping, inputSpec, instantiationTypes, languageSpecificPrimitives, library, LOGGER, modelDocTemplateFiles, modelNamePrefix, modelNameSuffix, modelPackage, modelTemplateFiles, modelTestTemplateFiles, outputFolder, releaseNote, removeOperationIdPrefix, reservedWords, reservedWordsMappings, skipOverwrite, sortParamsByRequiredFlag, specialCharReplacements, supportedLibraries, supportingFiles, supportsInheritance, supportsMixins, templateDir, testPackage, typeAliases, typeMapping, vendorExtensions| Constructor and Description |
|---|
ObjcClientCodegen() |
| Modifier and Type | Method and Description |
|---|---|
String |
apiDocFileFolder() |
String |
apiFileFolder() |
String |
coreFileFolder() |
String |
escapeQuotationMark(String input)
Escape single and/or double quote to avoid code injection
|
String |
escapeReservedWord(String name)
Escapes a reserved word as defined in the `reservedWords` array.
|
String |
escapeSpecialWord(String name) |
String |
escapeUnsafeCharacters(String input)
override with any special text escaping logic to handle unsafe
characters so as to avoid code injection
|
String |
getHelp() |
String |
getName() |
String |
getSwaggerType(io.swagger.models.properties.Property p)
returns the swagger type for the property
|
CodegenType |
getTag() |
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
|
boolean |
isDataTypeBinary(String dataType) |
String |
modelDocFileFolder() |
String |
modelFileFolder() |
void |
postProcessModelProperty(CodegenModel model,
CodegenProperty property) |
Map<String,Object> |
postProcessOperations(Map<String,Object> objs) |
void |
processOpts() |
void |
setAuthorEmail(String authorEmail) |
void |
setAuthorName(String authorName) |
void |
setClassPrefix(String classPrefix) |
void |
setGitRepoURL(String gitRepoURL) |
void |
setLicense(String license) |
protected void |
setNonArrayMapProperty(CodegenProperty property,
String type) |
void |
setParameterExampleValue(CodegenParameter p)
Return the example value of the parameter.
|
void |
setPodName(String podName) |
void |
setPodVersion(String podVersion) |
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 |
toApiName(String name)
Output the API (class) name (capitalized) ending with "Api"
Return DefaultApi if name is empty
|
String |
toDefaultValue(io.swagger.models.properties.Property p)
Return the default value of the property
|
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 type)
Output the proper model name (capitalized).
|
String |
toModelNameWithoutReservedWordCheck(String type) |
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 |
toVarName(String name)
Return the variable name by removing invalid characters and proper escaping if
it's a reserved word.
|
addAdditionPropertiesToCodeGenModel, addImport, additionalProperties, addOperationToGroup, addOption, addOption, addProperties, addRegularExpressionDelimiter, addSwitch, apiDocFilename, apiDocTemplateFiles, apiFilename, apiPackage, apiTemplateFiles, apiTestFileFolder, apiTestFilename, apiTestTemplateFiles, buildLibraryCliOption, camelize, camelize, cliOptions, configureDataForTestTemplate, convertPropertyToBoolean, convertPropertyToBooleanAndWriteBack, dashize, defaultIncludes, embeddedTemplateDir, escapeText, fileSuffix, findCommonPrefixOfVars, findMethodResponse, fromModel, fromModel, fromOperation, fromOperation, fromParameter, fromProperty, fromResponse, fromSecurity, generateExamplePath, getAlias, getCommonTemplateDir, getExamples, getGitRepoId, getGitUserId, getHttpUserAgent, getIgnoreFilePathOverride, getInnerEnumAllowableValues, getInputSpec, getLibrary, getOrGenerateOperationId, getOutputDir, getParameterDataType, getReleaseNote, getSymbolName, getterAndSetterCapitalize, importMapping, initalizeSpecialCharacterMapping, initialCaps, instantiationTypes, isDataTypeFile, isHideGenerationTimestamp, isPropertyInnerMostEnum, isRemoveOperationIdPrefix, isReservedWord, isSkipOverwrite, languageSpecificPrimitives, modelDocTemplateFiles, modelPackage, modelTemplateFiles, modelTestFileFolder, modelTestTemplateFiles, needToImport, outputFolder, postProcessAllModels, postProcessModels, postProcessModelsEnum, postProcessOperationsWithModels, postProcessParameter, postProcessSupportingFileData, preprocessSwagger, processCompiler, processSwagger, removeNonNameElementToCamelCase, removeNonNameElementToCamelCase, reservedWords, reservedWordsMappings, sanitizeName, sanitizeTag, setAllowUnicodeIdentifiers, setApiPackage, setCommonTemplateDir, setEnsureUniqueParams, setGitRepoId, setGitUserId, setHideGenerationTimestamp, setHttpUserAgent, setIgnoreFilePathOverride, setInputSpec, setLibrary, setModelNamePrefix, setModelNameSuffix, setModelPackage, setOutputDir, setParameterBooleanFlagWithCodegenProperty, setReleaseNote, setRemoveOperationIdPrefix, setReservedWordsLowerCase, setSkipOverwrite, setSortParamsByRequiredFlag, setTemplateDir, shouldOverwrite, snakeCase, supportedLibraries, supportingFiles, templateDir, testPackage, toApiImport, toApiTestFilename, toApiVarName, toBooleanGetter, toDefaultValueWithParam, toEnumDefaultValue, toEnumName, toEnumValue, toEnumVarName, toExamples, toExampleValue, toGetter, toModelTestFilename, toRegularExpression, toSetter, typeMapping, underscore, updateCodegenPropertyEnum, updateDataTypeWithEnumForArray, updateDataTypeWithEnumForMap, updatePropertyForArray, updatePropertyForMap, vendorExtensions, writeOptional, writePropertyBackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadditionalProperties, addOperationToGroup, apiDocFilename, apiDocTemplateFiles, apiFilename, apiPackage, apiTemplateFiles, apiTestFileFolder, apiTestFilename, apiTestTemplateFiles, cliOptions, defaultIncludes, embeddedTemplateDir, escapeText, fileSuffix, fromModel, fromModel, fromOperation, fromOperation, fromSecurity, generateExamplePath, getCommonTemplateDir, getGitRepoId, getGitUserId, getHttpUserAgent, getIgnoreFilePathOverride, getInputSpec, getLibrary, getOutputDir, getReleaseNote, importMapping, instantiationTypes, isHideGenerationTimestamp, isRemoveOperationIdPrefix, isSkipOverwrite, languageSpecificPrimitives, modelDocTemplateFiles, modelPackage, modelTemplateFiles, modelTestFileFolder, modelTestTemplateFiles, outputFolder, postProcessAllModels, postProcessModels, postProcessOperationsWithModels, postProcessParameter, postProcessSupportingFileData, preprocessSwagger, processCompiler, processSwagger, reservedWords, reservedWordsMappings, sanitizeName, sanitizeTag, setGitRepoId, setGitUserId, setHideGenerationTimestamp, setHttpUserAgent, setIgnoreFilePathOverride, setInputSpec, setLibrary, setOutputDir, setReleaseNote, setRemoveOperationIdPrefix, setSkipOverwrite, shouldOverwrite, supportedLibraries, supportingFiles, templateDir, testPackage, toApiImport, toApiTestFilename, toApiVarName, toBooleanGetter, toGetter, toModelTestFilename, toSetter, typeMapping, vendorExtensionspublic static final String CLASS_PREFIX
public static final String POD_NAME
public static final String AUTHOR_NAME
public static final String AUTHOR_EMAIL
public static final String LICENSE
public static final String GIT_REPO_URL
public static final String DEFAULT_LICENSE
public static final String CORE_DATA
protected String podName
protected String podVersion
protected String classPrefix
protected String authorName
protected String authorEmail
protected String license
protected String gitRepoURL
protected String[] specialWords
protected String apiDocPath
protected String modelDocPath
protected String modelFilesPath
protected String coreFilesPath
protected String apiFilesPath
protected boolean generateCoreData
public CodegenType getTag()
getTag in interface CodegenConfigpublic String getName()
getName in interface CodegenConfigpublic String getHelp()
getHelp in interface CodegenConfigpublic void processOpts()
processOpts in interface CodegenConfigprocessOpts in class DefaultCodegenpublic String toInstantiationType(io.swagger.models.properties.Property p)
DefaultCodegentoInstantiationType in class DefaultCodegenp - Swagger property objectpublic String getTypeDeclaration(String name)
DefaultCodegengetTypeDeclaration in interface CodegenConfiggetTypeDeclaration in class DefaultCodegenname - namepublic String getSwaggerType(io.swagger.models.properties.Property p)
DefaultCodegengetSwaggerType in class DefaultCodegenp - Swagger property objectpublic String getTypeDeclaration(io.swagger.models.properties.Property p)
DefaultCodegengetTypeDeclaration in interface CodegenConfiggetTypeDeclaration in class DefaultCodegenp - Swagger Property objectpublic boolean isDataTypeBinary(String dataType)
isDataTypeBinary in class DefaultCodegenpublic String toModelName(String type)
DefaultCodegentoModelName in interface CodegenConfigtoModelName in class DefaultCodegentype - the name of the modelpublic String toModelFilename(String name)
DefaultCodegentoModelFilename in interface CodegenConfigtoModelFilename in class DefaultCodegenname - the model nameprotected void setNonArrayMapProperty(CodegenProperty property, String type)
setNonArrayMapProperty in class DefaultCodegenpublic String toModelImport(String name)
DefaultCodegentoModelImport in interface CodegenConfigtoModelImport in class DefaultCodegenname - the name of the "Model"public String apiDocFileFolder()
apiDocFileFolder in interface CodegenConfigapiDocFileFolder in class DefaultCodegenpublic String modelDocFileFolder()
modelDocFileFolder in interface CodegenConfigmodelDocFileFolder in class DefaultCodegenpublic String toModelDocFilename(String name)
DefaultCodegentoModelDocFilename in interface CodegenConfigtoModelDocFilename in class DefaultCodegenname - the model namepublic String toApiDocFilename(String name)
DefaultCodegentoApiDocFilename in interface CodegenConfigtoApiDocFilename in class DefaultCodegenname - the file name of the Apipublic String apiFileFolder()
apiFileFolder in interface CodegenConfigapiFileFolder in class DefaultCodegenpublic String modelFileFolder()
modelFileFolder in interface CodegenConfigmodelFileFolder in class DefaultCodegenpublic String coreFileFolder()
public String toApiName(String name)
DefaultCodegentoApiName in interface CodegenConfigtoApiName in class DefaultCodegenname - the name of the Apipublic String toApiFilename(String name)
DefaultCodegentoApiFilename in interface CodegenConfigtoApiFilename in class DefaultCodegenname - the file name of the Apipublic String toVarName(String name)
DefaultCodegentoVarName in class DefaultCodegenname - the variable namepublic String toParamName(String name)
DefaultCodegentoParamName in interface CodegenConfigtoParamName in class DefaultCodegenname - Codegen property objectpublic String escapeReservedWord(String name)
escapeReservedWord in interface CodegenConfigescapeReservedWord in class DefaultCodegenname - the name to be escapedpublic String toOperationId(String operationId)
DefaultCodegentoOperationId in class DefaultCodegenoperationId - operation IDpublic void setClassPrefix(String classPrefix)
public void setPodName(String podName)
public void setPodVersion(String podVersion)
public void setAuthorEmail(String authorEmail)
public void setAuthorName(String authorName)
public void setGitRepoURL(String gitRepoURL)
public void setLicense(String license)
public Map<String,Object> postProcessOperations(Map<String,Object> objs)
postProcessOperations in interface CodegenConfigpostProcessOperations in class DefaultCodegenpublic void postProcessModelProperty(CodegenModel model, CodegenProperty property)
postProcessModelProperty in interface CodegenConfigpostProcessModelProperty in class DefaultCodegenpublic String toDefaultValue(io.swagger.models.properties.Property p)
toDefaultValue in class DefaultCodegenp - Swagger property objectpublic void setParameterExampleValue(CodegenParameter p)
DefaultCodegensetParameterExampleValue in class DefaultCodegenp - Swagger property objectpublic String escapeQuotationMark(String input)
DefaultCodegenescapeQuotationMark in interface CodegenConfigescapeQuotationMark in class DefaultCodegeninput - String to be cleaned uppublic String escapeUnsafeCharacters(String input)
DefaultCodegenescapeUnsafeCharacters in interface CodegenConfigescapeUnsafeCharacters in class DefaultCodegeninput - String to be cleaned upCopyright © 2019. All rights reserved.