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

org.contextmapper.tactic.dsl.tacticdsl.impl.ResourceOperationDelegateImpl 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.ResourceOperationDelegate;
import org.contextmapper.tactic.dsl.tacticdsl.Service;
import org.contextmapper.tactic.dsl.tacticdsl.ServiceOperation;
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 'Resource Operation Delegate'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.ResourceOperationDelegateImpl#getDelegate Delegate}
  • *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.ResourceOperationDelegateImpl#getDelegateOperation Delegate Operation}
  • *
* * @generated */ public class ResourceOperationDelegateImpl extends MinimalEObjectImpl.Container implements ResourceOperationDelegate { /** * The cached value of the '{@link #getDelegate() Delegate}' reference. * * * @see #getDelegate() * @generated * @ordered */ protected Service delegate; /** * The cached value of the '{@link #getDelegateOperation() Delegate Operation}' reference. * * * @see #getDelegateOperation() * @generated * @ordered */ protected ServiceOperation delegateOperation; /** * * * @generated */ protected ResourceOperationDelegateImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return TacticdslPackage.Literals.RESOURCE_OPERATION_DELEGATE; } /** * * * @generated */ public Service getDelegate() { if (delegate != null && delegate.eIsProxy()) { InternalEObject oldDelegate = (InternalEObject)delegate; delegate = (Service)eResolveProxy(oldDelegate); if (delegate != oldDelegate) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE, oldDelegate, delegate)); } } return delegate; } /** * * * @generated */ public Service basicGetDelegate() { return delegate; } /** * * * @generated */ public void setDelegate(Service newDelegate) { Service oldDelegate = delegate; delegate = newDelegate; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE, oldDelegate, delegate)); } /** * * * @generated */ public ServiceOperation getDelegateOperation() { if (delegateOperation != null && delegateOperation.eIsProxy()) { InternalEObject oldDelegateOperation = (InternalEObject)delegateOperation; delegateOperation = (ServiceOperation)eResolveProxy(oldDelegateOperation); if (delegateOperation != oldDelegateOperation) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE_OPERATION, oldDelegateOperation, delegateOperation)); } } return delegateOperation; } /** * * * @generated */ public ServiceOperation basicGetDelegateOperation() { return delegateOperation; } /** * * * @generated */ public void setDelegateOperation(ServiceOperation newDelegateOperation) { ServiceOperation oldDelegateOperation = delegateOperation; delegateOperation = newDelegateOperation; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE_OPERATION, oldDelegateOperation, delegateOperation)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE: if (resolve) return getDelegate(); return basicGetDelegate(); case TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE_OPERATION: if (resolve) return getDelegateOperation(); return basicGetDelegateOperation(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE: setDelegate((Service)newValue); return; case TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE_OPERATION: setDelegateOperation((ServiceOperation)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE: setDelegate((Service)null); return; case TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE_OPERATION: setDelegateOperation((ServiceOperation)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE: return delegate != null; case TacticdslPackage.RESOURCE_OPERATION_DELEGATE__DELEGATE_OPERATION: return delegateOperation != null; } return super.eIsSet(featureID); } } //ResourceOperationDelegateImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy