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

public class ArrayUpdateEvent<T extends BpelEntity>
extends ChangeEvent

Author:
ads
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ArrayUpdateEvent(BpelEntity parent, java.lang.String name, T[] oldArray, T[] newArray)
          Constructor for ArrayUpdateEvent without source ref.
ArrayUpdateEvent(java.lang.Object source, BpelEntity parent, java.lang.String name, T[] oldArray, T[] newArray)
          Constructor for ArrayUpdateEvent with source ref.
 
Method Summary
 T[] getNewArray()
           
 T[] getOldArray()
           
 
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

ArrayUpdateEvent

public ArrayUpdateEvent(java.lang.Object source,
                        BpelEntity parent,
                        java.lang.String name,
                        T[] oldArray,
                        T[] newArray)
Constructor for ArrayUpdateEvent with source ref.

Parameters:
source - source of event.
parent - parent container which caused by array changing.
name - name of tag ( not always have sense. F.e. sequence contains activitis with its own tags and we cannot put the same name for each activity. But f.e. for VariableContainer it will be "variable" ).
oldArray - Old array value.
newArray - New array value.

ArrayUpdateEvent

public ArrayUpdateEvent(BpelEntity parent,
                        java.lang.String name,
                        T[] oldArray,
                        T[] newArray)
Constructor for ArrayUpdateEvent without source ref.

Parameters:
parent - parent container which caused by array changing.
name - name of tag - see comments for previous CTOR.
oldArray - Old array value.
newArray - New array value.
Method Detail

getOldArray

public T[] getOldArray()
Returns:
array before event appeared.

getNewArray

public T[] getNewArray()
Returns:
array after changing.