Joda System API

org.joda.property.impl.data
Class DefaultPropertyData

java.lang.Object
  |
  +--org.joda.property.impl.data.AbstractPropertyData
        |
        +--org.joda.property.impl.data.DefaultPropertyData
All Implemented Interfaces:
InitializablePropertyData, PropertyData, java.io.Serializable
Direct Known Subclasses:
ModifiablePropertyData

public class DefaultPropertyData
extends AbstractPropertyData

Basic implementation of the PropertyData interface which stores the data in instance variables and fires simple events.

Author:
Stephen Colebourne
See Also:
Serialized Form

Constructor Summary
DefaultPropertyData()
          Constructor
 
Method Summary
 java.lang.Object get()
          Get the value of the property.
 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

DefaultPropertyData

public DefaultPropertyData()
Constructor

Method Detail

get

public java.lang.Object get()
Description copied from interface: PropertyData
Get the value of the property. The object type will be appropriate for the type of property.

Returns:
the Object previously stored by a set(Object)
See Also:
PropertyData#get()

set

public void set(java.lang.Object object)
Description copied from interface: PropertyData
Set the value of the property. The object type should be appropriate for the type of property.

Parameters:
object - an Object to store
See Also:
PropertyData#set(Object)

isModifiable

public boolean isModifiable()
Description copied from interface: PropertyData
Is the property currently modifiable.

Returns:
true if the property value can currently be changed
See Also:
PropertyData#isModifiable()

setModifiable

public void setModifiable(boolean modifiable)
Description copied from interface: PropertyData
Set the flag to indicate if the object is currently modifiable.

Parameters:
modifiable - true if object should be modifiable
See Also:
PropertyData#setModifiable(boolean)

isReadOnly

public boolean isReadOnly()
Description copied from interface: PropertyData
Is the property permanently unmodifiable.

Returns:
true if the property value can never be modified
See Also:
PropertyData#isReadOnly()

setReadOnly

public void setReadOnly()
Description copied from interface: PropertyData
Set the property permanently unmodifiable.

See Also:
PropertyData#setReadOnly()

Joda System API

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