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

de.opitzconsulting.orcasDsl.impl.RangeSubSubPartImpl Maven / Gradle / Ivy

/**
 */
package de.opitzconsulting.orcasDsl.impl;

import de.opitzconsulting.orcasDsl.OrcasDslPackage;
import de.opitzconsulting.orcasDsl.RangePartitionValue;
import de.opitzconsulting.orcasDsl.RangeSubSubPart;

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.InternalEList;

/**
 * 
 * An implementation of the model object 'Range Sub Sub Part'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link de.opitzconsulting.orcasDsl.impl.RangeSubSubPartImpl#getValue Value}
  • *
* * @generated */ public class RangeSubSubPartImpl extends SubSubPartImpl implements RangeSubSubPart { /** * The cached value of the '{@link #getValue() Value}' containment reference list. * * * @see #getValue() * @generated * @ordered */ public EList value; /** * * * @generated */ public RangeSubSubPartImpl() { super(); } /** * * * @generated */ @Override public EClass eStaticClass() { return OrcasDslPackage.Literals.RANGE_SUB_SUB_PART; } /** * * * @generated */ public EList getValue() { if (value == null) { value = new EObjectContainmentEList(RangePartitionValue.class, this, OrcasDslPackage.RANGE_SUB_SUB_PART__VALUE); } return value; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case OrcasDslPackage.RANGE_SUB_SUB_PART__VALUE: return ((InternalEList)getValue()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case OrcasDslPackage.RANGE_SUB_SUB_PART__VALUE: return getValue(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case OrcasDslPackage.RANGE_SUB_SUB_PART__VALUE: getValue().clear(); getValue().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case OrcasDslPackage.RANGE_SUB_SUB_PART__VALUE: getValue().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case OrcasDslPackage.RANGE_SUB_SUB_PART__VALUE: return value != null && !value.isEmpty(); } return super.eIsSet(featureID); } } //RangeSubSubPartImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy