cpp-tizen extends AbstractCppCodegen (#676)

* cpp-tizen extends AbstractCppCodegen

* Update javadoc comment
This commit is contained in:
sunn 2018-07-30 09:33:00 +02:00 committed by William Cheng
parent cb9a734ebb
commit b587052de4
3 changed files with 11 additions and 22 deletions

View File

@ -32,7 +32,7 @@ import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
public class CppTizenClientCodegen extends DefaultCodegen implements CodegenConfig {
public class CppTizenClientCodegen extends AbstractCppCodegen implements CodegenConfig {
protected static String PREFIX = "ArtikCloud";
protected String sourceFolder = "src";
protected String documentationFolder = "doc";
@ -270,14 +270,6 @@ public class CppTizenClientCodegen extends DefaultCodegen implements CodegenConf
return "" + paramName;
}
@Override
public String escapeReservedWord(String name) {
if (this.reservedWordsMappings().containsKey(name)) {
return this.reservedWordsMappings().get(name);
}
return "_" + name;
}
@Override
public String toOperationId(String operationId) {
// throw exception if method name is empty
@ -293,16 +285,13 @@ public class CppTizenClientCodegen extends DefaultCodegen implements CodegenConf
// add_pet_by_id => addPetById
return camelize(operationId, true);
}
@Override
public String escapeQuotationMark(String input) {
// remove " to avoid code injection
return input.replace("\"", "");
/**
* Output the Getter name for boolean property, e.g. getActive
*
* @param name the name of the property
* @return getter name based on naming convention
*/
public String toBooleanGetter(String name) {
return "get" + getterAndSetterCapitalize(name);
}
@Override
public String escapeUnsafeCharacters(String input) {
return input.replace("*/", "*_/").replace("/*", "/_*");
}
}

View File

@ -1 +1 @@
3.0.0-SNAPSHOT
3.2.0-SNAPSHOT

View File

@ -46,7 +46,7 @@ PROJECT_NUMBER = 1.0.0
PROJECT_BRIEF = "An SDK for creating client applications for OpenAPI Petstore on Tizen Platform (http://tizen.org/)"
# With the PROJECT_LOGO tag one can specify an logo or icon that is included in
# With the PROJECT_LOGO tag one can specify a logo or icon that is included in
# the documentation. The maximum height of the logo should not exceed 55 pixels
# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo
# to the output directory.