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

org.nasdanika.models.coverage.impl.SourceCoverageImpl Maven / Gradle / Ivy

There is a newer version: 2024.8.0
Show newest version
/**
 */
package org.nasdanika.models.coverage.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.InternalEList;

import org.nasdanika.models.coverage.CoveragePackage;
import org.nasdanika.models.coverage.Line;
import org.nasdanika.models.coverage.SourceCoverage;

/**
 * 
 * An implementation of the model object 'Source Coverage'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.coverage.impl.SourceCoverageImpl#getLines Lines}
  • *
* * @generated */ public class SourceCoverageImpl extends CoverageImpl implements SourceCoverage { /** * * * @generated */ protected SourceCoverageImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return CoveragePackage.Literals.SOURCE_COVERAGE; } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getLines() { return (EList)eDynamicGet(CoveragePackage.SOURCE_COVERAGE__LINES, CoveragePackage.Literals.SOURCE_COVERAGE__LINES, true, true); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case CoveragePackage.SOURCE_COVERAGE__LINES: return ((InternalEList)getLines()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case CoveragePackage.SOURCE_COVERAGE__LINES: return getLines(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case CoveragePackage.SOURCE_COVERAGE__LINES: getLines().clear(); getLines().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case CoveragePackage.SOURCE_COVERAGE__LINES: getLines().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case CoveragePackage.SOURCE_COVERAGE__LINES: return !getLines().isEmpty(); } return super.eIsSet(featureID); } } //SourceCoverageImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy