|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.joda.property.impl.data.AbstractPropertyData | +--org.joda.property.impl.data.CodedBeanPropertyData
CodedBeanPropertyData uses reflection to access the get and set methods declared on the bean. The get and set methods do not have to be public. If the set method is non-public the property defaults to unmodifiable. If there is no set method, the property is read only.
Constructor Summary | |
CodedBeanPropertyData(AbstractBean bean,
java.lang.String propertyName)
Constructor |
Method Summary | |
java.lang.Object |
get()
Get the value of the property. |
java.lang.Class |
getPropertyType()
Get the type of the property as determined by refection |
boolean |
isModifiable()
Is the property currently modifiable. |
boolean |
isReadOnly()
Is the property permanently unmodifiable. |
void |
set(java.lang.Object object)
Set the value of the property. |
void |
setModifiable(boolean modifiable)
Set the flag to indicate if the object is currently modifiable. |
void |
setReadOnly()
Set the property permanently unmodifiable. |
Methods inherited from class org.joda.property.impl.data.AbstractPropertyData |
addPropertyChangeListener, bean, firePropertyChange, firePropertyChange, initPropertyDataCreated, property, removePropertyChangeListener, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.joda.property.impl.PropertyData |
equals, hashCode |
Constructor Detail |
public CodedBeanPropertyData(AbstractBean bean, java.lang.String propertyName)
bean
- the bean to call the methods onpropertyName
- the name of the property to accessMethod Detail |
public java.lang.Object get()
PropertyData
PropertyData.get()
public void set(java.lang.Object object)
PropertyData
object
- an Object to storePropertyData.set(Object)
public boolean isModifiable()
PropertyData
PropertyData.isModifiable()
public void setModifiable(boolean modifiable)
PropertyData
modifiable
- true if object should be modifiablePropertyData.setModifiable(boolean)
public boolean isReadOnly()
PropertyData
PropertyData.isReadOnly()
public void setReadOnly()
PropertyData
PropertyData.setReadOnly()
public java.lang.Class getPropertyType()
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |