001: /**
002: * <copyright>
003: * </copyright>
004: *
005: * $Id: GMLObjectTypeListTypeImpl.java 7522 2007-09-12 22:00:10Z saul.farber $
006: */package net.opengis.wfs.impl;
007:
008: import java.util.Collection;
009:
010: import net.opengis.wfs.GMLObjectTypeListType;
011: import net.opengis.wfs.GMLObjectTypeType;
012: import net.opengis.wfs.WfsPackage;
013:
014: import org.eclipse.emf.common.notify.NotificationChain;
015:
016: import org.eclipse.emf.common.util.EList;
017:
018: import org.eclipse.emf.ecore.EClass;
019: import org.eclipse.emf.ecore.InternalEObject;
020:
021: import org.eclipse.emf.ecore.impl.EObjectImpl;
022:
023: import org.eclipse.emf.ecore.util.EObjectContainmentEList;
024: import org.eclipse.emf.ecore.util.InternalEList;
025:
026: /**
027: * <!-- begin-user-doc -->
028: * An implementation of the model object '<em><b>GML Object Type List Type</b></em>'.
029: * <!-- end-user-doc -->
030: * <p>
031: * The following features are implemented:
032: * <ul>
033: * <li>{@link net.opengis.wfs.impl.GMLObjectTypeListTypeImpl#getGMLObjectType <em>GML Object Type</em>}</li>
034: * </ul>
035: * </p>
036: *
037: * @generated
038: */
039: public class GMLObjectTypeListTypeImpl extends EObjectImpl implements
040: GMLObjectTypeListType {
041: /**
042: * The cached value of the '{@link #getGMLObjectType() <em>GML Object Type</em>}' containment reference list.
043: * <!-- begin-user-doc -->
044: * <!-- end-user-doc -->
045: * @see #getGMLObjectType()
046: * @generated
047: * @ordered
048: */
049: protected EList gMLObjectType;
050:
051: /**
052: * <!-- begin-user-doc -->
053: * <!-- end-user-doc -->
054: * @generated
055: */
056: protected GMLObjectTypeListTypeImpl() {
057: super ();
058: }
059:
060: /**
061: * <!-- begin-user-doc -->
062: * <!-- end-user-doc -->
063: * @generated
064: */
065: protected EClass eStaticClass() {
066: return WfsPackage.Literals.GML_OBJECT_TYPE_LIST_TYPE;
067: }
068:
069: /**
070: * <!-- begin-user-doc -->
071: * <!-- end-user-doc -->
072: * @generated
073: */
074: public EList getGMLObjectType() {
075: if (gMLObjectType == null) {
076: gMLObjectType = new EObjectContainmentEList(
077: GMLObjectTypeType.class,
078: this ,
079: WfsPackage.GML_OBJECT_TYPE_LIST_TYPE__GML_OBJECT_TYPE);
080: }
081: return gMLObjectType;
082: }
083:
084: /**
085: * <!-- begin-user-doc -->
086: * <!-- end-user-doc -->
087: * @generated
088: */
089: public NotificationChain eInverseRemove(InternalEObject otherEnd,
090: int featureID, NotificationChain msgs) {
091: switch (featureID) {
092: case WfsPackage.GML_OBJECT_TYPE_LIST_TYPE__GML_OBJECT_TYPE:
093: return ((InternalEList) getGMLObjectType()).basicRemove(
094: otherEnd, msgs);
095: }
096: return super .eInverseRemove(otherEnd, featureID, msgs);
097: }
098:
099: /**
100: * <!-- begin-user-doc -->
101: * <!-- end-user-doc -->
102: * @generated
103: */
104: public Object eGet(int featureID, boolean resolve, boolean coreType) {
105: switch (featureID) {
106: case WfsPackage.GML_OBJECT_TYPE_LIST_TYPE__GML_OBJECT_TYPE:
107: return getGMLObjectType();
108: }
109: return super .eGet(featureID, resolve, coreType);
110: }
111:
112: /**
113: * <!-- begin-user-doc -->
114: * <!-- end-user-doc -->
115: * @generated
116: */
117: public void eSet(int featureID, Object newValue) {
118: switch (featureID) {
119: case WfsPackage.GML_OBJECT_TYPE_LIST_TYPE__GML_OBJECT_TYPE:
120: getGMLObjectType().clear();
121: getGMLObjectType().addAll((Collection) newValue);
122: return;
123: }
124: super .eSet(featureID, newValue);
125: }
126:
127: /**
128: * <!-- begin-user-doc -->
129: * <!-- end-user-doc -->
130: * @generated
131: */
132: public void eUnset(int featureID) {
133: switch (featureID) {
134: case WfsPackage.GML_OBJECT_TYPE_LIST_TYPE__GML_OBJECT_TYPE:
135: getGMLObjectType().clear();
136: return;
137: }
138: super .eUnset(featureID);
139: }
140:
141: /**
142: * <!-- begin-user-doc -->
143: * <!-- end-user-doc -->
144: * @generated
145: */
146: public boolean eIsSet(int featureID) {
147: switch (featureID) {
148: case WfsPackage.GML_OBJECT_TYPE_LIST_TYPE__GML_OBJECT_TYPE:
149: return gMLObjectType != null && !gMLObjectType.isEmpty();
150: }
151: return super .eIsSet(featureID);
152: }
153:
154: } //GMLObjectTypeListTypeImpl
|