public class NameUtils extends Object
| Modifiers | Name | Description |
|---|---|---|
static String |
DOLLAR_SEPARATOR |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static String |
capitalize(String name)Converts a property name to class name according to the JavaBean convention |
|
public static String |
decapitalize(String name)Converts class name to property name using JavaBean decapitalization |
|
public static String |
decapitalizeFirstChar(String name)Transforms the first character of a string into a lowercase letter |
|
public static String |
getClassName(Class clazz)Get the class name, taking into account proxies |
|
public static String |
getGetterName(String propertyName)Retrieves the name of a setter for the specified property name |
|
public static String |
getGetterName(String propertyName, boolean useBooleanPrefix)Retrieves the name of a setter for the specified property name |
|
public static String |
getPropertyNameForGetterOrSetter(String getterOrSetterName)Returns the property name for a getter or setter |
|
public static String |
getSetterName(String propertyName)Retrieves the name of a setter for the specified property name |
|
public static boolean |
isConfigurational(String name) |
|
public static boolean |
isNotConfigurational(String name) |
Converts a property name to class name according to the JavaBean convention
name - The property nameConverts class name to property name using JavaBean decapitalization
name - The class nameTransforms the first character of a string into a lowercase letter
name - String to be transformedGet the class name, taking into account proxies
clazz - The classRetrieves the name of a setter for the specified property name
propertyName - The property nameRetrieves the name of a setter for the specified property name
propertyName - The property nameuseBooleanPrefix - true if property is type of booleanReturns the property name for a getter or setter
getterOrSetterName - The getter or setter nameRetrieves the name of a setter for the specified property name
propertyName - The property name