|
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.AbstractModelElement
|
+--org.joda.property.impl.AbstractProperty
|
+--org.joda.property.impl.type.DefaultObjectProperty
Default implementation of a non-typed immutable property. The immutable aspect is important as it means the object doesn't have to be cloned on the way in and out.
Data is stored in the associated PropertyData object as the passed in type.
| Nested Class Summary |
| Nested classes inherited from class org.joda.property.Property |
Property.Internal |
| Field Summary |
| Fields inherited from interface org.joda.property.type.ObjectProperty |
DEFAULT_TYPE |
| Constructor Summary | |
DefaultObjectProperty()
Constructor |
|
| Method Summary | |
java.lang.Object |
convertObject(java.lang.Object object)
Convert an object, typically passed in as a parameter, to the underlying type for this property. |
java.lang.Object |
get()
Get the contents of the property |
protected java.lang.Object |
getInternal()
Get the property as a generic object |
java.lang.Class |
getPropertyType()
Get the type of the property. |
void |
initPropertyCreated(PropertyInit init)
Initialisation |
void |
set(java.lang.Object propertyValue)
Set the property's value as an object. |
protected void |
setInternal(java.lang.Object newValue)
Set the property value as a generic object |
java.lang.Object |
toObject()
Get the property's value as an object. |
| Methods inherited from class org.joda.property.impl.AbstractProperty |
addPropertyChangeListener, bean, checkArgumentNotNull, checkModifiable, checkValueNotNull, checkValueNotNull, cloneDeep, createClonedProperty, data, equals, equalsValue, firePropertyChange, firePropertyChange, getContentName, getContentType, getPropertyName, getThis, hashCode, initBeanCreated, isModifiable, isNull, isReadOnly, populateClonedProperty, removePropertyChangeListener, setModifiable, setReadOnly, toDataString, toString |
| Methods inherited from class org.joda.property.impl.AbstractModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.joda.property.type.DataProperty |
toDataString |
| Methods inherited from interface org.joda.property.Property |
addPropertyChangeListener, bean, equals, equalsValue, firePropertyChange, getContentName, getContentType, getPropertyName, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, setModifiable, setReadOnly, toString |
| Methods inherited from interface org.joda.property.ModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
| Constructor Detail |
public DefaultObjectProperty()
| Method Detail |
public void initPropertyCreated(PropertyInit init)
initPropertyCreated in interface InitializablePropertyinitPropertyCreated in class AbstractPropertypublic java.lang.Class getPropertyType()
getPropertyType in interface Propertyprotected java.lang.Object getInternal()
protected void setInternal(java.lang.Object newValue)
newValue - the value to storepublic java.lang.Object get()
ObjectProperty
get in interface ObjectPropertyObjectProperty.get()public java.lang.Object toObject()
Property
This method has strong semantics such that where a and b are
properties of the same type, it must be true that:
b.set( a.toObject() );
a.equals(b);
In other words, the object contains all the data necessary to
recreate the property's value.
toObject in interface PropertytoObject in class AbstractPropertyProperty#toObject()public java.lang.Object convertObject(java.lang.Object object)
AbstractProperty
convertObject in class AbstractPropertyobject - input object
AbstractProperty.convertObject(Object)public void set(java.lang.Object propertyValue)
PropertyIf a String is passed in, it can be parsed in various ways. If the results of toDataString() are passed in, it must reconstitute the original value.
set in interface Propertyset in class AbstractPropertypropertyValue - an Object to set the property's value toProperty#set(Object)
|
Joda System API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||