@Test public void testToAttributeName(){ Assert.assertEquals("", NamingUtil.toAttributeName("")); Assert.assertEquals("a", NamingUtil.toAttributeName("A")); Assert.assertEquals("systemCodes", NamingUtil.toAttributeName("SystemCodes")); }
public static String toAttributeName(String name) { if (StringUtil.isEmpty(name)) { return ""; } if (name.length()>=2) { return name.substring(0,1).toLowerCase() + name.substring(1); } else { return name.toLowerCase(); } }
NamingUtil { public static String toAttributeName(String name) { if (StringUtil.isEmpty(name)) { return ""; } if (name.length()>=2) { return name.substring(0,1).toLowerCase() + name.substring(1); } else { return name.toLowerCase(); } } }
NamingUtil { public static String toAttributeName(String name) { if (StringUtil.isEmpty(name)) { return ""; } if (name.length()>=2) { return name.substring(0,1).toLowerCase() + name.substring(1); } else { return name.toLowerCase(); } } private  NamingUtil(); }
NamingUtil { public static String toAttributeName(String name) { if (StringUtil.isEmpty(name)) { return ""; } if (name.length()>=2) { return name.substring(0,1).toLowerCase() + name.substring(1); } else { return name.toLowerCase(); } } 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 toAttributeName(String name) { if (StringUtil.isEmpty(name)) { return ""; } if (name.length()>=2) { return name.substring(0,1).toLowerCase() + name.substring(1); } else { return name.toLowerCase(); } } 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);  }