/** * * * * $Id$ */ package net.opengis.ows11.impl; import java.util.Collection; import net.opengis.ows11.ContentsBaseType; import net.opengis.ows11.DatasetDescriptionSummaryBaseType; import net.opengis.ows11.MetadataType; import net.opengis.ows11.Ows11Package; 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.EObjectImpl; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; /** * * An implementation of the model object 'Contents Base Type'. * *

* The following features are implemented: *

*

* * @generated */ public class ContentsBaseTypeImpl extends EObjectImpl implements ContentsBaseType { /** * The cached value of the '{@link #getDatasetDescriptionSummary() Dataset Description Summary}' containment reference list. * * * @see #getDatasetDescriptionSummary() * @generated * @ordered */ protected EList datasetDescriptionSummary; /** * The cached value of the '{@link #getOtherSource() Other Source}' containment reference list. * * * @see #getOtherSource() * @generated * @ordered */ protected EList otherSource; /** * * * @generated */ protected ContentsBaseTypeImpl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return Ows11Package.Literals.CONTENTS_BASE_TYPE; } /** * * * @generated */ public EList getDatasetDescriptionSummary() { if (datasetDescriptionSummary == null) { datasetDescriptionSummary = new EObjectContainmentEList(DatasetDescriptionSummaryBaseType.class, this, Ows11Package.CONTENTS_BASE_TYPE__DATASET_DESCRIPTION_SUMMARY); } return datasetDescriptionSummary; } /** * * * @generated */ public EList getOtherSource() { if (otherSource == null) { otherSource = new EObjectContainmentEList(MetadataType.class, this, Ows11Package.CONTENTS_BASE_TYPE__OTHER_SOURCE); } return otherSource; } /** * * * @generated */ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Ows11Package.CONTENTS_BASE_TYPE__DATASET_DESCRIPTION_SUMMARY: return ((InternalEList)getDatasetDescriptionSummary()).basicRemove(otherEnd, msgs); case Ows11Package.CONTENTS_BASE_TYPE__OTHER_SOURCE: return ((InternalEList)getOtherSource()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Ows11Package.CONTENTS_BASE_TYPE__DATASET_DESCRIPTION_SUMMARY: return getDatasetDescriptionSummary(); case Ows11Package.CONTENTS_BASE_TYPE__OTHER_SOURCE: return getOtherSource(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case Ows11Package.CONTENTS_BASE_TYPE__DATASET_DESCRIPTION_SUMMARY: getDatasetDescriptionSummary().clear(); getDatasetDescriptionSummary().addAll((Collection)newValue); return; case Ows11Package.CONTENTS_BASE_TYPE__OTHER_SOURCE: getOtherSource().clear(); getOtherSource().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case Ows11Package.CONTENTS_BASE_TYPE__DATASET_DESCRIPTION_SUMMARY: getDatasetDescriptionSummary().clear(); return; case Ows11Package.CONTENTS_BASE_TYPE__OTHER_SOURCE: getOtherSource().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case Ows11Package.CONTENTS_BASE_TYPE__DATASET_DESCRIPTION_SUMMARY: return datasetDescriptionSummary != null && !datasetDescriptionSummary.isEmpty(); case Ows11Package.CONTENTS_BASE_TYPE__OTHER_SOURCE: return otherSource != null && !otherSource.isEmpty(); } return super.eIsSet(featureID); } } //ContentsBaseTypeImpl