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

kieker.model.analysismodel.assembly.impl.AssemblyProvidedInterfaceImpl Maven / Gradle / Ivy

/**
 */
package kieker.model.analysismodel.assembly.impl;

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;

import kieker.model.analysismodel.assembly.AssemblyPackage;
import kieker.model.analysismodel.assembly.AssemblyProvidedInterface;
import kieker.model.analysismodel.type.ProvidedInterfaceType;

/**
 * 
 * An implementation of the model object 'Provided Interface'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link kieker.model.analysismodel.assembly.impl.AssemblyProvidedInterfaceImpl#getProvidedInterfaceType Provided Interface Type}
  • *
* * @generated */ public class AssemblyProvidedInterfaceImpl extends MinimalEObjectImpl.Container implements AssemblyProvidedInterface { /** * The cached value of the '{@link #getProvidedInterfaceType() Provided Interface Type}' reference. * * * * @see #getProvidedInterfaceType() * @generated * @ordered */ protected ProvidedInterfaceType providedInterfaceType; /** * * * * @generated */ protected AssemblyProvidedInterfaceImpl() { super(); } /** * * * * @generated */ @Override protected EClass eStaticClass() { return AssemblyPackage.Literals.ASSEMBLY_PROVIDED_INTERFACE; } /** * * * * @generated */ @Override public ProvidedInterfaceType getProvidedInterfaceType() { if ((this.providedInterfaceType != null) && this.providedInterfaceType.eIsProxy()) { final InternalEObject oldProvidedInterfaceType = (InternalEObject) this.providedInterfaceType; this.providedInterfaceType = (ProvidedInterfaceType) this.eResolveProxy(oldProvidedInterfaceType); if (this.providedInterfaceType != oldProvidedInterfaceType) { if (this.eNotificationRequired()) { this.eNotify(new ENotificationImpl(this, Notification.RESOLVE, AssemblyPackage.ASSEMBLY_PROVIDED_INTERFACE__PROVIDED_INTERFACE_TYPE, oldProvidedInterfaceType, this.providedInterfaceType)); } } } return this.providedInterfaceType; } /** * * * * @generated */ public ProvidedInterfaceType basicGetProvidedInterfaceType() { return this.providedInterfaceType; } /** * * * * @generated */ @Override public void setProvidedInterfaceType(final ProvidedInterfaceType newProvidedInterfaceType) { final ProvidedInterfaceType oldProvidedInterfaceType = this.providedInterfaceType; this.providedInterfaceType = newProvidedInterfaceType; if (this.eNotificationRequired()) { this.eNotify( new ENotificationImpl(this, Notification.SET, AssemblyPackage.ASSEMBLY_PROVIDED_INTERFACE__PROVIDED_INTERFACE_TYPE, oldProvidedInterfaceType, this.providedInterfaceType)); } } /** * * * * @generated */ @Override public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { switch (featureID) { case AssemblyPackage.ASSEMBLY_PROVIDED_INTERFACE__PROVIDED_INTERFACE_TYPE: if (resolve) { return this.getProvidedInterfaceType(); } return this.basicGetProvidedInterfaceType(); } return super.eGet(featureID, resolve, coreType); } /** * * * * @generated */ @Override public void eSet(final int featureID, final Object newValue) { switch (featureID) { case AssemblyPackage.ASSEMBLY_PROVIDED_INTERFACE__PROVIDED_INTERFACE_TYPE: this.setProvidedInterfaceType((ProvidedInterfaceType) newValue); return; } super.eSet(featureID, newValue); } /** * * * * @generated */ @Override public void eUnset(final int featureID) { switch (featureID) { case AssemblyPackage.ASSEMBLY_PROVIDED_INTERFACE__PROVIDED_INTERFACE_TYPE: this.setProvidedInterfaceType((ProvidedInterfaceType) null); return; } super.eUnset(featureID); } /** * * * * @generated */ @Override public boolean eIsSet(final int featureID) { switch (featureID) { case AssemblyPackage.ASSEMBLY_PROVIDED_INTERFACE__PROVIDED_INTERFACE_TYPE: return this.providedInterfaceType != null; } return super.eIsSet(featureID); } } // AssemblyProvidedInterfaceImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy