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

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

public class ConfigNodeImpl
extends EObjectImpl
implements ConfigNode

An implementation of the model object 'Config Node'.

The following features are implemented:


Field Summary
protected static ConfigState CONFIG_STATE_EDEFAULT
          The default value of the 'Config State' attribute.
protected  ConfigState configState
          The cached value of the 'Config State' attribute.
protected  Feature origin
          The cached value of the 'Origin' reference.
 
Constructor Summary
protected ConfigNodeImpl()
           
 
Method Summary
 Feature basicGetOrigin()
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 ConfigState getConfigState()
           
 Feature getOrigin()
           
 boolean prohibitsFeaturesUnchecked(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object,Object> context)
          Checks if the ProhibitConstraints are valid Checks if a ProhibitsConstraint object with the given ConfigNode as source exists and validates if every prohibited Feature of this Constraint is eliminated
 boolean requiresFeaturesChecked(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object,Object> context)
          Checks if the RequiresConstraints are valid Checks if a RequiresConstraint object with the given ConfigNode as source exists and validates if every required Feature of this Constraint is selected
 void setConfigState(ConfigState newConfigState)
           
 void setOrigin(Feature newOrigin)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

origin

protected Feature origin
The cached value of the 'Origin' reference.

See Also:
getOrigin()

CONFIG_STATE_EDEFAULT

protected static final ConfigState CONFIG_STATE_EDEFAULT
The default value of the 'Config State' attribute.

See Also:
getConfigState()

configState

protected ConfigState configState
The cached value of the 'Config State' attribute.

See Also:
getConfigState()
Constructor Detail

ConfigNodeImpl

protected ConfigNodeImpl()

Method Detail

prohibitsFeaturesUnchecked

public boolean prohibitsFeaturesUnchecked(ConfigNode configNode,
                                          DiagnosticChain diagnostics,
                                          Map<Object,Object> context)
Checks if the ProhibitConstraints are valid Checks if a ProhibitsConstraint object with the given ConfigNode as source exists and validates if every prohibited Feature of this Constraint is eliminated

Specified by:
prohibitsFeaturesUnchecked in interface ConfigNode
Parameters:
configNode - the current ConfigNode object in the validation process
diagnostics - the DiagnosticChain object
context - The context map
Returns:
true if every prohibited Feature is eliminated, if no ProhibitsConstraint exists or if the given ConfigNode is not selected false else

requiresFeaturesChecked

public boolean requiresFeaturesChecked(ConfigNode configNode,
                                       DiagnosticChain diagnostics,
                                       Map<Object,Object> context)
Checks if the RequiresConstraints are valid Checks if a RequiresConstraint object with the given ConfigNode as source exists and validates if every required Feature of this Constraint is selected

Specified by:
requiresFeaturesChecked in interface ConfigNode
Parameters:
configNode - the current ConfigNode object in the validation process
diagnostics - the DiagnosticChain object
context - The context map
Returns:
true if every required Feature is selected, if no RequiredConstraint exists or if the given ConfigNode is not selected false else

eStaticClass

protected EClass eStaticClass()


getOrigin

public Feature getOrigin()

Specified by:
getOrigin in interface ConfigNode
Returns:
the value of the 'Origin' reference.
See Also:
ConfigNode.setOrigin(Feature), featureconfigPackage.getConfigNode_Origin()

basicGetOrigin

public Feature basicGetOrigin()


setOrigin

public void setOrigin(Feature newOrigin)

Specified by:
setOrigin in interface ConfigNode
Parameters:
newOrigin - the new value of the 'Origin' reference.
See Also:
ConfigNode.getOrigin()

getConfigState

public ConfigState getConfigState()

Specified by:
getConfigState in interface ConfigNode
Returns:
the value of the 'Config State' attribute.
See Also:
ConfigState, ConfigNode.setConfigState(ConfigState), featureconfigPackage.getConfigNode_ConfigState()

setConfigState

public void setConfigState(ConfigState newConfigState)

Specified by:
setConfigState in interface ConfigNode
Parameters:
newConfigState - the new value of the 'Config State' attribute.
See Also:
ConfigState, ConfigNode.getConfigState()

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()