Joda System API

org.joda.property.type
Interface ObjectProperty

All Superinterfaces:
DataProperty, ModelElement, Property, java.io.Serializable
All Known Implementing Classes:
DefaultObjectProperty

public interface ObjectProperty
extends DataProperty

Interface for property types which are not provided by Joda but are immutable. Immutable means that there are no instance methods which change the value of the object. For these properties, toDataString() will be toString() on the stored object. This kind of property cannot be recreated from a String. In summary, it is better to write a special kind of Property rather than rely on this class.

Author:
Stephen Colebourne

Nested Class Summary
 
Nested classes inherited from class org.joda.property.Property
Property.Internal
 
Field Summary
static java.lang.Class DEFAULT_TYPE
           
 
Method Summary
 java.lang.Object get()
          Get the contents of the property
 
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, getPropertyType, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, set, setModifiable, setReadOnly, toObject, toString
 
Methods inherited from interface org.joda.property.ModelElement
getAttribute, getAttributeCount, getAttributeMap, setAttribute
 

Field Detail

DEFAULT_TYPE

public static final java.lang.Class DEFAULT_TYPE
Method Detail

get

public java.lang.Object get()
Get the contents of the property

Returns:
property value

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.