org.netbeans.modules.bpel.model.impl
Class SetDeletedService

java.lang.Object
  extended by org.netbeans.modules.bpel.model.impl.services.InnerEventDispatcherAdapter
      extended by org.netbeans.modules.bpel.model.impl.SetDeletedService
All Implemented Interfaces:
InnerEventDispatcher

public class SetDeletedService
extends InnerEventDispatcherAdapter

This visitor marks elements that was lost in model that they are deleted. This service is responsible for inner flag isDeleted inside model. When element is disconnected from tree model it should have isDeleted flag equals true. Element could be disconnected from tree after deletion and also after replacing it by another element ( set method ). This flag needs to be set for each child element.

Author:
ads

Constructor Summary
SetDeletedService()
           
 
Method Summary
 boolean isApplicable(ChangeEvent event)
          This method called for checking either we need to call this visitor for event.
 void postDispatch(ChangeEvent event)
          This method will be called after action on model was performed.
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.services.InnerEventDispatcherAdapter
preDispatch, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetDeletedService

public SetDeletedService()
Method Detail

isApplicable

public boolean isApplicable(ChangeEvent event)
Description copied from interface: InnerEventDispatcher
This method called for checking either we need to call this visitor for event.

Specified by:
isApplicable in interface InnerEventDispatcher
Overrides:
isApplicable in class InnerEventDispatcherAdapter
Parameters:
event - Fired event.
Returns:
Is applicable this visitor for event.

postDispatch

public void postDispatch(ChangeEvent event)
Description copied from interface: InnerEventDispatcher
This method will be called after action on model was performed. It could perform additional changes in OM based on event information. F.e. it could change name of attribute that reference to some entity by name and this name was changed.

Specified by:
postDispatch in interface InnerEventDispatcher
Overrides:
postDispatch in class InnerEventDispatcherAdapter
Parameters:
event - Event that fired by OM after change was performed.