List of utility methods to do Setter Name Create
String | toSetterName(String field) to Setter Name if (field.length() >= 2 && Character.isUpperCase(field.charAt(1))) { return "set" + field; return "set" + field.substring(0, 1).toUpperCase() + field.substring(1); |
String | toSetterName(String fieldName) to Setter Name return toAccessorName(fieldName, "set"); |
String | toSetterName(String name) to Setter Name return tohPrefixialCamelName(name, "set"); |
String | toSetterName(String property) to Setter Name StringBuffer setterName = new StringBuffer(); setterName.append(property); setterName.setCharAt(0, Character.toUpperCase(property.charAt(0))); setterName.insert(0, "set"); return setterName.toString(); |