dsto.dfc.databeans
Class SupersetDataObject

java.lang.Object
  extended by dsto.dfc.databeans.AbstractDataObject
      extended by dsto.dfc.databeans.DataObject
          extended by dsto.dfc.databeans.SupersetDataObject
All Implemented Interfaces:
IDataObject, IDataObjectChildListener, Serializable, Cloneable

public class SupersetDataObject
extends DataObject

An object that merges the properties of a set of sub-object's into a single object. As properties change on sub-object's the set updates to match.

Author:
Matthew Phillips
See Also:
Serialized Form

Field Summary
 
Fields inherited from class dsto.dfc.databeans.DataObject
propertyToValue, typeInfo
 
Fields inherited from class dsto.dfc.databeans.AbstractDataObject
listeners
 
Fields inherited from interface dsto.dfc.databeans.IDataObject
OVERRIDE, PERSISTENT, PERSISTENT_OVERRIDE, TRANSIENT, TRANSIENT_OVERRIDE
 
Constructor Summary
SupersetDataObject()
           
 
Method Summary
 void add(IDataObject object)
          Add a sub object to the set.
protected  void add(Object property, Object value)
           
 void dispose()
          This object listens to all sub-object's, so make sure to call this if this object has a more limited scope.
 void remove(IDataObject object)
          Remove an object from the superset.
protected  void remove(Object property, Object value)
           
 
Methods inherited from class dsto.dfc.databeans.DataObject
getTypeInfo, getValue, isTransient, iterator, propertyIterator, setTypeInfo, setValue, shallowClone
 
Methods inherited from class dsto.dfc.databeans.AbstractDataObject
addFirstPropertyListener, addPropertyListener, childPropertyChanged, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, getBeanValue, getBooleanValue, getBooleanValue, getCharValue, getCharValue, getDoubleValue, getDoubleValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getObjectValue, getPropertyListeners, getShortValue, getStringValue, registerValue, removePropertyListener, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, unregisterValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SupersetDataObject

public SupersetDataObject()
Method Detail

dispose

public void dispose()
This object listens to all sub-object's, so make sure to call this if this object has a more limited scope.


add

public void add(IDataObject object)
Add a sub object to the set. Properties of the sub object will appear in the super set at this point, except for proeperties that are already defined.

Parameters:
object - The object to add. May be added more than once (with no effect on subsequent adds).

remove

public void remove(IDataObject object)
Remove an object from the superset. All properties of the sub object disappear from the superset at this point, except for any overlapping properties in other sub objects that may have been hidden by this one. NOTE: this may be significantly slower than add ()


add

protected void add(Object property,
                   Object value)

remove

protected void remove(Object property,
                      Object value)


Copyright © 2008 Commonwealth of Australia