|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wamblee.reflection.PropertyAccessor<T>
T - Type of the property.public class PropertyAccessor<T>
Accessing a property of an object.
| Constructor Summary | |
|---|---|
PropertyAccessor(Method aGetter,
Method aSetter)
Constructs the accessor. |
|
| Method Summary | |
|---|---|
T |
get(Object aEntity)
Gets the value. |
Method |
getGetter()
|
Method |
getSetter()
|
Class<T> |
getType()
Gets the type of the value. |
void |
set(Object aEntity,
T aValue)
Sets the value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyAccessor(Method aGetter,
Method aSetter)
aGetter - Getter method.aSetter - Setter method.| Method Detail |
|---|
public T get(Object aEntity)
Accessor
get in interface Accessor<T>aEntity - Object
public void set(Object aEntity,
T aValue)
Accessor
set in interface Accessor<T>aEntity - Object.aValue - Value.public Method getGetter()
public Method getSetter()
public String toString()
toString in class Objectpublic Class<T> getType()
Accessor
getType in interface Accessor<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||