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

org.nasdanika.models.rules.impl.InspectableImpl Maven / Gradle / Ivy

The newest version!
/**
 */
package org.nasdanika.models.rules.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.impl.MinimalEObjectImpl;

import org.eclipse.emf.ecore.util.InternalEList;

import org.nasdanika.models.rules.Inspectable;
import org.nasdanika.models.rules.InspectionResult;
import org.nasdanika.models.rules.RulesPackage;
import org.nasdanika.models.rules.Waiver;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.rules.impl.InspectableImpl#getInspectionResults Inspection Results}
  • *
  • {@link org.nasdanika.models.rules.impl.InspectableImpl#getWaivers Waivers}
  • *
* * @generated */ public class InspectableImpl extends MinimalEObjectImpl.Container implements Inspectable { /** * * * @generated */ protected InspectableImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return RulesPackage.Literals.INSPECTABLE; } /** * * * @generated */ @Override protected int eStaticFeatureCount() { return 0; } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getInspectionResults() { return (EList)eDynamicGet(RulesPackage.INSPECTABLE__INSPECTION_RESULTS, RulesPackage.Literals.INSPECTABLE__INSPECTION_RESULTS, true, true); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getWaivers() { return (EList)eDynamicGet(RulesPackage.INSPECTABLE__WAIVERS, RulesPackage.Literals.INSPECTABLE__WAIVERS, true, true); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case RulesPackage.INSPECTABLE__INSPECTION_RESULTS: return ((InternalEList)getInspectionResults()).basicRemove(otherEnd, msgs); case RulesPackage.INSPECTABLE__WAIVERS: return ((InternalEList)getWaivers()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case RulesPackage.INSPECTABLE__INSPECTION_RESULTS: return getInspectionResults(); case RulesPackage.INSPECTABLE__WAIVERS: return getWaivers(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case RulesPackage.INSPECTABLE__INSPECTION_RESULTS: getInspectionResults().clear(); getInspectionResults().addAll((Collection)newValue); return; case RulesPackage.INSPECTABLE__WAIVERS: getWaivers().clear(); getWaivers().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case RulesPackage.INSPECTABLE__INSPECTION_RESULTS: getInspectionResults().clear(); return; case RulesPackage.INSPECTABLE__WAIVERS: getWaivers().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case RulesPackage.INSPECTABLE__INSPECTION_RESULTS: return !getInspectionResults().isEmpty(); case RulesPackage.INSPECTABLE__WAIVERS: return !getWaivers().isEmpty(); } return super.eIsSet(featureID); } } //InspectableImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy