/** * * * * $Id$ */ package net.opengis.ows10.impl; import java.util.Collection; import net.opengis.ows10.Ows10Package; import net.opengis.ows10.SectionsType; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.EObjectImpl; import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; /** * * An implementation of the model object 'Sections Type'. * *

* The following features are implemented: *

*

* * @generated */ public class SectionsTypeImpl extends EObjectImpl implements SectionsType { /** * The cached value of the '{@link #getSection() Section}' attribute list. * * * @see #getSection() * @generated * @ordered */ protected EList section; /** * * * @generated */ protected SectionsTypeImpl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return Ows10Package.eINSTANCE.getSectionsType(); } /** * * * @generated */ public EList getSection() { if (section == null) { section = new EDataTypeUniqueEList(String.class, this, Ows10Package.SECTIONS_TYPE__SECTION); } return section; } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Ows10Package.SECTIONS_TYPE__SECTION: return getSection(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case Ows10Package.SECTIONS_TYPE__SECTION: getSection().clear(); getSection().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case Ows10Package.SECTIONS_TYPE__SECTION: getSection().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case Ows10Package.SECTIONS_TYPE__SECTION: return section != null && !section.isEmpty(); } return super.eIsSet(featureID); } /** * * * @generated */ public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (section: "); result.append(section); result.append(')'); return result.toString(); } } //SectionsTypeImpl