org.escot
Interface EscotAssociated

All Known Implementing Classes:
BasicBoolean, BasicNumber, BasicString

public interface EscotAssociated

Objects implementing this interface can associate with one or more other objects, for example, to be notified of changes.


Method Summary
 void addAssociate(Object foreignAssociate)
          Invoked when the foreign associate is associated with.
 boolean canAddAssociate(Object foreignAssociate)
          Returns whether the object may add the foreign associate.
 void removeAssociate(Object foreignAssociate)
          Invoked when the foreign associate is no longer associated with.
 

Method Detail

canAddAssociate

public boolean canAddAssociate(Object foreignAssociate)
Returns whether the object may add the foreign associate.
Parameters:
foreignAssociate - the object to associate with

addAssociate

public void addAssociate(Object foreignAssociate)
Invoked when the foreign associate is associated with.
Parameters:
foreignAssociate - the object to associate with

removeAssociate

public void removeAssociate(Object foreignAssociate)
Invoked when the foreign associate is no longer associated with.
Parameters:
foreignAssociate - the object to stop associating with