i3.dragos.gm.core.event
Class AttributeModificationEvent

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

public class AttributeModificationEvent
extends GraphEntityEvent

An AttributeModificationEvent is triggered when the attribute of a graph entity is modified.

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

Field Summary
static int ATTRIBUTE_CHANGED
          Event type constant: Identifies the change of an attribute value.
static int ATTRIBUTE_INVALIDATED
          Event type constant: Identifies the change of an attribute value.
 
Fields inherited from class i3.dragos.gm.core.event.GraphEntityEvent
CREATE, DESTROY
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AttributeModificationEvent(GraphEntity entity, int eventType, Attribute attribute)
          Constructs a new event.
 
Method Summary
 Attribute getAttribute()
          Returns the attribute that was modified.
 java.lang.String toString()
          
 
Methods inherited from class i3.dragos.gm.core.event.GraphEntityEvent
getGraphEntity
 
Methods inherited from class i3.dragos.gm.core.event.DataEvent
getAffectedElements, getDataSourceURL
 
Methods inherited from class i3.dragos.core.services.events.DragosEvent
getEventClass, getEventType
 
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_CHANGED

public static final int ATTRIBUTE_CHANGED
Event type constant: Identifies the change of an attribute value.

See Also:
Constant Field Values

ATTRIBUTE_INVALIDATED

public static final int ATTRIBUTE_INVALIDATED
Event type constant: Identifies the change of an attribute value.

See Also:
Constant Field Values
Constructor Detail

AttributeModificationEvent

public AttributeModificationEvent(GraphEntity entity,
                                  int eventType,
                                  Attribute attribute)
Constructs a new event.

Parameters:
entity - 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.

toString

public java.lang.String toString()

Overrides:
toString in class GraphEntityEvent


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