All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.contextmapper.tactic.dsl.tacticdsl.impl.TacticDDDModelImpl Maven / Gradle / Ivy

/**
 * generated by Xtext 2.20.0
 */
package org.contextmapper.tactic.dsl.tacticdsl.impl;

import org.contextmapper.tactic.dsl.tacticdsl.Application;
import org.contextmapper.tactic.dsl.tacticdsl.TacticDDDModel;
import org.contextmapper.tactic.dsl.tacticdsl.TacticdslPackage;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

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;

/**
 * 
 * An implementation of the model object 'Tactic DDD Model'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.TacticDDDModelImpl#getApp App}
  • *
* * @generated */ public class TacticDDDModelImpl extends MinimalEObjectImpl.Container implements TacticDDDModel { /** * The cached value of the '{@link #getApp() App}' containment reference. * * * @see #getApp() * @generated * @ordered */ protected Application app; /** * * * @generated */ protected TacticDDDModelImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return TacticdslPackage.Literals.TACTIC_DDD_MODEL; } /** * * * @generated */ public Application getApp() { return app; } /** * * * @generated */ public NotificationChain basicSetApp(Application newApp, NotificationChain msgs) { Application oldApp = app; app = newApp; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TacticdslPackage.TACTIC_DDD_MODEL__APP, oldApp, newApp); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setApp(Application newApp) { if (newApp != app) { NotificationChain msgs = null; if (app != null) msgs = ((InternalEObject)app).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TacticdslPackage.TACTIC_DDD_MODEL__APP, null, msgs); if (newApp != null) msgs = ((InternalEObject)newApp).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TacticdslPackage.TACTIC_DDD_MODEL__APP, null, msgs); msgs = basicSetApp(newApp, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.TACTIC_DDD_MODEL__APP, newApp, newApp)); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TacticdslPackage.TACTIC_DDD_MODEL__APP: return basicSetApp(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TacticdslPackage.TACTIC_DDD_MODEL__APP: return getApp(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TacticdslPackage.TACTIC_DDD_MODEL__APP: setApp((Application)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TacticdslPackage.TACTIC_DDD_MODEL__APP: setApp((Application)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TacticdslPackage.TACTIC_DDD_MODEL__APP: return app != null; } return super.eIsSet(featureID); } } //TacticDDDModelImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy