|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.mwe.core.container.CompositeComponent
public class CompositeComponent
A composite WorkflowComponent.
Field Summary | |
---|---|
protected java.util.List<WorkflowComponent> |
components
All components aggregated by this composite |
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
CompositeComponent(java.lang.String name)
|
Method Summary | |
---|---|
void |
addBean(java.lang.Object obj)
Adds a bean. |
void |
addCartridge(Workflow cartridge)
Sets the aggregated components of this composite. |
void |
addComponent(WorkflowComponent component)
Sets the aggregated components of this composite. |
void |
addFeature(FeatureComponent comp)
adds a feature components to the list of components |
void |
addIf(IfComponent comp)
adds a conditionalcompositecomponent to the list of components |
void |
checkConfiguration(Issues issues)
Called by the container after configuration so the component can validate the configuration before invocation. |
protected Mwe2Bridge |
getBridge()
|
java.lang.String |
getComponentName()
Returns the name of the component. |
java.util.List<WorkflowComponent> |
getComponents()
Returns a list of aggregated components. |
CompositeComponent |
getContainer()
Returns the containing component if there is one. |
java.lang.String |
getId()
Returns the ID of the component. |
Location |
getLocation()
Returns the location of the entry in the parent workflow file. |
java.lang.String |
getLogMessage()
Returns the log message, |
java.lang.String |
getName()
Returns the name of the component. |
Location |
getOwnLocation()
Returns the location of the start and closing tags in the actual workflow file. |
java.lang.String |
getResource()
Returns the filename of the workflow. |
void |
invoke(IWorkflowContext ctx)
|
void |
invoke(WorkflowContext ctx,
ProgressMonitor monitor,
Issues issues)
Dispatches the invocation to all aggregated components. |
void |
postInvoke()
|
void |
preInvoke()
|
void |
put(java.lang.String name,
WorkflowComponent comp)
Adds a workflow component. |
void |
setContainer(CompositeComponent container)
Sets the containing component. |
void |
setId(java.lang.String id)
Sets the ID of the workflow component. |
void |
setLocation(Location location)
Sets the location in the source file that invokes the current component. |
void |
setOwnLocation(Location endLocation)
Sets the location of the start and closing tags in the actual workflow file. |
void |
setResource(java.lang.String resource)
Sets the filename of the workflow. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
protected java.util.List<WorkflowComponent> components
Constructor Detail |
---|
public CompositeComponent(java.lang.String name)
Method Detail |
---|
public java.util.List<WorkflowComponent> getComponents()
public java.lang.String getId()
WorkflowComponentWithID
getId
in interface WorkflowComponentWithID
public void setId(java.lang.String id)
WorkflowComponentWithID
setId
in interface WorkflowComponentWithID
id
- the IDpublic java.lang.String getLogMessage()
WorkflowComponentWithID
getLogMessage
in interface WorkflowComponentWithID
public void invoke(WorkflowContext ctx, ProgressMonitor monitor, Issues issues)
invoke
in interface WorkflowComponent
ctx
- current workflow contextmonitor
- implementors should provide some feedback about the progress
using this monitorpublic void checkConfiguration(Issues issues) throws ConfigurationException
WorkflowComponent
checkConfiguration
in interface WorkflowComponent
issues
- implementors should report configuration issues to this.
ConfigurationException
public java.lang.String getName()
public java.lang.String getResource()
public void setResource(java.lang.String resource)
resource
- the filenamepublic Location getLocation()
getLocation
in interface WorkflowComponent
WorkflowComponent.getLocation()
public void setLocation(Location location)
WorkflowComponent
setLocation
in interface WorkflowComponent
location
- the locationpublic Location getOwnLocation()
public void setOwnLocation(Location endLocation)
endLocation
- the locationpublic void addBean(java.lang.Object obj)
obj
- the beanpublic void addComponent(WorkflowComponent component)
components
- Components to aggregate.public void addCartridge(Workflow cartridge)
components
- Components to aggregate.public void addIf(IfComponent comp)
comp
- the conditional componentpublic void addFeature(FeatureComponent comp)
comp
- the feature componentpublic CompositeComponent getContainer()
WorkflowComponent
getContainer
in interface WorkflowComponent
WorkflowComponent.getContainer()
public void setContainer(CompositeComponent container)
WorkflowComponent
setContainer
in interface WorkflowComponent
container
- the containing componentWorkflowComponent.setContainer(org.eclipse.emf.mwe.core.container.CompositeComponent)
public void put(java.lang.String name, WorkflowComponent comp)
comp
- the componentpublic java.lang.String getComponentName()
WorkflowComponent
getComponentName
in interface WorkflowComponent
WorkflowComponent.getComponentName()
protected Mwe2Bridge getBridge()
public void preInvoke()
preInvoke
in interface IWorkflowComponent
public void invoke(IWorkflowContext ctx)
invoke
in interface IWorkflowComponent
public void postInvoke()
postInvoke
in interface IWorkflowComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |