- Updated cpp generators to name boolean getter functions with an is at the beginning (ex. isActive) (#6880)

This commit is contained in:
stkrwork
2017-11-04 15:04:38 +01:00
committed by wing328
parent 4dafa5b92a
commit 659e64206a
8 changed files with 19 additions and 9 deletions

View File

@@ -166,4 +166,14 @@ abstract public class AbstractCppCodegen extends DefaultCodegen implements Codeg
property.nameInCamelCase = nameInCamelCase;
return property;
}
/**
* Output the Getter name for boolean property, e.g. isActive
*
* @param name the name of the property
* @return getter name based on naming convention
*/
public String toBooleanGetter(String name) {
return "is" + getterAndSetterCapitalize(name);
}
}