org.netbeans.modules.bpel.model.api.events
Class EntityRemoveEvent<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.EntityRemoveEvent<T>
All Implemented Interfaces:
java.io.Serializable, OutOfModelEvent

public class EntityRemoveEvent<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
EntityRemoveEvent(BpelEntity parent, java.lang.String name, T value)
          Constructor for EntityRemoveEvent without source ref.
EntityRemoveEvent(BpelEntity parent, java.lang.String name, T value, int index)
          Constructor for EntityRemoveEvent with index and without source ref.
EntityRemoveEvent(java.lang.Object source, BpelEntity parent, java.lang.String name, T value)
          Constructor for EntityRemoveEvent with source ref.
EntityRemoveEvent(java.lang.Object source, BpelEntity parent, java.lang.String name, T value, int index)
          Constructor for EntityRemoveEvent with source ref and index.
 
Method Summary
 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

EntityRemoveEvent

public EntityRemoveEvent(java.lang.Object source,
                         BpelEntity parent,
                         java.lang.String name,
                         T value)
Constructor for EntityRemoveEvent with source ref.

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

EntityRemoveEvent

public EntityRemoveEvent(java.lang.Object source,
                         BpelEntity parent,
                         java.lang.String name,
                         T value,
                         int index)
Constructor for EntityRemoveEvent 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.
value - old entity value.
index - index of child entity in parent.

EntityRemoveEvent

public EntityRemoveEvent(BpelEntity parent,
                         java.lang.String name,
                         T value)
Constructor for EntityRemoveEvent without source ref.

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

EntityRemoveEvent

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

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

getOutOfModelEntity

public BpelEntity getOutOfModelEntity()

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

getOldValue

public T getOldValue()
Returns:
inserted value.