public class ReflectedProperty
extends java.lang.Object
Constructor and Description |
---|
ReflectedProperty(java.lang.Object object,
java.lang.String propertyName)
Construct a ReflectedProperty on some object, given the property name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get()
Return the property's value.
|
java.lang.String |
getPropertyName()
Returns the property's name.
|
java.lang.Class |
getType()
Return the property's type.
|
boolean |
isReadOnly()
Returns if the property is read-only.
|
void |
set(java.lang.Object newValue)
Set the property's value.
|
public ReflectedProperty(java.lang.Object object, java.lang.String propertyName)
object
- The objectpropertyName
- The property namepublic java.lang.Class getType()
public java.lang.Object get()
public void set(java.lang.Object newValue)
newValue
- The value to set.public boolean isReadOnly()
public java.lang.String getPropertyName()