org.netbeans.modules.bpel.model.impl.services
Class MarkBuilderElement

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

public class MarkBuilderElement
extends InnerEventDispatcherAdapter

Author:
ads This service set flag for element that means element was built via builder.

Nested Class Summary
(package private)  class MarkBuilderElement.MarkBuilderElementKey
           
 
Field Summary
static java.lang.String CLASS_MARK_NAME
           
 
Constructor Summary
MarkBuilderElement()
           
 
Method Summary
(package private) static MarkBuilderElement.MarkBuilderElementKey getMark()
           
 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.
 void reset(ChangeEvent event)
          This method is called when some exception is detected in one of dispatchers.
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.services.InnerEventDispatcherAdapter
preDispatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_MARK_NAME

public static final java.lang.String CLASS_MARK_NAME
Constructor Detail

MarkBuilderElement

public MarkBuilderElement()
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.

reset

public void reset(ChangeEvent event)
Description copied from interface: InnerEventDispatcher
This method is called when some exception is detected in one of dispatchers. Then all dispatchers that collect some information on preDispatch stage can clear this information. Suggested use - when one of inner dispatchers throws VetoException then all diaspatchers need to clean internal state, because postDispatch will never be called.

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

getMark

static MarkBuilderElement.MarkBuilderElementKey getMark()