org.netbeans.modules.bpel.model.api.events
Class ChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.netbeans.modules.bpel.model.api.events.ChangeEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArrayUpdateEvent, IndexedChangeEvent, PropertyRemoveEvent, PropertyUpdateEvent, TreeCreatedEvent

public abstract class ChangeEvent
extends java.util.EventObject

Base class for events in BPEL OM. Contains common methods for each event.

Author:
ads
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChangeEvent(java.lang.Object source, BpelEntity parent, java.lang.String name)
          Constructor for ChangeEvent class.
 
Method Summary
 java.lang.String getName()
           
 BpelEntity getParent()
           
 boolean isLastInAtomic()
           
 void setLast()
          This method set flag for event that it is last event in chain of events.
 void setNotLast()
          This method set flag for event that it is not last event in chain of events.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeEvent

public ChangeEvent(java.lang.Object source,
                   BpelEntity parent,
                   java.lang.String name)
Constructor for ChangeEvent class.

Parameters:
source - this is reserved object that could point to source of event ( who sent this event ).
parent - parent entity. Inside this parent event has occured.
name - name of attribute or tag. Not always have sense.
Method Detail

getParent

public BpelEntity getParent()
Returns:
parent for enitity or attribute in OM for which this event occurs.

getName

public java.lang.String getName()
Returns:
name of tag or attribute of affected entity(ies).

isLastInAtomic

public boolean isLastInAtomic()
Returns:
Is this event last in chain of events that are fired in one transaction.

setLast

public void setLast()
This method set flag for event that it is last event in chain of events. It could be used only one time. After setting flag it could not be changed.


setNotLast

public void setNotLast()
This method set flag for event that it is not last event in chain of events. It could be used only one time. After setting flag it could not be changed.