de.uka.ipd.sdq.featureconfig.impl
Class ConfigurationImpl

java.lang.Object
  extended by EObjectImpl
      extended by de.uka.ipd.sdq.featureconfig.impl.ConfigurationImpl
All Implemented Interfaces:
Configuration

public class ConfigurationImpl
extends EObjectImpl
implements Configuration

An implementation of the model object 'Configuration'.

The following features are implemented:


Field Summary
protected  FeatureConfig configOverrides
          The cached value of the 'Config Overrides' containment reference.
protected  FeatureConfig defaultConfig
          The cached value of the 'Default Config' containment reference.
protected  String name
          The cached value of the 'Name' attribute.
protected static String NAME_EDEFAULT
          The default value of the 'Name' attribute.
 
Constructor Summary
protected ConfigurationImpl()
           
 
Method Summary
 NotificationChain basicSetConfigOverrides(FeatureConfig newConfigOverrides, NotificationChain msgs)
           
 NotificationChain basicSetDefaultConfig(FeatureConfig newDefaultConfig, NotificationChain msgs)
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 FeatureConfig getConfigOverrides()
           
 FeatureConfig getDefaultConfig()
           
 String getName()
           
 boolean mandatoryFeaturesChecked(Configuration configuration, DiagnosticChain diagnostics, Map<Object,Object> context)
          Checks if all mandatory Features are selected
 boolean minMaxCorrect(Configuration configuration, DiagnosticChain diagnostics, Map<Object,Object> context)
          Checks if the the number of selected Feature objects in every FeatureGroup is in the Min:Max range of that group
 void setConfigOverrides(FeatureConfig newConfigOverrides)
           
 void setDefaultConfig(FeatureConfig newDefaultConfig)
           
 void setName(String newName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultConfig

protected FeatureConfig defaultConfig
The cached value of the 'Default Config' containment reference.

See Also:
getDefaultConfig()

configOverrides

protected FeatureConfig configOverrides
The cached value of the 'Config Overrides' containment reference.

See Also:
getConfigOverrides()

NAME_EDEFAULT

protected static final String NAME_EDEFAULT
The default value of the 'Name' attribute.

See Also:
getName()

name

protected String name
The cached value of the 'Name' attribute.

See Also:
getName()
Constructor Detail

ConfigurationImpl

protected ConfigurationImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()


getDefaultConfig

public FeatureConfig getDefaultConfig()

Specified by:
getDefaultConfig in interface Configuration
Returns:
the value of the 'Default Config' containment reference.
See Also:
Configuration.setDefaultConfig(FeatureConfig), featureconfigPackage.getConfiguration_DefaultConfig()

basicSetDefaultConfig

public NotificationChain basicSetDefaultConfig(FeatureConfig newDefaultConfig,
                                               NotificationChain msgs)


setDefaultConfig

public void setDefaultConfig(FeatureConfig newDefaultConfig)

Specified by:
setDefaultConfig in interface Configuration
Parameters:
newDefaultConfig - the new value of the 'Default Config' containment reference.
See Also:
Configuration.getDefaultConfig()

getConfigOverrides

public FeatureConfig getConfigOverrides()

Specified by:
getConfigOverrides in interface Configuration
Returns:
the value of the 'Config Overrides' containment reference.
See Also:
Configuration.setConfigOverrides(FeatureConfig), featureconfigPackage.getConfiguration_ConfigOverrides()

basicSetConfigOverrides

public NotificationChain basicSetConfigOverrides(FeatureConfig newConfigOverrides,
                                                 NotificationChain msgs)


setConfigOverrides

public void setConfigOverrides(FeatureConfig newConfigOverrides)

Specified by:
setConfigOverrides in interface Configuration
Parameters:
newConfigOverrides - the new value of the 'Config Overrides' containment reference.
See Also:
Configuration.getConfigOverrides()

getName

public String getName()

Specified by:
getName in interface Configuration
Returns:
the value of the 'Name' attribute.
See Also:
Configuration.setName(String), featureconfigPackage.getConfiguration_Name()

setName

public void setName(String newName)

Specified by:
setName in interface Configuration
Parameters:
newName - the new value of the 'Name' attribute.
See Also:
Configuration.getName()

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)


eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)


eSet

public void eSet(int featureID,
                 Object newValue)


eUnset

public void eUnset(int featureID)


eIsSet

public boolean eIsSet(int featureID)


toString

public String toString()


mandatoryFeaturesChecked

public boolean mandatoryFeaturesChecked(Configuration configuration,
                                        DiagnosticChain diagnostics,
                                        Map<Object,Object> context)
Checks if all mandatory Features are selected

Specified by:
mandatoryFeaturesChecked in interface Configuration
Parameters:
configuration - The Configuration object
diagnostics - The DiagnosticChain object for the validation process
context - The context map
Returns:
true if the validation succeeded false else

minMaxCorrect

public boolean minMaxCorrect(Configuration configuration,
                             DiagnosticChain diagnostics,
                             Map<Object,Object> context)
Checks if the the number of selected Feature objects in every FeatureGroup is in the Min:Max range of that group

Specified by:
minMaxCorrect in interface Configuration
Parameters:
configuration - The Configuration object
diagnostics - The DiagnosticChain object for the validation process
context - The context map
Returns:
true if the validation succeeded false else