Class AbstractWorkflowConfigurationBuilder
- java.lang.Object
-
- de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowConfigurationBuilder
-
public abstract class AbstractWorkflowConfigurationBuilder extends Object
Bridge for workflow engine-based configurations of typeAbstractWorkflowBasedRunConfiguration
and eclipse launch configurations. Reads a workflow engine configuration and fills an eclipse launch configuration.
-
-
Field Summary
Fields Modifier and Type Field Description protected ILaunchConfiguration
configuration
Eclipse launch configuration.protected boolean
isDebug
debug mode.protected String
mode
The launch mode.protected Map<String,Object>
properties
Mapped properties / attributes.
-
Constructor Summary
Constructors Constructor Description AbstractWorkflowConfigurationBuilder(ILaunchConfiguration configuration, String mode)
Instantiates a new abstract workflow configuration builder.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
fillConfiguration(AbstractWorkflowBasedRunConfiguration configuration)
Fill configuration.protected Boolean
getBooleanAttribute(String attribute)
Gets the boolean attribute.protected double
getDoubleAttribute(String attribute)
Gets the double attribute.protected int
getIntegerAttribute(String attribute)
Gets the integer attribute.protected long
getLongAttribute(String attribute)
Gets the long attribute.protected String
getStringAttribute(String attribute)
Gets the string attribute.protected boolean
hasAttribute(String attribute)
Checks for attribute.protected boolean
hasStringAttribute(String attribute)
Checks for string attribute.
-
-
-
Field Detail
-
configuration
protected ILaunchConfiguration configuration
Eclipse launch configuration.
-
mode
protected String mode
The launch mode.
-
isDebug
protected boolean isDebug
debug mode.
-
-
Constructor Detail
-
AbstractWorkflowConfigurationBuilder
public AbstractWorkflowConfigurationBuilder(ILaunchConfiguration configuration, String mode) throws CoreException
Instantiates a new abstract workflow configuration builder.- Parameters:
configuration
- the configurationmode
- the mode- Throws:
CoreException
- the core exception
-
-
Method Detail
-
fillConfiguration
public abstract void fillConfiguration(AbstractWorkflowBasedRunConfiguration configuration) throws CoreException
Fill configuration.- Parameters:
configuration
- the configuration- Throws:
CoreException
- the core exception
-
hasAttribute
protected boolean hasAttribute(String attribute) throws CoreException
Checks for attribute.- Parameters:
attribute
- the attribute- Returns:
- true, if successful
- Throws:
CoreException
- the core exception
-
hasStringAttribute
protected boolean hasStringAttribute(String attribute) throws CoreException
Checks for string attribute.- Parameters:
attribute
- the attribute- Returns:
- true, if successful
- Throws:
CoreException
- the core exception
-
getStringAttribute
protected String getStringAttribute(String attribute) throws CoreException
Gets the string attribute.- Parameters:
attribute
- the attribute- Returns:
- the string attribute
- Throws:
CoreException
- the core exception
-
getDoubleAttribute
protected double getDoubleAttribute(String attribute) throws CoreException
Gets the double attribute.- Parameters:
attribute
- the attribute- Returns:
- the double attribute
- Throws:
CoreException
- the core exception
-
getIntegerAttribute
protected int getIntegerAttribute(String attribute) throws CoreException
Gets the integer attribute.- Parameters:
attribute
- the attribute- Returns:
- the integer attribute
- Throws:
CoreException
- the core exception
-
getLongAttribute
protected long getLongAttribute(String attribute) throws CoreException
Gets the long attribute.- Parameters:
attribute
- the attribute- Returns:
- the long attribute
- Throws:
CoreException
- the core exception
-
getBooleanAttribute
protected Boolean getBooleanAttribute(String attribute) throws CoreException
Gets the boolean attribute.- Parameters:
attribute
- the attribute- Returns:
- the boolean attribute
- Throws:
CoreException
- the core exception
-
-