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

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

There is a newer version: 6.12.0
Show newest version
/**
 * generated by Xtext 2.20.0
 */
package org.contextmapper.tactic.dsl.tacticdsl.impl;

import org.contextmapper.tactic.dsl.tacticdsl.CommandEvent;
import org.contextmapper.tactic.dsl.tacticdsl.TacticdslPackage;

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

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

/**
 * 
 * An implementation of the model object 'Command Event'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.CommandEventImpl#getExtends Extends}
  • *
* * @generated */ public class CommandEventImpl extends EventImpl implements CommandEvent { /** * The cached value of the '{@link #getExtends() Extends}' reference. * * * @see #getExtends() * @generated * @ordered */ protected CommandEvent extends_; /** * * * @generated */ protected CommandEventImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return TacticdslPackage.Literals.COMMAND_EVENT; } /** * * * @generated */ public CommandEvent getExtends() { if (extends_ != null && extends_.eIsProxy()) { InternalEObject oldExtends = (InternalEObject)extends_; extends_ = (CommandEvent)eResolveProxy(oldExtends); if (extends_ != oldExtends) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, TacticdslPackage.COMMAND_EVENT__EXTENDS, oldExtends, extends_)); } } return extends_; } /** * * * @generated */ public CommandEvent basicGetExtends() { return extends_; } /** * * * @generated */ public void setExtends(CommandEvent newExtends) { CommandEvent oldExtends = extends_; extends_ = newExtends; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.COMMAND_EVENT__EXTENDS, oldExtends, extends_)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TacticdslPackage.COMMAND_EVENT__EXTENDS: if (resolve) return getExtends(); return basicGetExtends(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TacticdslPackage.COMMAND_EVENT__EXTENDS: setExtends((CommandEvent)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TacticdslPackage.COMMAND_EVENT__EXTENDS: setExtends((CommandEvent)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TacticdslPackage.COMMAND_EVENT__EXTENDS: return extends_ != null; } return super.eIsSet(featureID); } } //CommandEventImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy