public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig
Modifier and Type | Field and Description |
---|---|
static String |
AUTHOR_EMAIL |
static String |
AUTHOR_NAME |
protected String |
authorEmail |
protected String |
authorName |
static String |
CLASS_PREFIX |
protected String |
classPrefix |
protected Set<String> |
foundationClasses |
static String |
GIT_REPO_URL |
protected String |
gitRepoURL |
protected String |
license |
static String |
LICENSE |
static String |
POD_NAME |
protected String |
podName |
protected String |
podVersion |
protected String[] |
specialWords |
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 |
---|
ObjcClientCodegen() |
Modifier and Type | Method and Description |
---|---|
String |
apiFileFolder() |
String |
escapeReservedWord(String name)
Return the escaped name of the reserved word
|
String |
escapeSpecialWord(String name) |
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
|
String |
modelFileFolder() |
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 |
setPodName(String podName) |
void |
setPodVersion(String podVersion) |
String |
toApiFilename(String name)
Return the file name of the Api
|
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 |
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 |
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.
|
additionalProperties, addOperationToGroup, apiFilename, apiPackage, apiTemplateFiles, buildLibraryCliOption, camelize, camelize, cliOptions, dashize, defaultIncludes, embeddedTemplateDir, escapeText, fileSuffix, fromModel, fromModel, fromOperation, fromOperation, fromParameter, fromProperty, fromResponse, fromSecurity, generateExamplePath, getLibrary, getOrGenerateOperationId, getOutputDir, getterAndSetterCapitalize, importMapping, initialCaps, instantiationTypes, isSkipOverwrite, languageSpecificPrimitives, modelPackage, modelTemplateFiles, needToImport, outputFolder, postProcessModelProperty, postProcessModels, postProcessOperations, postProcessParameter, postProcessSupportingFileData, preprocessSwagger, processSwagger, removeNonNameElementToCamelCase, reservedWords, sanitizeName, setApiPackage, setEnsureUniqueParams, setLibrary, setModelPackage, setOutputDir, setSkipOverwrite, setSortParamsByRequiredFlag, setTemplateDir, shouldOverwrite, snakeCase, supportedLibraries, supportingFiles, templateDir, toApiImport, toApiVarName, toDefaultValueWithParam, toEnumName, toExamples, typeMapping, underscore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
additionalProperties, addOperationToGroup, apiFilename, apiPackage, apiTemplateFiles, cliOptions, defaultIncludes, embeddedTemplateDir, escapeText, fileSuffix, fromModel, fromModel, fromOperation, fromOperation, fromSecurity, generateExamplePath, getLibrary, getOutputDir, importMapping, instantiationTypes, isSkipOverwrite, languageSpecificPrimitives, modelPackage, modelTemplateFiles, outputFolder, postProcessModelProperty, postProcessModels, postProcessOperations, postProcessParameter, postProcessSupportingFileData, preprocessSwagger, processSwagger, reservedWords, setLibrary, setOutputDir, setSkipOverwrite, shouldOverwrite, supportedLibraries, supportingFiles, templateDir, toApiImport, toApiVarName, typeMapping
public 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 GIT_REPO_URL
public static final String LICENSE
protected String podName
protected String podVersion
protected String classPrefix
protected String authorName
protected String authorEmail
protected String license
protected String gitRepoURL
protected String[] specialWords
public CodegenType getTag()
getTag
in interface CodegenConfig
public String getName()
getName
in interface CodegenConfig
public String getHelp()
getHelp
in interface CodegenConfig
public void processOpts()
processOpts
in interface CodegenConfig
processOpts
in class DefaultCodegen
public String toInstantiationType(io.swagger.models.properties.Property p)
DefaultCodegen
toInstantiationType
in class DefaultCodegen
p
- Swagger property objectpublic String getTypeDeclaration(String name)
DefaultCodegen
getTypeDeclaration
in interface CodegenConfig
getTypeDeclaration
in class DefaultCodegen
name
- namepublic String getSwaggerType(io.swagger.models.properties.Property p)
DefaultCodegen
getSwaggerType
in class DefaultCodegen
p
- Swagger property objectpublic String getTypeDeclaration(io.swagger.models.properties.Property p)
DefaultCodegen
getTypeDeclaration
in interface CodegenConfig
getTypeDeclaration
in class DefaultCodegen
p
- Swagger Property objectpublic String toModelName(String type)
DefaultCodegen
toModelName
in interface CodegenConfig
toModelName
in class DefaultCodegen
type
- the name of the modelpublic String toModelFilename(String name)
DefaultCodegen
toModelFilename
in interface CodegenConfig
toModelFilename
in class DefaultCodegen
name
- the model nameprotected void setNonArrayMapProperty(CodegenProperty property, String type)
setNonArrayMapProperty
in class DefaultCodegen
public String toModelImport(String name)
DefaultCodegen
toModelImport
in interface CodegenConfig
toModelImport
in class DefaultCodegen
name
- the name of the "Model"public String apiFileFolder()
apiFileFolder
in interface CodegenConfig
apiFileFolder
in class DefaultCodegen
public String modelFileFolder()
modelFileFolder
in interface CodegenConfig
modelFileFolder
in class DefaultCodegen
public String toApiName(String name)
DefaultCodegen
toApiName
in interface CodegenConfig
toApiName
in class DefaultCodegen
name
- the name of the Apipublic String toApiFilename(String name)
DefaultCodegen
toApiFilename
in interface CodegenConfig
toApiFilename
in class DefaultCodegen
name
- the file name of the Apipublic String toVarName(String name)
DefaultCodegen
toVarName
in class DefaultCodegen
name
- the variable namepublic String toParamName(String name)
DefaultCodegen
toParamName
in interface CodegenConfig
toParamName
in class DefaultCodegen
name
- Codegen property objectpublic String escapeReservedWord(String name)
DefaultCodegen
escapeReservedWord
in interface CodegenConfig
escapeReservedWord
in class DefaultCodegen
name
- the name to be escapedpublic String toOperationId(String operationId)
DefaultCodegen
toOperationId
in class DefaultCodegen
operationId
- 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 String toDefaultValue(io.swagger.models.properties.Property p)
toDefaultValue
in class DefaultCodegen
p
- Swagger property objectCopyright © 2016. All rights reserved.