|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aerogear.android.impl.reflection.Property
public class Property
Helper to access property with reflection
| Constructor Summary | |
|---|---|
Property(Class klass,
String fieldName)
Constructor to access field with get/set |
|
| Method Summary | |
|---|---|
String |
getFieldName()
|
Object |
getValue(Object instance)
Get value |
void |
setValue(Object instance,
Object value)
Set new value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Property(Class klass,
String fieldName)
klass - Class to be manipulatedfieldName - Field to be accessed
IllegalArgumentException - if either param is null
PropertyNotFoundException - if property isn't found| Method Detail |
|---|
public Object getValue(Object instance)
instance - Instance to get value
public void setValue(Object instance,
Object value)
instance - Instance to set new valuevalue - new valuepublic String getFieldName()
|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||