2021-11-30 17:25:45 +00:00
|
|
|
/**
|
|
|
|
* generated by Xtext 2.23.0
|
|
|
|
*/
|
2021-12-03 07:37:31 +00:00
|
|
|
package fr.n7.game.impl;
|
|
|
|
|
|
|
|
import fr.n7.game.Condition;
|
|
|
|
import fr.n7.game.Description;
|
|
|
|
import fr.n7.game.GamePackage;
|
|
|
|
import fr.n7.game.Lieu;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
import java.util.Collection;
|
|
|
|
|
|
|
|
import org.eclipse.emf.common.notify.Notification;
|
|
|
|
import org.eclipse.emf.common.notify.NotificationChain;
|
|
|
|
|
|
|
|
import org.eclipse.emf.common.util.EList;
|
|
|
|
|
|
|
|
import org.eclipse.emf.ecore.EClass;
|
|
|
|
import org.eclipse.emf.ecore.InternalEObject;
|
|
|
|
|
|
|
|
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
|
|
|
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
|
|
|
|
|
|
|
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
|
|
|
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
|
|
|
import org.eclipse.emf.ecore.util.InternalEList;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* An implementation of the model object '<em><b>Lieu</b></em>'.
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* <p>
|
|
|
|
* The following features are implemented:
|
|
|
|
* </p>
|
|
|
|
* <ul>
|
2021-12-03 07:37:31 +00:00
|
|
|
* <li>{@link fr.n7.game.impl.LieuImpl#getNom <em>Nom</em>}</li>
|
|
|
|
* <li>{@link fr.n7.game.impl.LieuImpl#getDeposable <em>Deposable</em>}</li>
|
|
|
|
* <li>{@link fr.n7.game.impl.LieuImpl#getDepart <em>Depart</em>}</li>
|
|
|
|
* <li>{@link fr.n7.game.impl.LieuImpl#getFin <em>Fin</em>}</li>
|
|
|
|
* <li>{@link fr.n7.game.impl.LieuImpl#getPersonnes <em>Personnes</em>}</li>
|
|
|
|
* <li>{@link fr.n7.game.impl.LieuImpl#getDescriptions <em>Descriptions</em>}</li>
|
|
|
|
* <li>{@link fr.n7.game.impl.LieuImpl#getObjets <em>Objets</em>}</li>
|
|
|
|
* <li>{@link fr.n7.game.impl.LieuImpl#getConnaissances <em>Connaissances</em>}</li>
|
2021-11-30 17:25:45 +00:00
|
|
|
* </ul>
|
|
|
|
*
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The default value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @see #getNom()
|
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
|
|
|
protected static final String NOM_EDEFAULT = null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The cached value of the '{@link #getNom() <em>Nom</em>}' attribute.
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @see #getNom()
|
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
|
|
|
protected String nom = NOM_EDEFAULT;
|
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getDeposable() <em>Deposable</em>}' containment reference.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getDeposable()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected Condition deposable;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getDepart() <em>Depart</em>}' containment reference.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getDepart()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected Condition depart;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getFin() <em>Fin</em>}' containment reference.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getFin()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected Condition fin;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getPersonnes() <em>Personnes</em>}' attribute list.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getPersonnes()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected EList<String> personnes;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @see #getDescriptions()
|
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
|
|
|
protected EList<Description> descriptions;
|
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getObjets() <em>Objets</em>}' attribute list.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getObjets()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected EList<String> objets;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getConnaissances()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected EList<String> connaissances;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
protected LieuImpl()
|
|
|
|
{
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
protected EClass eStaticClass()
|
|
|
|
{
|
|
|
|
return GamePackage.Literals.LIEU;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public String getNom()
|
|
|
|
{
|
|
|
|
return nom;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void setNom(String newNom)
|
|
|
|
{
|
|
|
|
String oldNom = nom;
|
|
|
|
nom = newNom;
|
|
|
|
if (eNotificationRequired())
|
|
|
|
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.LIEU__NOM, oldNom, nom));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public Condition getDeposable()
|
|
|
|
{
|
|
|
|
return deposable;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
public NotificationChain basicSetDeposable(Condition newDeposable, NotificationChain msgs)
|
|
|
|
{
|
|
|
|
Condition oldDeposable = deposable;
|
|
|
|
deposable = newDeposable;
|
|
|
|
if (eNotificationRequired())
|
|
|
|
{
|
|
|
|
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GamePackage.LIEU__DEPOSABLE, oldDeposable, newDeposable);
|
|
|
|
if (msgs == null) msgs = notification; else msgs.add(notification);
|
|
|
|
}
|
|
|
|
return msgs;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void setDeposable(Condition newDeposable)
|
|
|
|
{
|
|
|
|
if (newDeposable != deposable)
|
|
|
|
{
|
|
|
|
NotificationChain msgs = null;
|
|
|
|
if (deposable != null)
|
|
|
|
msgs = ((InternalEObject)deposable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GamePackage.LIEU__DEPOSABLE, null, msgs);
|
|
|
|
if (newDeposable != null)
|
|
|
|
msgs = ((InternalEObject)newDeposable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GamePackage.LIEU__DEPOSABLE, null, msgs);
|
|
|
|
msgs = basicSetDeposable(newDeposable, msgs);
|
|
|
|
if (msgs != null) msgs.dispatch();
|
|
|
|
}
|
|
|
|
else if (eNotificationRequired())
|
|
|
|
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.LIEU__DEPOSABLE, newDeposable, newDeposable));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public Condition getDepart()
|
|
|
|
{
|
|
|
|
return depart;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
public NotificationChain basicSetDepart(Condition newDepart, NotificationChain msgs)
|
|
|
|
{
|
|
|
|
Condition oldDepart = depart;
|
|
|
|
depart = newDepart;
|
|
|
|
if (eNotificationRequired())
|
|
|
|
{
|
|
|
|
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GamePackage.LIEU__DEPART, oldDepart, newDepart);
|
|
|
|
if (msgs == null) msgs = notification; else msgs.add(notification);
|
|
|
|
}
|
|
|
|
return msgs;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void setDepart(Condition newDepart)
|
|
|
|
{
|
|
|
|
if (newDepart != depart)
|
|
|
|
{
|
|
|
|
NotificationChain msgs = null;
|
|
|
|
if (depart != null)
|
|
|
|
msgs = ((InternalEObject)depart).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GamePackage.LIEU__DEPART, null, msgs);
|
|
|
|
if (newDepart != null)
|
|
|
|
msgs = ((InternalEObject)newDepart).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GamePackage.LIEU__DEPART, null, msgs);
|
|
|
|
msgs = basicSetDepart(newDepart, msgs);
|
|
|
|
if (msgs != null) msgs.dispatch();
|
|
|
|
}
|
|
|
|
else if (eNotificationRequired())
|
|
|
|
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.LIEU__DEPART, newDepart, newDepart));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public Condition getFin()
|
|
|
|
{
|
|
|
|
return fin;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
public NotificationChain basicSetFin(Condition newFin, NotificationChain msgs)
|
|
|
|
{
|
|
|
|
Condition oldFin = fin;
|
|
|
|
fin = newFin;
|
|
|
|
if (eNotificationRequired())
|
|
|
|
{
|
|
|
|
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GamePackage.LIEU__FIN, oldFin, newFin);
|
|
|
|
if (msgs == null) msgs = notification; else msgs.add(notification);
|
|
|
|
}
|
|
|
|
return msgs;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void setFin(Condition newFin)
|
|
|
|
{
|
|
|
|
if (newFin != fin)
|
|
|
|
{
|
|
|
|
NotificationChain msgs = null;
|
|
|
|
if (fin != null)
|
|
|
|
msgs = ((InternalEObject)fin).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GamePackage.LIEU__FIN, null, msgs);
|
|
|
|
if (newFin != null)
|
|
|
|
msgs = ((InternalEObject)newFin).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GamePackage.LIEU__FIN, null, msgs);
|
|
|
|
msgs = basicSetFin(newFin, msgs);
|
|
|
|
if (msgs != null) msgs.dispatch();
|
|
|
|
}
|
|
|
|
else if (eNotificationRequired())
|
|
|
|
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.LIEU__FIN, newFin, newFin));
|
|
|
|
}
|
|
|
|
|
2021-12-03 07:36:23 +00:00
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public EList<String> getPersonnes()
|
|
|
|
{
|
|
|
|
if (personnes == null)
|
|
|
|
{
|
|
|
|
personnes = new EDataTypeEList<String>(String.class, this, GamePackage.LIEU__PERSONNES);
|
|
|
|
}
|
|
|
|
return personnes;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public EList<Description> getDescriptions()
|
|
|
|
{
|
|
|
|
if (descriptions == null)
|
|
|
|
{
|
|
|
|
descriptions = new EObjectContainmentEList<Description>(Description.class, this, GamePackage.LIEU__DESCRIPTIONS);
|
|
|
|
}
|
|
|
|
return descriptions;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public EList<String> getObjets()
|
|
|
|
{
|
|
|
|
if (objets == null)
|
|
|
|
{
|
|
|
|
objets = new EDataTypeEList<String>(String.class, this, GamePackage.LIEU__OBJETS);
|
|
|
|
}
|
|
|
|
return objets;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public EList<String> getConnaissances()
|
|
|
|
{
|
|
|
|
if (connaissances == null)
|
|
|
|
{
|
|
|
|
connaissances = new EDataTypeEList<String>(String.class, this, GamePackage.LIEU__CONNAISSANCES);
|
|
|
|
}
|
|
|
|
return connaissances;
|
|
|
|
}
|
|
|
|
|
2021-11-30 17:25:45 +00:00
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
|
|
|
case GamePackage.LIEU__DEPOSABLE:
|
|
|
|
return basicSetDeposable(null, msgs);
|
|
|
|
case GamePackage.LIEU__DEPART:
|
|
|
|
return basicSetDepart(null, msgs);
|
|
|
|
case GamePackage.LIEU__FIN:
|
|
|
|
return basicSetFin(null, msgs);
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.LIEU__DESCRIPTIONS:
|
|
|
|
return ((InternalEList<?>)getDescriptions()).basicRemove(otherEnd, msgs);
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
return super.eInverseRemove(otherEnd, featureID, msgs);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
|
|
|
case GamePackage.LIEU__NOM:
|
|
|
|
return getNom();
|
|
|
|
case GamePackage.LIEU__DEPOSABLE:
|
|
|
|
return getDeposable();
|
|
|
|
case GamePackage.LIEU__DEPART:
|
|
|
|
return getDepart();
|
|
|
|
case GamePackage.LIEU__FIN:
|
|
|
|
return getFin();
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.LIEU__PERSONNES:
|
|
|
|
return getPersonnes();
|
|
|
|
case GamePackage.LIEU__DESCRIPTIONS:
|
|
|
|
return getDescriptions();
|
|
|
|
case GamePackage.LIEU__OBJETS:
|
|
|
|
return getObjets();
|
|
|
|
case GamePackage.LIEU__CONNAISSANCES:
|
|
|
|
return getConnaissances();
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
return super.eGet(featureID, resolve, coreType);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
@Override
|
|
|
|
public void eSet(int featureID, Object newValue)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
|
|
|
case GamePackage.LIEU__NOM:
|
|
|
|
setNom((String)newValue);
|
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.LIEU__DEPOSABLE:
|
|
|
|
setDeposable((Condition)newValue);
|
2021-11-30 17:25:45 +00:00
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.LIEU__DEPART:
|
|
|
|
setDepart((Condition)newValue);
|
2021-11-30 17:25:45 +00:00
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.LIEU__FIN:
|
|
|
|
setFin((Condition)newValue);
|
2021-11-30 17:25:45 +00:00
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.LIEU__PERSONNES:
|
|
|
|
getPersonnes().clear();
|
|
|
|
getPersonnes().addAll((Collection<? extends String>)newValue);
|
2021-11-30 17:25:45 +00:00
|
|
|
return;
|
|
|
|
case GamePackage.LIEU__DESCRIPTIONS:
|
|
|
|
getDescriptions().clear();
|
|
|
|
getDescriptions().addAll((Collection<? extends Description>)newValue);
|
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.LIEU__OBJETS:
|
|
|
|
getObjets().clear();
|
|
|
|
getObjets().addAll((Collection<? extends String>)newValue);
|
2021-11-30 17:25:45 +00:00
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.LIEU__CONNAISSANCES:
|
|
|
|
getConnaissances().clear();
|
|
|
|
getConnaissances().addAll((Collection<? extends String>)newValue);
|
2021-11-30 17:25:45 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
super.eSet(featureID, newValue);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void eUnset(int featureID)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
|
|
|
case GamePackage.LIEU__NOM:
|
|
|
|
setNom(NOM_EDEFAULT);
|
|
|
|
return;
|
|
|
|
case GamePackage.LIEU__DEPOSABLE:
|
|
|
|
setDeposable((Condition)null);
|
|
|
|
return;
|
|
|
|
case GamePackage.LIEU__DEPART:
|
|
|
|
setDepart((Condition)null);
|
|
|
|
return;
|
|
|
|
case GamePackage.LIEU__FIN:
|
|
|
|
setFin((Condition)null);
|
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.LIEU__PERSONNES:
|
|
|
|
getPersonnes().clear();
|
|
|
|
return;
|
|
|
|
case GamePackage.LIEU__DESCRIPTIONS:
|
|
|
|
getDescriptions().clear();
|
|
|
|
return;
|
|
|
|
case GamePackage.LIEU__OBJETS:
|
|
|
|
getObjets().clear();
|
|
|
|
return;
|
|
|
|
case GamePackage.LIEU__CONNAISSANCES:
|
|
|
|
getConnaissances().clear();
|
|
|
|
return;
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
super.eUnset(featureID);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public boolean eIsSet(int featureID)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
|
|
|
case GamePackage.LIEU__NOM:
|
|
|
|
return NOM_EDEFAULT == null ? nom != null : !NOM_EDEFAULT.equals(nom);
|
|
|
|
case GamePackage.LIEU__DEPOSABLE:
|
|
|
|
return deposable != null;
|
|
|
|
case GamePackage.LIEU__DEPART:
|
|
|
|
return depart != null;
|
|
|
|
case GamePackage.LIEU__FIN:
|
|
|
|
return fin != null;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.LIEU__PERSONNES:
|
|
|
|
return personnes != null && !personnes.isEmpty();
|
|
|
|
case GamePackage.LIEU__DESCRIPTIONS:
|
|
|
|
return descriptions != null && !descriptions.isEmpty();
|
|
|
|
case GamePackage.LIEU__OBJETS:
|
|
|
|
return objets != null && !objets.isEmpty();
|
|
|
|
case GamePackage.LIEU__CONNAISSANCES:
|
|
|
|
return connaissances != null && !connaissances.isEmpty();
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
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(" (nom: ");
|
|
|
|
result.append(nom);
|
2021-12-03 07:36:23 +00:00
|
|
|
result.append(", personnes: ");
|
|
|
|
result.append(personnes);
|
2021-11-30 17:25:45 +00:00
|
|
|
result.append(", objets: ");
|
|
|
|
result.append(objets);
|
2021-12-03 07:36:23 +00:00
|
|
|
result.append(", connaissances: ");
|
|
|
|
result.append(connaissances);
|
2021-11-30 17:25:45 +00:00
|
|
|
result.append(')');
|
|
|
|
return result.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
} //LieuImpl
|