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) |
Modifier and Type | Method and Description |
---|---|
static String |
getGetterName(String propertyName,
Class type) |
int |
getModifiers() |
String |
getName() |
abstract Object |
getProperty(Object object) |
static String |
getSetterName(String propertyName) |
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()