kieker.analysis.model.analysisMetaModel.impl.MPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analysis Show documentation
Show all versions of analysis Show documentation
Kieker: Application Performance Monitoring and Dynamic Software Analysis
The newest version!
/**
*/
package kieker.analysis.model.analysisMetaModel.impl;
import java.util.Collection;
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.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
import org.eclipse.emf.ecore.util.InternalEList;
import kieker.analysis.model.analysisMetaModel.MIAnalysisMetaModelPackage;
import kieker.analysis.model.analysisMetaModel.MIDisplay;
import kieker.analysis.model.analysisMetaModel.MIOutputPort;
import kieker.analysis.model.analysisMetaModel.MIPlugin;
import kieker.analysis.model.analysisMetaModel.MIRepositoryConnector;
/**
*
* An implementation of the model object 'Plugin'.
*
*
* The following features are implemented:
*
* - {@link kieker.analysis.model.analysisMetaModel.impl.MPlugin#getRepositories Repositories}
* - {@link kieker.analysis.model.analysisMetaModel.impl.MPlugin#getOutputPorts Output Ports}
* - {@link kieker.analysis.model.analysisMetaModel.impl.MPlugin#getDisplays Displays}
*
*
*
* @generated
*/
public abstract class MPlugin extends MAnalysisComponent implements MIPlugin {
/**
* The cached value of the '{@link #getRepositories() Repositories}' containment reference list.
*
*
*
* @see #getRepositories()
* @generated
* @ordered
*/
protected EList repositories;
/**
* The cached value of the '{@link #getOutputPorts() Output Ports}' containment reference list.
*
*
*
* @see #getOutputPorts()
* @generated
* @ordered
*/
protected EList outputPorts;
/**
* The cached value of the '{@link #getDisplays() Displays}' containment reference list.
*
*
*
* @see #getDisplays()
* @generated
* @ordered
*/
protected EList displays;
/**
*
*
*
* @generated
*/
protected MPlugin() {
super();
}
/**
*
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return MIAnalysisMetaModelPackage.Literals.PLUGIN;
}
/**
*
*
*
* @generated
*/
public EList getRepositories() {
if (this.repositories == null) {
this.repositories = new EObjectContainmentEList<>(MIRepositoryConnector.class, this,
MIAnalysisMetaModelPackage.PLUGIN__REPOSITORIES);
}
return this.repositories;
}
/**
*
*
*
* @generated
*/
public EList getOutputPorts() {
if (this.outputPorts == null) {
this.outputPorts = new EObjectContainmentWithInverseEList<>(MIOutputPort.class, this, MIAnalysisMetaModelPackage.PLUGIN__OUTPUT_PORTS,
MIAnalysisMetaModelPackage.OUTPUT_PORT__PARENT);
}
return this.outputPorts;
}
/**
*
*
*
* @generated
*/
public EList getDisplays() {
if (this.displays == null) {
this.displays = new EObjectContainmentWithInverseEList<>(MIDisplay.class, this, MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS,
MIAnalysisMetaModelPackage.DISPLAY__PARENT);
}
return this.displays;
}
/**
*
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(final InternalEObject otherEnd, final int featureID, final NotificationChain msgs) {
switch (featureID) {
case MIAnalysisMetaModelPackage.PLUGIN__OUTPUT_PORTS:
return ((InternalEList) (InternalEList>) this.getOutputPorts()).basicAdd(otherEnd, msgs);
case MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS:
return ((InternalEList) (InternalEList>) this.getDisplays()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
*
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(final InternalEObject otherEnd, final int featureID, final NotificationChain msgs) {
switch (featureID) {
case MIAnalysisMetaModelPackage.PLUGIN__REPOSITORIES:
return ((InternalEList>) this.getRepositories()).basicRemove(otherEnd, msgs);
case MIAnalysisMetaModelPackage.PLUGIN__OUTPUT_PORTS:
return ((InternalEList>) this.getOutputPorts()).basicRemove(otherEnd, msgs);
case MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS:
return ((InternalEList>) this.getDisplays()).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.PLUGIN__REPOSITORIES:
return this.getRepositories();
case MIAnalysisMetaModelPackage.PLUGIN__OUTPUT_PORTS:
return this.getOutputPorts();
case MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS:
return this.getDisplays();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(final int featureID, final Object newValue) {
switch (featureID) {
case MIAnalysisMetaModelPackage.PLUGIN__REPOSITORIES:
this.getRepositories().clear();
this.getRepositories().addAll((Collection extends MIRepositoryConnector>) newValue);
return;
case MIAnalysisMetaModelPackage.PLUGIN__OUTPUT_PORTS:
this.getOutputPorts().clear();
this.getOutputPorts().addAll((Collection extends MIOutputPort>) newValue);
return;
case MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS:
this.getDisplays().clear();
this.getDisplays().addAll((Collection extends MIDisplay>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
*
* @generated
*/
@Override
public void eUnset(final int featureID) {
switch (featureID) {
case MIAnalysisMetaModelPackage.PLUGIN__REPOSITORIES:
this.getRepositories().clear();
return;
case MIAnalysisMetaModelPackage.PLUGIN__OUTPUT_PORTS:
this.getOutputPorts().clear();
return;
case MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS:
this.getDisplays().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
*
* @generated
*/
@Override
public boolean eIsSet(final int featureID) {
switch (featureID) {
case MIAnalysisMetaModelPackage.PLUGIN__REPOSITORIES:
return (this.repositories != null) && !this.repositories.isEmpty();
case MIAnalysisMetaModelPackage.PLUGIN__OUTPUT_PORTS:
return (this.outputPorts != null) && !this.outputPorts.isEmpty();
case MIAnalysisMetaModelPackage.PLUGIN__DISPLAYS:
return (this.displays != null) && !this.displays.isEmpty();
}
return super.eIsSet(featureID);
}
} // MPlugin