i3.dragos.gm.core.event
Class GraphEntityClassEvent

java.lang.Object
  extended by java.util.EventObject
      extended by i3.dragos.core.services.events.DragosEvent
          extended by i3.dragos.gm.core.event.DataEvent
              extended by i3.dragos.gm.core.event.GraphEntityClassEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AttributeDeclarationEvent, GraphEntityClassHierachyEvent

public class GraphEntityClassEvent
extends DataEvent

A GraphEntityClassEvent is triggered for graph entity class related actions such as declaring, changing or undeclaring them.

Author:
Boris Boehlen <boehlen@cs.rwth-aachen.de>, Thorsten Hermes <thermes@i3.informatik.rwth-aachen.de>
See Also:
Serialized Form

Field Summary
static int DECLARE
          Event type constant: Identifies the declaration of a GraphEntityClass.
static int UNDECLARE
          Event type constant: Identifies the undeclaration of a GraphEntityClass.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GraphEntityClassEvent(GraphEntityClass entityClass, int eventType)
          Constructs a new event.
 
Method Summary
 GraphEntityClass getGraphEntityClass()
          Returns the graph entity class which caused the event.
 
Methods inherited from class i3.dragos.gm.core.event.DataEvent
getAffectedElements, getDataSourceURL
 
Methods inherited from class i3.dragos.core.services.events.DragosEvent
getEventClass, getEventType, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DECLARE

public static final int DECLARE
Event type constant: Identifies the declaration of a GraphEntityClass.

See Also:
Constant Field Values

UNDECLARE

public static final int UNDECLARE
Event type constant: Identifies the undeclaration of a GraphEntityClass.

See Also:
Constant Field Values
Constructor Detail

GraphEntityClassEvent

public GraphEntityClassEvent(GraphEntityClass entityClass,
                             int eventType)
Constructs a new event.

Parameters:
entityClass - The graph entity class.
eventType - The type of event.
Method Detail

getGraphEntityClass

public final GraphEntityClass getGraphEntityClass()
Returns the graph entity class which caused the event. This is just a convenience to avoid casting the result of getSource().

Returns:
the graph entity class which caused the event.


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.