public abstract class MetaProperty extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
name  | 
static String | 
PROPERTY_SET_PREFIX  | 
protected Class | 
type  | 
| Constructor and Description | 
|---|
MetaProperty(String name,
            Class type)
Constructor that sets the property name and type (class) 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
getGetterName(String propertyName,
             Class type)
Gets the name for the getter for this property 
 | 
int | 
getModifiers()
Returns the access modifier. 
 | 
String | 
getName()
Return the name of the property 
 | 
abstract Object | 
getProperty(Object object)  | 
static String | 
getSetterName(String propertyName)
Gets the setter for the getter for this property. 
 | 
Class | 
getType()  | 
abstract void | 
setProperty(Object object,
           Object newValue)
Sets the property on the given object to the new value 
 | 
protected final String name
protected Class type
public static final String PROPERTY_SET_PREFIX
public abstract Object getProperty(Object object)
Exception - if the property could not be evaluatedpublic abstract void setProperty(Object object, Object newValue)
object - on which to set the propertynewValue - the new value of the propertyRuntimeException - if the property could not be setpublic String getName()
public Class getType()
public int getModifiers()
public static String getGetterName(String propertyName, Class type)