i3.dragos.gm.core.event
Class AttributeDeclarationEvent

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
                  extended by i3.dragos.gm.core.event.AttributeDeclarationEvent
All Implemented Interfaces:
java.io.Serializable

public class AttributeDeclarationEvent
extends GraphEntityClassEvent

An AttributeDeclarationEvent is triggered when an attribute is defined in the Schema.

Author:
Thorsten Hermes <thermes@i3.informatik.rwth-aachen.de>
See Also:
Serialized Form

Field Summary
static int ATTRIBUTE_DECLARE
          Event type constant: Identifies the declaration of an attribute.
static int ATTRIBUTE_UNDECLARE
          Event type constant: Identifies the declaration of an attribute.
 
Fields inherited from class i3.dragos.gm.core.event.GraphEntityClassEvent
DECLARE, UNDECLARE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AttributeDeclarationEvent(GraphEntityClass entityClass, int eventType, Attribute attribute)
          Constructs a new event.
 
Method Summary
 Attribute getAttribute()
          Returns the attribute that was modified.
 
Methods inherited from class i3.dragos.gm.core.event.GraphEntityClassEvent
getGraphEntityClass
 
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

ATTRIBUTE_DECLARE

public static final int ATTRIBUTE_DECLARE
Event type constant: Identifies the declaration of an attribute.

See Also:
Constant Field Values

ATTRIBUTE_UNDECLARE

public static final int ATTRIBUTE_UNDECLARE
Event type constant: Identifies the declaration of an attribute.

See Also:
Constant Field Values
Constructor Detail

AttributeDeclarationEvent

public AttributeDeclarationEvent(GraphEntityClass entityClass,
                                 int eventType,
                                 Attribute attribute)
Constructs a new event.

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

getAttribute

public final Attribute getAttribute()
Returns the attribute that was modified.

Returns:
the attribute that was modified.


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