2021-11-30 17:25:45 +00:00
|
|
|
/**
|
|
|
|
* generated by Xtext 2.23.0
|
|
|
|
*/
|
2021-12-03 08:38:29 +00:00
|
|
|
package fr.n7.gAME.impl;
|
2021-12-03 07:37:31 +00:00
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
import fr.n7.gAME.GAMEPackage;
|
|
|
|
import fr.n7.gAME.NOTConditionConnaissance;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
import org.eclipse.emf.common.notify.Notification;
|
|
|
|
|
|
|
|
import org.eclipse.emf.ecore.EClass;
|
|
|
|
|
|
|
|
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* An implementation of the model object '<em><b>NOT Condition Connaissance</b></em>'.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* <p>
|
|
|
|
* The following features are implemented:
|
|
|
|
* </p>
|
|
|
|
* <ul>
|
2021-12-03 08:38:29 +00:00
|
|
|
* <li>{@link fr.n7.gAME.impl.NOTConditionConnaissanceImpl#getConnaissance <em>Connaissance</em>}</li>
|
2021-11-30 17:25:45 +00:00
|
|
|
* </ul>
|
|
|
|
*
|
|
|
|
* @generated
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements NOTConditionConnaissance
|
2021-11-30 17:25:45 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The default value of the '{@link #getConnaissance() <em>Connaissance</em>}' attribute.
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @see #getConnaissance()
|
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
|
|
|
protected static final String CONNAISSANCE_EDEFAULT = null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The cached value of the '{@link #getConnaissance() <em>Connaissance</em>}' attribute.
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @see #getConnaissance()
|
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
|
|
|
protected String connaissance = CONNAISSANCE_EDEFAULT;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected NOTConditionConnaissanceImpl()
|
2021-11-30 17:25:45 +00:00
|
|
|
{
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
protected EClass eStaticClass()
|
|
|
|
{
|
2021-12-03 08:38:29 +00:00
|
|
|
return GAMEPackage.Literals.NOT_CONDITION_CONNAISSANCE;
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public String getConnaissance()
|
|
|
|
{
|
|
|
|
return connaissance;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void setConnaissance(String newConnaissance)
|
|
|
|
{
|
|
|
|
String oldConnaissance = connaissance;
|
|
|
|
connaissance = newConnaissance;
|
|
|
|
if (eNotificationRequired())
|
2021-12-03 08:38:29 +00:00
|
|
|
eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, oldConnaissance, connaissance));
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
2021-12-03 08:38:29 +00:00
|
|
|
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
|
2021-11-30 17:25:45 +00:00
|
|
|
return getConnaissance();
|
|
|
|
}
|
|
|
|
return super.eGet(featureID, resolve, coreType);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void eSet(int featureID, Object newValue)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
2021-12-03 08:38:29 +00:00
|
|
|
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
|
2021-11-30 17:25:45 +00:00
|
|
|
setConnaissance((String)newValue);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
super.eSet(featureID, newValue);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void eUnset(int featureID)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
2021-12-03 08:38:29 +00:00
|
|
|
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
|
2021-11-30 17:25:45 +00:00
|
|
|
setConnaissance(CONNAISSANCE_EDEFAULT);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
super.eUnset(featureID);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public boolean eIsSet(int featureID)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
2021-12-03 08:38:29 +00:00
|
|
|
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
|
2021-11-30 17:25:45 +00:00
|
|
|
return CONNAISSANCE_EDEFAULT == null ? connaissance != null : !CONNAISSANCE_EDEFAULT.equals(connaissance);
|
|
|
|
}
|
|
|
|
return super.eIsSet(featureID);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public String toString()
|
|
|
|
{
|
|
|
|
if (eIsProxy()) return super.toString();
|
|
|
|
|
|
|
|
StringBuilder result = new StringBuilder(super.toString());
|
|
|
|
result.append(" (connaissance: ");
|
|
|
|
result.append(connaissance);
|
|
|
|
result.append(')');
|
|
|
|
return result.toString();
|
|
|
|
}
|
|
|
|
|
2021-12-03 07:36:23 +00:00
|
|
|
} //NOTConditionConnaissanceImpl
|