org.netbeans.modules.bpel.model.api.events
Class EntityUpdateEvent<T extends BpelEntity>

java.lang.Object
  extended by java.util.EventObject
      extended by org.netbeans.modules.bpel.model.api.events.ChangeEvent
          extended by org.netbeans.modules.bpel.model.api.events.IndexedChangeEvent
              extended by org.netbeans.modules.bpel.model.api.events.EntityUpdateEvent<T>
All Implemented Interfaces:
java.io.Serializable, OutOfModelEvent

public class EntityUpdateEvent<T extends BpelEntity>
extends IndexedChangeEvent
implements OutOfModelEvent

Author:
ads
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
EntityUpdateEvent(BpelEntity parent, java.lang.String name, T oldValue, T newValue)
          Constructor for EntityUpdateEvent without source ref.
EntityUpdateEvent(BpelEntity parent, java.lang.String name, T oldValue, T newValue, int index)
          Constructor for EntityUpdateEvent with index and without source ref.
EntityUpdateEvent(java.lang.Object source, BpelEntity parent, java.lang.String name, T oldValue, T newValue)
          Constructor for EntityUpdateEvent with source ref.
EntityUpdateEvent(java.lang.Object source, BpelEntity parent, java.lang.String name, T oldValue, T newValue, int index)
          Constructor for EntityUpdateEvent with source ref and index.
 
Method Summary
 T getNewValue()
           
 T getOldValue()
           
 BpelEntity getOutOfModelEntity()
          
 
Methods inherited from class org.netbeans.modules.bpel.model.api.events.IndexedChangeEvent
getIndex
 
Methods inherited from class org.netbeans.modules.bpel.model.api.events.ChangeEvent
getName, getParent, isLastInAtomic, setLast, setNotLast
 
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

EntityUpdateEvent

public EntityUpdateEvent(java.lang.Object source,
                         BpelEntity parent,
                         java.lang.String name,
                         T oldValue,
                         T newValue)
Constructor for EntityUpdateEvent with source ref.

Parameters:
source - source of event ( who produce this event ).
parent - element in OM that contains event entity.
name - entity name.
oldValue - old entity value.
newValue - old entity value.

EntityUpdateEvent

public EntityUpdateEvent(java.lang.Object source,
                         BpelEntity parent,
                         java.lang.String name,
                         T oldValue,
                         T newValue,
                         int index)
Constructor for EntityUpdateEvent with source ref and index.

Parameters:
source - source of event ( who produce this event ).
parent - element in OM that contains event entity.
name - entity name.
oldValue - old entity value.
newValue - new entity value.
index - index of child entity in parent.

EntityUpdateEvent

public EntityUpdateEvent(BpelEntity parent,
                         java.lang.String name,
                         T oldValue,
                         T newValue)
Constructor for EntityUpdateEvent without source ref.

Parameters:
parent - element in OM that contains event entity.
name - entity name.
oldValue - old entity value.
newValue - new entity value.

EntityUpdateEvent

public EntityUpdateEvent(BpelEntity parent,
                         java.lang.String name,
                         T oldValue,
                         T newValue,
                         int index)
Constructor for EntityUpdateEvent with index and without source ref.

Parameters:
parent - element in OM that contains event entity.
name - entity name.
oldValue - old entity value.
newValue - new entity value.
index - index of child entity in parent.
Method Detail

getOldValue

public T getOldValue()
Returns:
old value.

getNewValue

public T getNewValue()
Returns:
new value.

getOutOfModelEntity

public BpelEntity getOutOfModelEntity()

Specified by:
getOutOfModelEntity in interface OutOfModelEvent
Returns:
element that was moved out from model as result of some event.