Interface MergingActivityConfiguration
-
- All Superinterfaces:
ActivityConfiguration
,Configuration
,MergingConfiguration
,Serializable
public interface MergingActivityConfiguration extends MergingConfiguration, ActivityConfiguration
This class merges several activity configurations to one configuration. All configurations are managed in a list. When retrieving a configuration value (or from a parameter of from a process configuration), the list is iterated and the first non-null value is returned.- Author:
- Ulrich Kreher
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.aristaflow.adept2.model.common.Configuration
Configuration.ConfigurationIDs
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
Generated ID for serialisation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFirst(ActivityConfiguration configuration)
Adds the designated configuration as the first configuration that overrides the other configurations.void
addLast(ActivityConfiguration configuration)
Adds the designated configuration as the last configuration that is overridden by all other configurations.List<ActivityConfiguration>
getConfigurations()
Gets a copy of the list of all configurations that are merged by thisMergingConfiguration
.ActivityConfiguration
getMergedConfiguration()
Gets one configuration containing the merged values, that is the list of configurations is merged to a single configuration.-
Methods inherited from interface de.aristaflow.adept2.model.common.ActivityConfiguration
fromInputParameter, fromProcessConfiguration, getAllEntries
-
Methods inherited from interface de.aristaflow.adept2.model.common.Configuration
getBoolean, getConfigurationID, getDate, getFloat, getInteger, getString, getUDT, getURI, isFixed
-
Methods inherited from interface de.aristaflow.adept2.model.common.MergingConfiguration
addFirst, addLast
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
Generated ID for serialisation.- See Also:
- Constant Field Values
-
-
Method Detail
-
getConfigurations
List<ActivityConfiguration> getConfigurations()
Gets a copy of the list of all configurations that are merged by thisMergingConfiguration
. Prior configurations override later ones.- Specified by:
getConfigurations
in interfaceMergingConfiguration
- Returns:
- A list of all configurations that are merged by this
MergingConfiguration
.
-
addFirst
void addFirst(ActivityConfiguration configuration)
Adds the designated configuration as the first configuration that overrides the other configurations.- Parameters:
configuration
- The configuration to override the other configurations in thisMergingConfiguration
.
-
addLast
void addLast(ActivityConfiguration configuration)
Adds the designated configuration as the last configuration that is overridden by all other configurations.- Parameters:
configuration
- The configuration that is overridden by all other configurations in thisMergingConfiguration
.
-
getMergedConfiguration
ActivityConfiguration getMergedConfiguration()
Gets one configuration containing the merged values, that is the list of configurations is merged to a single configuration. This allows for better performance than thisMergingConfiguration
.- Specified by:
getMergedConfiguration
in interfaceMergingConfiguration
- Returns:
- One configuration containing the merged values of all
configurations of this
MergingConfiguration
.
-
-