@Test public void testToGetterName(){ Assert.assertEquals("getFirstName", NamingUtil.toGetterName("firstName")); Assert.assertEquals("", NamingUtil.toGetterName("")); }
public static String toGetterName(String name) { if (StringUtil.isEmpty(name)) { return ""; } return "get" + name.substring(0,1).toUpperCase() + name.substring(1); }
NamingUtil { public static String toGetterName(String name) { if (StringUtil.isEmpty(name)) { return ""; } return "get" + name.substring(0,1).toUpperCase() + name.substring(1); } }
NamingUtil { public static String toGetterName(String name) { if (StringUtil.isEmpty(name)) { return ""; } return "get" + name.substring(0,1).toUpperCase() + name.substring(1); } private  NamingUtil(); }
NamingUtil { public static String toGetterName(String name) { if (StringUtil.isEmpty(name)) { return ""; } return "get" + 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 toGetterName(String name) { if (StringUtil.isEmpty(name)) { return ""; } return "get" + 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);  }