@Test public void testToSettername(){ Assert.assertEquals("setFirstName", NamingUtil.toSetterName("firstName")); Assert.assertEquals("", NamingUtil.toSetterName("")); }
public static String toSetterName(String name) { if (StringUtil.isEmpty(name)) { return ""; } return "set" + name.substring(0,1).toUpperCase() + name.substring(1); }
NamingUtil { public static String toSetterName(String name) { if (StringUtil.isEmpty(name)) { return ""; } return "set" + name.substring(0,1).toUpperCase() + name.substring(1); } }
NamingUtil { public static String toSetterName(String name) { if (StringUtil.isEmpty(name)) { return ""; } return "set" + name.substring(0,1).toUpperCase() + name.substring(1); } private  NamingUtil(); }
NamingUtil { public static String toSetterName(String name) { if (StringUtil.isEmpty(name)) { return ""; } return "set" + name.substring(0,1).toUpperCase() + name.substring(1); } private  NamingUtil(); static String toLabel(String name); static String toGetterName(String name); static String toSetterName(String name); static String toAttributeName(String name); static String toElementName(String name); static String toDisplayName(String name); static String toSQLName(String name); static String getPropertyName(String methodName); static String getSimpleName(String qualifiedName); static String getPackageName(String qualifiedName); }
NamingUtil { public static String toSetterName(String name) { if (StringUtil.isEmpty(name)) { return ""; } return "set" + name.substring(0,1).toUpperCase() + name.substring(1); } private  NamingUtil(); static String toLabel(String name); static String toGetterName(String name); static String toSetterName(String name); static String toAttributeName(String name); static String toElementName(String name); static String toDisplayName(String name); static String toSQLName(String name); static String getPropertyName(String methodName); static String getSimpleName(String qualifiedName); static String getPackageName(String qualifiedName);  }