kieker.model.analysismodel.assembly.impl.AssemblyStorageImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of model Show documentation
Show all versions of model Show documentation
Kieker: Application Performance Monitoring and Dynamic Software Analysis
The newest version!
/**
*/
package kieker.model.analysismodel.assembly.impl;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
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.AssemblyComponent;
import kieker.model.analysismodel.assembly.AssemblyPackage;
import kieker.model.analysismodel.assembly.AssemblyStorage;
import kieker.model.analysismodel.type.StorageType;
/**
*
* An implementation of the model object 'Storage'.
*
*
* The following features are implemented:
*
*
* - {@link kieker.model.analysismodel.assembly.impl.AssemblyStorageImpl#getStorageType Storage Type}
*
*
* @generated
*/
public class AssemblyStorageImpl extends MinimalEObjectImpl.Container implements AssemblyStorage {
/**
* The cached value of the '{@link #getStorageType() Storage Type}' reference.
*
*
*
* @see #getStorageType()
* @generated
* @ordered
*/
protected StorageType storageType;
/**
*
*
*
* @generated
*/
protected AssemblyStorageImpl() {
super();
}
/**
*
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return AssemblyPackage.Literals.ASSEMBLY_STORAGE;
}
/**
*
*
*
* @generated
*/
@Override
public StorageType getStorageType() {
if ((this.storageType != null) && this.storageType.eIsProxy()) {
final InternalEObject oldStorageType = (InternalEObject) this.storageType;
this.storageType = (StorageType) this.eResolveProxy(oldStorageType);
if (this.storageType != oldStorageType) {
if (this.eNotificationRequired()) {
this.eNotify(
new ENotificationImpl(this, Notification.RESOLVE, AssemblyPackage.ASSEMBLY_STORAGE__STORAGE_TYPE, oldStorageType, this.storageType));
}
}
}
return this.storageType;
}
/**
*
*
*
* @generated
*/
public StorageType basicGetStorageType() {
return this.storageType;
}
/**
*
*
*
* @generated
*/
@Override
public void setStorageType(final StorageType newStorageType) {
final StorageType oldStorageType = this.storageType;
this.storageType = newStorageType;
if (this.eNotificationRequired()) {
this.eNotify(new ENotificationImpl(this, Notification.SET, AssemblyPackage.ASSEMBLY_STORAGE__STORAGE_TYPE, oldStorageType, this.storageType));
}
}
/**
*
*
*
* @generated
*/
@Override
public AssemblyComponent getComponent() {
final org.eclipse.emf.ecore.EObject container = this.eContainer();
if (container != null) {
final org.eclipse.emf.ecore.EObject containerContainer = container.eContainer();
if (containerContainer != null) {
return (AssemblyComponent) containerContainer;
}
}
return null;
}
/**
*
*
*
* @generated
*/
@Override
public Object eGet(final int featureID, final boolean resolve, final boolean coreType) {
switch (featureID) {
case AssemblyPackage.ASSEMBLY_STORAGE__STORAGE_TYPE:
if (resolve) {
return this.getStorageType();
}
return this.basicGetStorageType();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
*
* @generated
*/
@Override
public void eSet(final int featureID, final Object newValue) {
switch (featureID) {
case AssemblyPackage.ASSEMBLY_STORAGE__STORAGE_TYPE:
this.setStorageType((StorageType) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
*
* @generated
*/
@Override
public void eUnset(final int featureID) {
switch (featureID) {
case AssemblyPackage.ASSEMBLY_STORAGE__STORAGE_TYPE:
this.setStorageType((StorageType) null);
return;
}
super.eUnset(featureID);
}
/**
*
*
*
* @generated
*/
@Override
public boolean eIsSet(final int featureID) {
switch (featureID) {
case AssemblyPackage.ASSEMBLY_STORAGE__STORAGE_TYPE:
return this.storageType != null;
}
return super.eIsSet(featureID);
}
/**
*
*
*
* @generated
*/
@Override
public Object eInvoke(final int operationID, final EList> arguments) throws InvocationTargetException {
switch (operationID) {
case AssemblyPackage.ASSEMBLY_STORAGE___GET_COMPONENT:
return this.getComponent();
}
return super.eInvoke(operationID, arguments);
}
} // AssemblyStorageImpl