|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.joda.beans.SimpleProperty<B,T>
public class SimpleProperty<B,T>
Implementation of a Property that uses reflection to access
get and set methods.
| Constructor Summary | |
|---|---|
SimpleProperty(B bean,
MetaProperty<B,T> metaProperty)
Constructor. |
|
| Method Summary | |
|---|---|
B |
bean()
Gets the bean which owns this bound property. |
T |
get()
Gets the value of the bound property. |
MetaProperty<B,T> |
metaProperty()
Gets the property itself. |
void |
set(T value)
Sets the value of the bound property. |
String |
toString()
Returns a debugging string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleProperty(B bean,
MetaProperty<B,T> metaProperty)
bean - the bean that the property is bound to, not nullmetaProperty - the meta property, not null| Method Detail |
|---|
public B bean()
bean in interface Property<B,T>public MetaProperty<B,T> metaProperty()
metaProperty in interface Property<B,T>public T get()
This is the equivalent to calling getFoo() on the bean itself.
get in interface Property<B,T>UnsupportedOperationException - if the property is write-onlypublic void set(T value)
This is the equivalent to calling setFoo() on the bean itself.
set in interface Property<B,T>value - the value to set into the property on the bound bean
UnsupportedOperationException - if the property is read-onlypublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||