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

kieker.analysis.model.analysisMetaModel.impl.MRepositoryConnector Maven / Gradle / Ivy

/**
 */
package kieker.analysis.model.analysisMetaModel.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.EObjectImpl;

import kieker.analysis.model.analysisMetaModel.MIAnalysisMetaModelPackage;
import kieker.analysis.model.analysisMetaModel.MIRepository;
import kieker.analysis.model.analysisMetaModel.MIRepositoryConnector;

/**
 * 
 * An implementation of the model object 'Repository Connector'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link kieker.analysis.model.analysisMetaModel.impl.MRepositoryConnector#getName Name}
  • *
  • {@link kieker.analysis.model.analysisMetaModel.impl.MRepositoryConnector#getRepository Repository}
  • *
  • {@link kieker.analysis.model.analysisMetaModel.impl.MRepositoryConnector#getId Id}
  • *
*

* * @generated */ public class MRepositoryConnector extends EObjectImpl implements MIRepositoryConnector { /** * The default value of the '{@link #getName() Name}' attribute. * * * * @see #getName() * @generated * @ordered */ protected static final String NAME_EDEFAULT = null; /** * The cached value of the '{@link #getName() Name}' attribute. * * * * @see #getName() * @generated * @ordered */ protected String name = NAME_EDEFAULT; /** * The cached value of the '{@link #getRepository() Repository}' reference. * * * * @see #getRepository() * @generated * @ordered */ protected MIRepository repository; /** * The default value of the '{@link #getId() Id}' attribute. * * * * @see #getId() * @generated * @ordered */ protected static final String ID_EDEFAULT = null; /** * The cached value of the '{@link #getId() Id}' attribute. * * * * @see #getId() * @generated * @ordered */ protected String id = ID_EDEFAULT; /** * * * * @generated */ protected MRepositoryConnector() { super(); } /** * * * * @generated */ @Override protected EClass eStaticClass() { return MIAnalysisMetaModelPackage.Literals.REPOSITORY_CONNECTOR; } /** * * * * @generated */ public String getName() { return this.name; } /** * * * * @generated */ public void setName(final String newName) { final String oldName = this.name; this.name = newName; if (this.eNotificationRequired()) { this.eNotify(new ENotificationImpl(this, Notification.SET, MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__NAME, oldName, this.name)); } } /** * * * * @generated */ public MIRepository getRepository() { if ((this.repository != null) && this.repository.eIsProxy()) { final InternalEObject oldRepository = (InternalEObject) this.repository; this.repository = (MIRepository) this.eResolveProxy(oldRepository); if (this.repository != oldRepository) { if (this.eNotificationRequired()) { this.eNotify(new ENotificationImpl(this, Notification.RESOLVE, MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY, oldRepository, this.repository)); } } } return this.repository; } /** * * * * @generated */ public MIRepository basicGetRepository() { return this.repository; } /** * * * * @generated */ public void setRepository(final MIRepository newRepository) { final MIRepository oldRepository = this.repository; this.repository = newRepository; if (this.eNotificationRequired()) { this.eNotify(new ENotificationImpl(this, Notification.SET, MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY, oldRepository, this.repository)); } } /** * * * * @generated */ public String getId() { return this.id; } /** * * * * @generated */ public void setId(final String newId) { final String oldId = this.id; this.id = newId; if (this.eNotificationRequired()) { this.eNotify(new ENotificationImpl(this, Notification.SET, MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__ID, oldId, this.id)); } } /** * * * * @generated */ @Override public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { switch (featureID) { case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__NAME: return this.getName(); case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY: if (resolve) { return this.getRepository(); } return this.basicGetRepository(); case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__ID: return this.getId(); } return super.eGet(featureID, resolve, coreType); } /** * * * * @generated */ @Override public void eSet(final int featureID, final Object newValue) { switch (featureID) { case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__NAME: this.setName((String) newValue); return; case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY: this.setRepository((MIRepository) newValue); return; case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__ID: this.setId((String) newValue); return; } super.eSet(featureID, newValue); } /** * * * * @generated */ @Override public void eUnset(final int featureID) { switch (featureID) { case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__NAME: this.setName(NAME_EDEFAULT); return; case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY: this.setRepository((MIRepository) null); return; case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__ID: this.setId(ID_EDEFAULT); return; } super.eUnset(featureID); } /** * * * * @generated */ @Override public boolean eIsSet(final int featureID) { switch (featureID) { case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__NAME: return NAME_EDEFAULT == null ? this.name != null : !NAME_EDEFAULT.equals(this.name); case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__REPOSITORY: return this.repository != null; case MIAnalysisMetaModelPackage.REPOSITORY_CONNECTOR__ID: return ID_EDEFAULT == null ? this.id != null : !ID_EDEFAULT.equals(this.id); } return super.eIsSet(featureID); } /** * * * * @generated */ @Override public String toString() { if (this.eIsProxy()) { return super.toString(); } final StringBuffer result = new StringBuffer(super.toString()); result.append(" (name: "); result.append(this.name); result.append(", id: "); result.append(this.id); result.append(')'); return result.toString(); } } // MRepositoryConnector




© 2015 - 2025 Weber Informatics LLC | Privacy Policy