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

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

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

import org.contextmapper.tactic.dsl.tacticdsl.Event;
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.impl.ENotificationImpl;

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

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.EventImpl#isPersistent Persistent}
  • *
* * @generated */ public class EventImpl extends DomainObjectImpl implements Event { /** * The default value of the '{@link #isPersistent() Persistent}' attribute. * * * @see #isPersistent() * @generated * @ordered */ protected static final boolean PERSISTENT_EDEFAULT = false; /** * The cached value of the '{@link #isPersistent() Persistent}' attribute. * * * @see #isPersistent() * @generated * @ordered */ protected boolean persistent = PERSISTENT_EDEFAULT; /** * * * @generated */ protected EventImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return TacticdslPackage.Literals.EVENT; } /** * * * @generated */ @Override public boolean isPersistent() { return persistent; } /** * * * @generated */ @Override public void setPersistent(boolean newPersistent) { boolean oldPersistent = persistent; persistent = newPersistent; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.EVENT__PERSISTENT, oldPersistent, persistent)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TacticdslPackage.EVENT__PERSISTENT: return isPersistent(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TacticdslPackage.EVENT__PERSISTENT: setPersistent((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TacticdslPackage.EVENT__PERSISTENT: setPersistent(PERSISTENT_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TacticdslPackage.EVENT__PERSISTENT: return persistent != PERSISTENT_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuilder result = new StringBuilder(super.toString()); result.append(" (persistent: "); result.append(persistent); result.append(')'); return result.toString(); } } //EventImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy