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

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

The newest version!
/**
 */
package kieker.analysis.model.analysisMetaModel.impl;

import java.util.Collection;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
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.EObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

import kieker.analysis.model.analysisMetaModel.MIAnalysisMetaModelPackage;
import kieker.analysis.model.analysisMetaModel.MIDependency;
import kieker.analysis.model.analysisMetaModel.MIPlugin;
import kieker.analysis.model.analysisMetaModel.MIProject;
import kieker.analysis.model.analysisMetaModel.MIProperty;
import kieker.analysis.model.analysisMetaModel.MIRepository;
import kieker.analysis.model.analysisMetaModel.MIView;

/**
 * 
 * An implementation of the model object 'Project'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link kieker.analysis.model.analysisMetaModel.impl.MProject#getPlugins Plugins}
  • *
  • {@link kieker.analysis.model.analysisMetaModel.impl.MProject#getName Name}
  • *
  • {@link kieker.analysis.model.analysisMetaModel.impl.MProject#getRepositories Repositories}
  • *
  • {@link kieker.analysis.model.analysisMetaModel.impl.MProject#getDependencies Dependencies}
  • *
  • {@link kieker.analysis.model.analysisMetaModel.impl.MProject#getViews Views}
  • *
  • {@link kieker.analysis.model.analysisMetaModel.impl.MProject#getProperties Properties}
  • *
*

* * @generated */ public class MProject extends EObjectImpl implements MIProject { /** * The cached value of the '{@link #getPlugins() Plugins}' containment reference list. * * * * @see #getPlugins() * @generated * @ordered */ protected EList plugins; /** * 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 #getRepositories() Repositories}' containment reference list. * * * * @see #getRepositories() * @generated * @ordered */ protected EList repositories; /** * The cached value of the '{@link #getDependencies() Dependencies}' containment reference list. * * * * @see #getDependencies() * @generated * @ordered */ protected EList dependencies; /** * The cached value of the '{@link #getViews() Views}' containment reference list. * * * * @see #getViews() * @generated * @ordered */ protected EList views; /** * The cached value of the '{@link #getProperties() Properties}' containment reference list. * * * * @see #getProperties() * @generated * @ordered */ protected EList properties; /** * * * * @generated */ protected MProject() { super(); } /** * * * * @generated */ @Override protected EClass eStaticClass() { return MIAnalysisMetaModelPackage.Literals.PROJECT; } /** * * * * @generated */ public EList getPlugins() { if (this.plugins == null) { this.plugins = new EObjectContainmentEList<>(MIPlugin.class, this, MIAnalysisMetaModelPackage.PROJECT__PLUGINS); } return this.plugins; } /** * * * * @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.PROJECT__NAME, oldName, this.name)); } } /** * * * * @generated */ public EList getRepositories() { if (this.repositories == null) { this.repositories = new EObjectContainmentEList<>(MIRepository.class, this, MIAnalysisMetaModelPackage.PROJECT__REPOSITORIES); } return this.repositories; } /** * * * * @generated */ public EList getDependencies() { if (this.dependencies == null) { this.dependencies = new EObjectContainmentEList<>(MIDependency.class, this, MIAnalysisMetaModelPackage.PROJECT__DEPENDENCIES); } return this.dependencies; } /** * * * * @generated */ public EList getViews() { if (this.views == null) { this.views = new EObjectContainmentEList<>(MIView.class, this, MIAnalysisMetaModelPackage.PROJECT__VIEWS); } return this.views; } /** * * * * @generated */ public EList getProperties() { if (this.properties == null) { this.properties = new EObjectContainmentEList<>(MIProperty.class, this, MIAnalysisMetaModelPackage.PROJECT__PROPERTIES); } return this.properties; } /** * * * * @generated */ @Override public NotificationChain eInverseRemove(final InternalEObject otherEnd, final int featureID, final NotificationChain msgs) { switch (featureID) { case MIAnalysisMetaModelPackage.PROJECT__PLUGINS: return ((InternalEList) this.getPlugins()).basicRemove(otherEnd, msgs); case MIAnalysisMetaModelPackage.PROJECT__REPOSITORIES: return ((InternalEList) this.getRepositories()).basicRemove(otherEnd, msgs); case MIAnalysisMetaModelPackage.PROJECT__DEPENDENCIES: return ((InternalEList) this.getDependencies()).basicRemove(otherEnd, msgs); case MIAnalysisMetaModelPackage.PROJECT__VIEWS: return ((InternalEList) this.getViews()).basicRemove(otherEnd, msgs); case MIAnalysisMetaModelPackage.PROJECT__PROPERTIES: return ((InternalEList) this.getProperties()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * * @generated */ @Override public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { switch (featureID) { case MIAnalysisMetaModelPackage.PROJECT__PLUGINS: return this.getPlugins(); case MIAnalysisMetaModelPackage.PROJECT__NAME: return this.getName(); case MIAnalysisMetaModelPackage.PROJECT__REPOSITORIES: return this.getRepositories(); case MIAnalysisMetaModelPackage.PROJECT__DEPENDENCIES: return this.getDependencies(); case MIAnalysisMetaModelPackage.PROJECT__VIEWS: return this.getViews(); case MIAnalysisMetaModelPackage.PROJECT__PROPERTIES: return this.getProperties(); } return super.eGet(featureID, resolve, coreType); } /** * * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(final int featureID, final Object newValue) { switch (featureID) { case MIAnalysisMetaModelPackage.PROJECT__PLUGINS: this.getPlugins().clear(); this.getPlugins().addAll((Collection) newValue); return; case MIAnalysisMetaModelPackage.PROJECT__NAME: this.setName((String) newValue); return; case MIAnalysisMetaModelPackage.PROJECT__REPOSITORIES: this.getRepositories().clear(); this.getRepositories().addAll((Collection) newValue); return; case MIAnalysisMetaModelPackage.PROJECT__DEPENDENCIES: this.getDependencies().clear(); this.getDependencies().addAll((Collection) newValue); return; case MIAnalysisMetaModelPackage.PROJECT__VIEWS: this.getViews().clear(); this.getViews().addAll((Collection) newValue); return; case MIAnalysisMetaModelPackage.PROJECT__PROPERTIES: this.getProperties().clear(); this.getProperties().addAll((Collection) newValue); return; } super.eSet(featureID, newValue); } /** * * * * @generated */ @Override public void eUnset(final int featureID) { switch (featureID) { case MIAnalysisMetaModelPackage.PROJECT__PLUGINS: this.getPlugins().clear(); return; case MIAnalysisMetaModelPackage.PROJECT__NAME: this.setName(NAME_EDEFAULT); return; case MIAnalysisMetaModelPackage.PROJECT__REPOSITORIES: this.getRepositories().clear(); return; case MIAnalysisMetaModelPackage.PROJECT__DEPENDENCIES: this.getDependencies().clear(); return; case MIAnalysisMetaModelPackage.PROJECT__VIEWS: this.getViews().clear(); return; case MIAnalysisMetaModelPackage.PROJECT__PROPERTIES: this.getProperties().clear(); return; } super.eUnset(featureID); } /** * * * * @generated */ @Override public boolean eIsSet(final int featureID) { switch (featureID) { case MIAnalysisMetaModelPackage.PROJECT__PLUGINS: return (this.plugins != null) && !this.plugins.isEmpty(); case MIAnalysisMetaModelPackage.PROJECT__NAME: return NAME_EDEFAULT == null ? this.name != null : !NAME_EDEFAULT.equals(this.name); case MIAnalysisMetaModelPackage.PROJECT__REPOSITORIES: return (this.repositories != null) && !this.repositories.isEmpty(); case MIAnalysisMetaModelPackage.PROJECT__DEPENDENCIES: return (this.dependencies != null) && !this.dependencies.isEmpty(); case MIAnalysisMetaModelPackage.PROJECT__VIEWS: return (this.views != null) && !this.views.isEmpty(); case MIAnalysisMetaModelPackage.PROJECT__PROPERTIES: return (this.properties != null) && !this.properties.isEmpty(); } 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(')'); return result.toString(); } } // MProject




© 2015 - 2025 Weber Informatics LLC | Privacy Policy