|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A DataProperty is a property which can express all of its data in a single formalised String.
Nested Class Summary |
Nested classes inherited from class org.joda.property.Property |
Property.Internal |
Method Summary | |
java.lang.String |
toDataString()
Get the property's value as a string. |
Methods inherited from interface org.joda.property.Property |
addPropertyChangeListener, bean, equals, equalsValue, firePropertyChange, getContentName, getContentType, getPropertyName, getPropertyType, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, set, setModifiable, setReadOnly, toObject, toString |
Methods inherited from interface org.joda.property.ModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
Method Detail |
public java.lang.String toDataString()
This method has stronger semantics than an ordinary toString().
Where a and b are properties of the same type, it must be true
that:
b.set( a.toDataString() );
a.equals(b);
In other words, the string contains all the data necessary to
recreate the property's value.
Where possible, the string returned should be the same as that returned by calling toString() on the underlying object.
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |