i3.dragos.gm.core.event
Class GraphEntityClassEvent
java.lang.Object
java.util.EventObject
i3.dragos.core.services.events.DragosEvent
i3.dragos.gm.core.event.DataEvent
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 |
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 |
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
GraphEntityClassEvent
public GraphEntityClassEvent(GraphEntityClass entityClass,
int eventType)
- Constructs a new event.
- Parameters:
entityClass
- The graph entity class.eventType
- The type of event.
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.