|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.util.reflect.PropertyHelper
public class PropertyHelper
This class provides some static function for transformting property names to getter/setter names.
Method Summary | |
---|---|
static java.lang.String |
getBooleanGetterName(java.lang.String property)
This method complements the functionality of getGetterName(String)
for boolen properties, where the getter method start with the string "is" instead of "get". |
static java.lang.String |
getBooleanPropertyFromGetterName(java.lang.String getterName)
Returns the property name of a given getter method name for boolean fields. |
static java.lang.String |
getGetterName(java.lang.String property)
|
static java.lang.String |
getPropertyFromGetterName(java.lang.String getterName)
Returns the property name of a given getter method name. |
static java.lang.String |
getPropertyFromSetterName(java.lang.String setterName)
Returns the property name of a given setter method name. |
static java.lang.String |
getSetterName(java.lang.String property)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getGetterName(java.lang.String property)
property
- The property for which to retrieve the getter name.
getBooleanGetterName(String)
public static java.lang.String getSetterName(java.lang.String property)
property
- The property for which to retrieve the setter name.
public static java.lang.String getBooleanGetterName(java.lang.String property)
getGetterName(String)
for boolen properties, where the getter method start with the string "is" instead of "get".
property
- The boolean property for which to retrieve the setter name.
public static java.lang.String getPropertyFromGetterName(java.lang.String getterName)
getterName
- The name of the getter function.
getBooleanPropertyFromGetterName(String)
public static java.lang.String getBooleanPropertyFromGetterName(java.lang.String getterName)
getGetterName(String)
for boolen properties, where the getter method start with the string "is" instead of "get".
getterName
- The name of the getter function.
public static java.lang.String getPropertyFromSetterName(java.lang.String setterName)
getterName
- The name of the setter function.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |