|
@@ -34,27 +34,20 @@ import com.google.inject.Injector;
|
|
|
* <p>
|
|
|
* The following features are implemented:
|
|
|
* <ul>
|
|
|
- * <li>
|
|
|
- * {@link org.yakindu.sct.model.sgen.impl.FeatureParameterValueImpl#getParameter
|
|
|
- * <em>Parameter</em>}</li>
|
|
|
- * <li>
|
|
|
- * {@link org.yakindu.sct.model.sgen.impl.FeatureParameterValueImpl#getFeatureConfiguration
|
|
|
- * <em>Feature Configuration</em>}</li>
|
|
|
- * <li>
|
|
|
- * {@link org.yakindu.sct.model.sgen.impl.FeatureParameterValueImpl#getExpression
|
|
|
- * <em>Expression</em>}</li>
|
|
|
+ * <li>{@link org.yakindu.sct.model.sgen.impl.FeatureParameterValueImpl#getParameter <em>Parameter</em>}</li>
|
|
|
+ * <li>{@link org.yakindu.sct.model.sgen.impl.FeatureParameterValueImpl#getFeatureConfiguration <em>Feature Configuration</em>}</li>
|
|
|
+ * <li>{@link org.yakindu.sct.model.sgen.impl.FeatureParameterValueImpl#getExpression <em>Expression</em>}</li>
|
|
|
* </ul>
|
|
|
* </p>
|
|
|
- *
|
|
|
+ *
|
|
|
* @generated
|
|
|
*/
|
|
|
@SuppressWarnings("restriction")
|
|
|
public class FeatureParameterValueImpl extends EObjectImpl implements
|
|
|
FeatureParameterValue {
|
|
|
/**
|
|
|
- * The cached value of the '{@link #getParameter() <em>Parameter</em>}'
|
|
|
- * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
+ * The cached value of the '{@link #getParameter() <em>Parameter</em>}' reference.
|
|
|
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
* @see #getParameter()
|
|
|
* @generated
|
|
|
* @ordered
|
|
@@ -62,9 +55,8 @@ public class FeatureParameterValueImpl extends EObjectImpl implements
|
|
|
protected FeatureParameter parameter;
|
|
|
|
|
|
/**
|
|
|
- * The cached value of the '{@link #getExpression() <em>Expression</em>}'
|
|
|
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
+ * The cached value of the '{@link #getExpression() <em>Expression</em>}' containment reference.
|
|
|
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
* @see #getExpression()
|
|
|
* @generated
|
|
|
* @ordered
|
|
@@ -73,7 +65,6 @@ public class FeatureParameterValueImpl extends EObjectImpl implements
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
|
|
@@ -83,7 +74,6 @@ public class FeatureParameterValueImpl extends EObjectImpl implements
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
@Override
|
|
@@ -93,18 +83,15 @@ public class FeatureParameterValueImpl extends EObjectImpl implements
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
public FeatureParameter getParameter() {
|
|
|
if (parameter != null && parameter.eIsProxy()) {
|
|
|
- InternalEObject oldParameter = (InternalEObject) parameter;
|
|
|
- parameter = (FeatureParameter) eResolveProxy(oldParameter);
|
|
|
+ InternalEObject oldParameter = (InternalEObject)parameter;
|
|
|
+ parameter = (FeatureParameter)eResolveProxy(oldParameter);
|
|
|
if (parameter != oldParameter) {
|
|
|
if (eNotificationRequired())
|
|
|
- eNotify(new ENotificationImpl(this, Notification.RESOLVE,
|
|
|
- SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER,
|
|
|
- oldParameter, parameter));
|
|
|
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER, oldParameter, parameter));
|
|
|
}
|
|
|
}
|
|
|
return parameter;
|
|
@@ -112,7 +99,6 @@ public class FeatureParameterValueImpl extends EObjectImpl implements
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
public FeatureParameter basicGetParameter() {
|
|
@@ -121,32 +107,26 @@ public class FeatureParameterValueImpl extends EObjectImpl implements
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
public void setParameter(FeatureParameter newParameter) {
|
|
|
FeatureParameter oldParameter = parameter;
|
|
|
parameter = newParameter;
|
|
|
if (eNotificationRequired())
|
|
|
- eNotify(new ENotificationImpl(this, Notification.SET,
|
|
|
- SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER,
|
|
|
- oldParameter, parameter));
|
|
|
+ eNotify(new ENotificationImpl(this, Notification.SET, SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER, oldParameter, parameter));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
public FeatureConfiguration getFeatureConfiguration() {
|
|
|
- if (eContainerFeatureID() != SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION)
|
|
|
- return null;
|
|
|
- return (FeatureConfiguration) eContainer();
|
|
|
+ if (eContainerFeatureID() != SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION) return null;
|
|
|
+ return (FeatureConfiguration)eContainer();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
public XExpression getExpression() {
|
|
@@ -155,7 +135,6 @@ public class FeatureParameterValueImpl extends EObjectImpl implements
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
public NotificationChain basicSetExpression(XExpression newExpression,
|
|
@@ -163,47 +142,28 @@ public class FeatureParameterValueImpl extends EObjectImpl implements
|
|
|
XExpression oldExpression = expression;
|
|
|
expression = newExpression;
|
|
|
if (eNotificationRequired()) {
|
|
|
- ENotificationImpl notification = new ENotificationImpl(this,
|
|
|
- Notification.SET,
|
|
|
- SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION,
|
|
|
- oldExpression, newExpression);
|
|
|
- if (msgs == null)
|
|
|
- msgs = notification;
|
|
|
- else
|
|
|
- msgs.add(notification);
|
|
|
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION, oldExpression, newExpression);
|
|
|
+ if (msgs == null) msgs = notification; else msgs.add(notification);
|
|
|
}
|
|
|
return msgs;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
public void setExpression(XExpression newExpression) {
|
|
|
if (newExpression != expression) {
|
|
|
NotificationChain msgs = null;
|
|
|
if (expression != null)
|
|
|
- msgs = ((InternalEObject) expression)
|
|
|
- .eInverseRemove(
|
|
|
- this,
|
|
|
- EOPPOSITE_FEATURE_BASE
|
|
|
- - SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION,
|
|
|
- null, msgs);
|
|
|
+ msgs = ((InternalEObject)expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION, null, msgs);
|
|
|
if (newExpression != null)
|
|
|
- msgs = ((InternalEObject) newExpression)
|
|
|
- .eInverseAdd(
|
|
|
- this,
|
|
|
- EOPPOSITE_FEATURE_BASE
|
|
|
- - SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION,
|
|
|
- null, msgs);
|
|
|
+ msgs = ((InternalEObject)newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION, null, msgs);
|
|
|
msgs = basicSetExpression(newExpression, msgs);
|
|
|
- if (msgs != null)
|
|
|
- msgs.dispatch();
|
|
|
- } else if (eNotificationRequired())
|
|
|
- eNotify(new ENotificationImpl(this, Notification.SET,
|
|
|
- SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION,
|
|
|
- newExpression, newExpression));
|
|
|
+ if (msgs != null) msgs.dispatch();
|
|
|
+ }
|
|
|
+ else if (eNotificationRequired())
|
|
|
+ eNotify(new ENotificationImpl(this, Notification.SET, SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION, newExpression, newExpression));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -263,129 +223,115 @@ public class FeatureParameterValueImpl extends EObjectImpl implements
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
@Override
|
|
|
public NotificationChain eInverseAdd(InternalEObject otherEnd,
|
|
|
int featureID, NotificationChain msgs) {
|
|
|
switch (featureID) {
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION:
|
|
|
- if (eInternalContainer() != null)
|
|
|
- msgs = eBasicRemoveFromContainer(msgs);
|
|
|
- return eBasicSetContainer(otherEnd,
|
|
|
- SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION,
|
|
|
- msgs);
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION:
|
|
|
+ if (eInternalContainer() != null)
|
|
|
+ msgs = eBasicRemoveFromContainer(msgs);
|
|
|
+ return eBasicSetContainer(otherEnd, SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION, msgs);
|
|
|
}
|
|
|
return super.eInverseAdd(otherEnd, featureID, msgs);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
@Override
|
|
|
public NotificationChain eInverseRemove(InternalEObject otherEnd,
|
|
|
int featureID, NotificationChain msgs) {
|
|
|
switch (featureID) {
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION:
|
|
|
- return eBasicSetContainer(null,
|
|
|
- SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION,
|
|
|
- msgs);
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION:
|
|
|
- return basicSetExpression(null, msgs);
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION:
|
|
|
+ return eBasicSetContainer(null, SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION, msgs);
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION:
|
|
|
+ return basicSetExpression(null, msgs);
|
|
|
}
|
|
|
return super.eInverseRemove(otherEnd, featureID, msgs);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
@Override
|
|
|
public NotificationChain eBasicRemoveFromContainerFeature(
|
|
|
NotificationChain msgs) {
|
|
|
switch (eContainerFeatureID()) {
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION:
|
|
|
- return eInternalContainer().eInverseRemove(this,
|
|
|
- SGenPackage.FEATURE_CONFIGURATION__PARAMETER_VALUES,
|
|
|
- FeatureConfiguration.class, msgs);
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION:
|
|
|
+ return eInternalContainer().eInverseRemove(this, SGenPackage.FEATURE_CONFIGURATION__PARAMETER_VALUES, FeatureConfiguration.class, msgs);
|
|
|
}
|
|
|
return super.eBasicRemoveFromContainerFeature(msgs);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
@Override
|
|
|
public Object eGet(int featureID, boolean resolve, boolean coreType) {
|
|
|
switch (featureID) {
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER:
|
|
|
- if (resolve)
|
|
|
- return getParameter();
|
|
|
- return basicGetParameter();
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION:
|
|
|
- return getFeatureConfiguration();
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION:
|
|
|
- return getExpression();
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER:
|
|
|
+ if (resolve) return getParameter();
|
|
|
+ return basicGetParameter();
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION:
|
|
|
+ return getFeatureConfiguration();
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION:
|
|
|
+ return getExpression();
|
|
|
}
|
|
|
return super.eGet(featureID, resolve, coreType);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
@Override
|
|
|
public void eSet(int featureID, Object newValue) {
|
|
|
switch (featureID) {
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER:
|
|
|
- setParameter((FeatureParameter) newValue);
|
|
|
- return;
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION:
|
|
|
- setExpression((XExpression) newValue);
|
|
|
- return;
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER:
|
|
|
+ setParameter((FeatureParameter)newValue);
|
|
|
+ return;
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION:
|
|
|
+ setExpression((XExpression)newValue);
|
|
|
+ return;
|
|
|
}
|
|
|
super.eSet(featureID, newValue);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
@Override
|
|
|
public void eUnset(int featureID) {
|
|
|
switch (featureID) {
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER:
|
|
|
- setParameter((FeatureParameter) null);
|
|
|
- return;
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION:
|
|
|
- setExpression((XExpression) null);
|
|
|
- return;
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER:
|
|
|
+ setParameter((FeatureParameter)null);
|
|
|
+ return;
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION:
|
|
|
+ setExpression((XExpression)null);
|
|
|
+ return;
|
|
|
}
|
|
|
super.eUnset(featureID);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc --> <!-- end-user-doc -->
|
|
|
- *
|
|
|
* @generated
|
|
|
*/
|
|
|
@Override
|
|
|
public boolean eIsSet(int featureID) {
|
|
|
switch (featureID) {
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER:
|
|
|
- return parameter != null;
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION:
|
|
|
- return getFeatureConfiguration() != null;
|
|
|
- case SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION:
|
|
|
- return expression != null;
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__PARAMETER:
|
|
|
+ return parameter != null;
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION:
|
|
|
+ return getFeatureConfiguration() != null;
|
|
|
+ case SGenPackage.FEATURE_PARAMETER_VALUE__EXPRESSION:
|
|
|
+ return expression != null;
|
|
|
}
|
|
|
return super.eIsSet(featureID);
|
|
|
}
|