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

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

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

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

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 'Value Object'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.ValueObjectImpl#getExtends Extends}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.ValueObjectImpl#isNotOptimisticLocking Not Optimistic Locking}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.ValueObjectImpl#isNotImmutable Not Immutable}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.ValueObjectImpl#isPersistent Persistent}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.ValueObjectImpl#isNotPersistent Not Persistent}
  • *
* * @generated */ public class ValueObjectImpl extends DomainObjectImpl implements ValueObject { /** * The cached value of the '{@link #getExtends() Extends}' reference. * * * @see #getExtends() * @generated * @ordered */ protected ValueObject extends_; /** * The default value of the '{@link #isNotOptimisticLocking() Not Optimistic Locking}' attribute. * * * @see #isNotOptimisticLocking() * @generated * @ordered */ protected static final boolean NOT_OPTIMISTIC_LOCKING_EDEFAULT = false; /** * The cached value of the '{@link #isNotOptimisticLocking() Not Optimistic Locking}' attribute. * * * @see #isNotOptimisticLocking() * @generated * @ordered */ protected boolean notOptimisticLocking = NOT_OPTIMISTIC_LOCKING_EDEFAULT; /** * The default value of the '{@link #isNotImmutable() Not Immutable}' attribute. * * * @see #isNotImmutable() * @generated * @ordered */ protected static final boolean NOT_IMMUTABLE_EDEFAULT = false; /** * The cached value of the '{@link #isNotImmutable() Not Immutable}' attribute. * * * @see #isNotImmutable() * @generated * @ordered */ protected boolean notImmutable = NOT_IMMUTABLE_EDEFAULT; /** * 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; /** * The default value of the '{@link #isNotPersistent() Not Persistent}' attribute. * * * @see #isNotPersistent() * @generated * @ordered */ protected static final boolean NOT_PERSISTENT_EDEFAULT = false; /** * The cached value of the '{@link #isNotPersistent() Not Persistent}' attribute. * * * @see #isNotPersistent() * @generated * @ordered */ protected boolean notPersistent = NOT_PERSISTENT_EDEFAULT; /** * * * @generated */ protected ValueObjectImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return TacticdslPackage.Literals.VALUE_OBJECT; } /** * * * @generated */ @Override public ValueObject getExtends() { if (extends_ != null && extends_.eIsProxy()) { InternalEObject oldExtends = (InternalEObject)extends_; extends_ = (ValueObject)eResolveProxy(oldExtends); if (extends_ != oldExtends) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, TacticdslPackage.VALUE_OBJECT__EXTENDS, oldExtends, extends_)); } } return extends_; } /** * * * @generated */ public ValueObject basicGetExtends() { return extends_; } /** * * * @generated */ @Override public void setExtends(ValueObject newExtends) { ValueObject oldExtends = extends_; extends_ = newExtends; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.VALUE_OBJECT__EXTENDS, oldExtends, extends_)); } /** * * * @generated */ @Override public boolean isNotOptimisticLocking() { return notOptimisticLocking; } /** * * * @generated */ @Override public void setNotOptimisticLocking(boolean newNotOptimisticLocking) { boolean oldNotOptimisticLocking = notOptimisticLocking; notOptimisticLocking = newNotOptimisticLocking; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.VALUE_OBJECT__NOT_OPTIMISTIC_LOCKING, oldNotOptimisticLocking, notOptimisticLocking)); } /** * * * @generated */ @Override public boolean isNotImmutable() { return notImmutable; } /** * * * @generated */ @Override public void setNotImmutable(boolean newNotImmutable) { boolean oldNotImmutable = notImmutable; notImmutable = newNotImmutable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.VALUE_OBJECT__NOT_IMMUTABLE, oldNotImmutable, notImmutable)); } /** * * * @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.VALUE_OBJECT__PERSISTENT, oldPersistent, persistent)); } /** * * * @generated */ @Override public boolean isNotPersistent() { return notPersistent; } /** * * * @generated */ @Override public void setNotPersistent(boolean newNotPersistent) { boolean oldNotPersistent = notPersistent; notPersistent = newNotPersistent; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.VALUE_OBJECT__NOT_PERSISTENT, oldNotPersistent, notPersistent)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TacticdslPackage.VALUE_OBJECT__EXTENDS: if (resolve) return getExtends(); return basicGetExtends(); case TacticdslPackage.VALUE_OBJECT__NOT_OPTIMISTIC_LOCKING: return isNotOptimisticLocking(); case TacticdslPackage.VALUE_OBJECT__NOT_IMMUTABLE: return isNotImmutable(); case TacticdslPackage.VALUE_OBJECT__PERSISTENT: return isPersistent(); case TacticdslPackage.VALUE_OBJECT__NOT_PERSISTENT: return isNotPersistent(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TacticdslPackage.VALUE_OBJECT__EXTENDS: setExtends((ValueObject)newValue); return; case TacticdslPackage.VALUE_OBJECT__NOT_OPTIMISTIC_LOCKING: setNotOptimisticLocking((Boolean)newValue); return; case TacticdslPackage.VALUE_OBJECT__NOT_IMMUTABLE: setNotImmutable((Boolean)newValue); return; case TacticdslPackage.VALUE_OBJECT__PERSISTENT: setPersistent((Boolean)newValue); return; case TacticdslPackage.VALUE_OBJECT__NOT_PERSISTENT: setNotPersistent((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TacticdslPackage.VALUE_OBJECT__EXTENDS: setExtends((ValueObject)null); return; case TacticdslPackage.VALUE_OBJECT__NOT_OPTIMISTIC_LOCKING: setNotOptimisticLocking(NOT_OPTIMISTIC_LOCKING_EDEFAULT); return; case TacticdslPackage.VALUE_OBJECT__NOT_IMMUTABLE: setNotImmutable(NOT_IMMUTABLE_EDEFAULT); return; case TacticdslPackage.VALUE_OBJECT__PERSISTENT: setPersistent(PERSISTENT_EDEFAULT); return; case TacticdslPackage.VALUE_OBJECT__NOT_PERSISTENT: setNotPersistent(NOT_PERSISTENT_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TacticdslPackage.VALUE_OBJECT__EXTENDS: return extends_ != null; case TacticdslPackage.VALUE_OBJECT__NOT_OPTIMISTIC_LOCKING: return notOptimisticLocking != NOT_OPTIMISTIC_LOCKING_EDEFAULT; case TacticdslPackage.VALUE_OBJECT__NOT_IMMUTABLE: return notImmutable != NOT_IMMUTABLE_EDEFAULT; case TacticdslPackage.VALUE_OBJECT__PERSISTENT: return persistent != PERSISTENT_EDEFAULT; case TacticdslPackage.VALUE_OBJECT__NOT_PERSISTENT: return notPersistent != NOT_PERSISTENT_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuilder result = new StringBuilder(super.toString()); result.append(" (notOptimisticLocking: "); result.append(notOptimisticLocking); result.append(", notImmutable: "); result.append(notImmutable); result.append(", persistent: "); result.append(persistent); result.append(", notPersistent: "); result.append(notPersistent); result.append(')'); return result.toString(); } } //ValueObjectImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy