org.datamanager.event
Class AttachLinkEvent

java.lang.Object
  |
  +--org.datamanager.event.DataManagerEventAdapter
        |
        +--org.datamanager.event.AttachLinkEvent
All Implemented Interfaces:
ContainsEntityEvent, DataManagerEvent, EntityEvent, EntityValue, KernelEvent, LinkEvent, Serializable

public class AttachLinkEvent
extends DataManagerEventAdapter
implements LinkEvent, ContainsEntityEvent

This event is fired when Entity.attach() is invoked.

Author:
Matthew Farrellee
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.datamanager.event.DataManagerEventAdapter
source, time
 
Constructor Summary
AttachLinkEvent(EventGenerator source, Entity attachedEntity)
          The public constructor used to create an AttachLinkEvent.
 
Method Summary
 Entity getEntity()
          Reports the Entity that was attached.
 String toString()
          A toString() method to provide a meaningful String representation of this event.
 
Methods inherited from class org.datamanager.event.DataManagerEventAdapter
getSource, getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.datamanager.event.DataManagerEvent
getSource, getTime
 

Constructor Detail

AttachLinkEvent

public AttachLinkEvent(EventGenerator source,
                       Entity attachedEntity)
The public constructor used to create an AttachLinkEvent.

Parameters:
source - The source of this event. Usually 'this'.
attachedEntity - The Entity that was attached.
Method Detail

getEntity

public Entity getEntity()
Reports the Entity that was attached.

Specified by:
getEntity in interface ContainsEntityEvent
Returns:
The Entity that was attached.

toString

public String toString()
A toString() method to provide a meaningful String representation of this event.

Specified by:
toString in interface DataManagerEvent
Specified by:
toString in class DataManagerEventAdapter
Returns:
A meaningful String representation of this event.


See the Helium Website