org.eclipse.emf.mwe.core.container
Class ConditionalComponent

java.lang.Object
  extended by org.eclipse.emf.mwe.core.container.CompositeComponent
      extended by org.eclipse.emf.mwe.core.container.ConditionalComponent
All Implemented Interfaces:
WorkflowConditional, WorkflowComponent, WorkflowComponentWithID, IWorkflowComponent
Direct Known Subclasses:
FeatureComponent, IfComponent

public abstract class ConditionalComponent
extends CompositeComponent
implements WorkflowConditional


Field Summary
 
Fields inherited from class org.eclipse.emf.mwe.core.container.CompositeComponent
components, log
 
Constructor Summary
ConditionalComponent(java.lang.String name)
           
 
Method Summary
 void checkConfiguration(Issues issues)
          Called by the container after configuration so the component can validate the configuration before invocation.
 void invoke(WorkflowContext ctx, ProgressMonitor monitor, Issues issues)
          Dispatches the invocation to all aggregated components.
 void setElse(CompositeComponent comp)
           
 
Methods inherited from class org.eclipse.emf.mwe.core.container.CompositeComponent
addBean, addCartridge, addComponent, addFeature, addIf, getBridge, getComponentName, getComponents, getContainer, getId, getLocation, getLogMessage, getName, getOwnLocation, getResource, invoke, postInvoke, preInvoke, put, setContainer, setId, setLocation, setOwnLocation, setResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.mwe.core.container.WorkflowConditional
evaluate
 

Constructor Detail

ConditionalComponent

public ConditionalComponent(java.lang.String name)
Method Detail

setElse

public void setElse(CompositeComponent comp)

invoke

public void invoke(WorkflowContext ctx,
                   ProgressMonitor monitor,
                   Issues issues)
Dispatches the invocation to all aggregated components.

Specified by:
invoke in interface WorkflowComponent
Overrides:
invoke in class CompositeComponent
Parameters:
ctx - current workflow context
monitor - implementors should provide some feedback about the progress using this monitor

checkConfiguration

public void checkConfiguration(Issues issues)
                        throws ConfigurationException
Description copied from interface: WorkflowComponent
Called by the container after configuration so the component can validate the configuration before invocation.

Specified by:
checkConfiguration in interface WorkflowComponent
Overrides:
checkConfiguration in class CompositeComponent
Parameters:
issues - implementors should report configuration issues to this.
Throws:
ConfigurationException