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

org.contextmapper.tactic.dsl.tacticdsl.impl.OppositeHolderImpl 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.OppositeHolder;
import org.contextmapper.tactic.dsl.tacticdsl.Reference;
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;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

/**
 * 
 * An implementation of the model object 'Opposite Holder'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.OppositeHolderImpl#getOpposite Opposite}
  • *
* * @generated */ public class OppositeHolderImpl extends MinimalEObjectImpl.Container implements OppositeHolder { /** * The cached value of the '{@link #getOpposite() Opposite}' reference. * * * @see #getOpposite() * @generated * @ordered */ protected Reference opposite; /** * * * @generated */ protected OppositeHolderImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return TacticdslPackage.Literals.OPPOSITE_HOLDER; } /** * * * @generated */ public Reference getOpposite() { if (opposite != null && opposite.eIsProxy()) { InternalEObject oldOpposite = (InternalEObject)opposite; opposite = (Reference)eResolveProxy(oldOpposite); if (opposite != oldOpposite) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, TacticdslPackage.OPPOSITE_HOLDER__OPPOSITE, oldOpposite, opposite)); } } return opposite; } /** * * * @generated */ public Reference basicGetOpposite() { return opposite; } /** * * * @generated */ public void setOpposite(Reference newOpposite) { Reference oldOpposite = opposite; opposite = newOpposite; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.OPPOSITE_HOLDER__OPPOSITE, oldOpposite, opposite)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TacticdslPackage.OPPOSITE_HOLDER__OPPOSITE: if (resolve) return getOpposite(); return basicGetOpposite(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TacticdslPackage.OPPOSITE_HOLDER__OPPOSITE: setOpposite((Reference)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TacticdslPackage.OPPOSITE_HOLDER__OPPOSITE: setOpposite((Reference)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TacticdslPackage.OPPOSITE_HOLDER__OPPOSITE: return opposite != null; } return super.eIsSet(featureID); } } //OppositeHolderImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy