Class AbstractWorkflowConfigurationBuilder
java.lang.Object
de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowConfigurationBuilder
Bridge for workflow engine-based configurations of type
AbstractWorkflowBasedRunConfiguration
and eclipse launch configurations.
Reads a workflow engine configuration and fills an
eclipse launch configuration.-
Field Summary
Modifier and TypeFieldDescriptionprotected ILaunchConfiguration
Eclipse launch configuration.protected boolean
debug mode.protected String
The launch mode.Mapped properties / attributes. -
Constructor Summary
ConstructorDescriptionAbstractWorkflowConfigurationBuilder
(ILaunchConfiguration configuration, String mode) Instantiates a new abstract workflow configuration builder. -
Method Summary
Modifier and TypeMethodDescriptionabstract 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 Details
-
configuration
Eclipse launch configuration. -
mode
The launch mode. -
isDebug
protected boolean isDebugdebug mode. -
properties
Mapped properties / attributes.
-
-
Constructor Details
-
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 Details
-
fillConfiguration
public abstract void fillConfiguration(AbstractWorkflowBasedRunConfiguration configuration) throws CoreException Fill configuration.- Parameters:
configuration
- the configuration- Throws:
CoreException
- the core exception
-
hasAttribute
Checks for attribute.- Parameters:
attribute
- the attribute- Returns:
- true, if successful
- Throws:
CoreException
- the core exception
-
hasStringAttribute
Checks for string attribute.- Parameters:
attribute
- the attribute- Returns:
- true, if successful
- Throws:
CoreException
- the core exception
-
getStringAttribute
Gets the string attribute.- Parameters:
attribute
- the attribute- Returns:
- the string attribute
- Throws:
CoreException
- the core exception
-
getDoubleAttribute
Gets the double attribute.- Parameters:
attribute
- the attribute- Returns:
- the double attribute
- Throws:
CoreException
- the core exception
-
getIntegerAttribute
Gets the integer attribute.- Parameters:
attribute
- the attribute- Returns:
- the integer attribute
- Throws:
CoreException
- the core exception
-
getLongAttribute
Gets the long attribute.- Parameters:
attribute
- the attribute- Returns:
- the long attribute
- Throws:
CoreException
- the core exception
-
getBooleanAttribute
Gets the boolean attribute.- Parameters:
attribute
- the attribute- Returns:
- the boolean attribute
- Throws:
CoreException
- the core exception
-