public class NameUtils extends java.lang.Object
Modifiers | Name | Description |
---|---|---|
private static java.util.Set<java.lang.String> |
CONFIGURATIONAL_PROPERTIES |
|
static java.lang.String |
DOLLAR_SEPARATOR |
|
private static java.lang.String |
PROPERTY_GET_PREFIX |
|
private static java.lang.String |
PROPERTY_IS_PREFIX |
|
private static java.lang.String |
PROPERTY_SET_PREFIX |
Type Params | Return Type | Name and description |
---|---|---|
|
public static java.lang.String |
capitalize(java.lang.String name) Converts a property name to class name according to the JavaBean convention |
|
public static java.lang.String |
decapitalize(java.lang.String name) Converts class name to property name using JavaBean decapitalization |
|
public static java.lang.String |
decapitalizeFirstChar(java.lang.String name) Transforms the first character of a string into a lowercase letter |
|
public static java.lang.String |
getClassName(java.lang.Class clazz) Get the class name, taking into account proxies |
|
public static java.lang.String |
getGetterName(java.lang.String propertyName) Retrieves the name of a setter for the specified property name |
|
public static java.lang.String |
getGetterName(java.lang.String propertyName, boolean useBooleanPrefix) Retrieves the name of a setter for the specified property name |
|
public static java.lang.String |
getPropertyNameForGetterOrSetter(java.lang.String getterOrSetterName) Returns the property name for a getter or setter |
|
public static java.lang.String |
getSetterName(java.lang.String propertyName) Retrieves the name of a setter for the specified property name |
|
public static boolean |
isConfigurational(java.lang.String name) |
|
public static boolean |
isNotConfigurational(java.lang.String name) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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