001: /**
002: * <copyright>
003: * </copyright>
004: *
005: * $Id: GetGmlObjectTypeImpl.java 7522 2007-09-12 22:00:10Z saul.farber $
006: */package net.opengis.wfs.impl;
007:
008: import java.math.BigInteger;
009:
010: import net.opengis.wfs.GetGmlObjectType;
011: import net.opengis.wfs.WfsPackage;
012:
013: import org.eclipse.emf.common.notify.Notification;
014:
015: import org.eclipse.emf.ecore.EClass;
016:
017: import org.eclipse.emf.ecore.impl.ENotificationImpl;
018:
019: /**
020: * <!-- begin-user-doc -->
021: * An implementation of the model object '<em><b>Get Gml Object Type</b></em>'.
022: * <!-- end-user-doc -->
023: * <p>
024: * The following features are implemented:
025: * <ul>
026: * <li>{@link net.opengis.wfs.impl.GetGmlObjectTypeImpl#getGmlObjectId <em>Gml Object Id</em>}</li>
027: * <li>{@link net.opengis.wfs.impl.GetGmlObjectTypeImpl#getOutputFormat <em>Output Format</em>}</li>
028: * <li>{@link net.opengis.wfs.impl.GetGmlObjectTypeImpl#getTraverseXlinkDepth <em>Traverse Xlink Depth</em>}</li>
029: * <li>{@link net.opengis.wfs.impl.GetGmlObjectTypeImpl#getTraverseXlinkExpiry <em>Traverse Xlink Expiry</em>}</li>
030: * </ul>
031: * </p>
032: *
033: * @generated
034: */
035: public class GetGmlObjectTypeImpl extends BaseRequestTypeImpl implements
036: GetGmlObjectType {
037: /**
038: * The default value of the '{@link #getGmlObjectId() <em>Gml Object Id</em>}' attribute.
039: * <!-- begin-user-doc -->
040: * <!-- end-user-doc -->
041: * @see #getGmlObjectId()
042: * @generated
043: * @ordered
044: */
045: protected static final Object GML_OBJECT_ID_EDEFAULT = null;
046:
047: /**
048: * The cached value of the '{@link #getGmlObjectId() <em>Gml Object Id</em>}' attribute.
049: * <!-- begin-user-doc -->
050: * <!-- end-user-doc -->
051: * @see #getGmlObjectId()
052: * @generated
053: * @ordered
054: */
055: protected Object gmlObjectId = GML_OBJECT_ID_EDEFAULT;
056:
057: /**
058: * The default value of the '{@link #getOutputFormat() <em>Output Format</em>}' attribute.
059: * <!-- begin-user-doc -->
060: * <!-- end-user-doc -->
061: * @see #getOutputFormat()
062: * @generated
063: * @ordered
064: */
065: protected static final String OUTPUT_FORMAT_EDEFAULT = "GML3";
066:
067: /**
068: * The cached value of the '{@link #getOutputFormat() <em>Output Format</em>}' attribute.
069: * <!-- begin-user-doc -->
070: * <!-- end-user-doc -->
071: * @see #getOutputFormat()
072: * @generated
073: * @ordered
074: */
075: protected String outputFormat = OUTPUT_FORMAT_EDEFAULT;
076:
077: /**
078: * This is true if the Output Format attribute has been set.
079: * <!-- begin-user-doc -->
080: * <!-- end-user-doc -->
081: * @generated
082: * @ordered
083: */
084: protected boolean outputFormatESet;
085:
086: /**
087: * The default value of the '{@link #getTraverseXlinkDepth() <em>Traverse Xlink Depth</em>}' attribute.
088: * <!-- begin-user-doc -->
089: * <!-- end-user-doc -->
090: * @see #getTraverseXlinkDepth()
091: * @generated
092: * @ordered
093: */
094: protected static final String TRAVERSE_XLINK_DEPTH_EDEFAULT = null;
095:
096: /**
097: * The cached value of the '{@link #getTraverseXlinkDepth() <em>Traverse Xlink Depth</em>}' attribute.
098: * <!-- begin-user-doc -->
099: * <!-- end-user-doc -->
100: * @see #getTraverseXlinkDepth()
101: * @generated
102: * @ordered
103: */
104: protected String traverseXlinkDepth = TRAVERSE_XLINK_DEPTH_EDEFAULT;
105:
106: /**
107: * The default value of the '{@link #getTraverseXlinkExpiry() <em>Traverse Xlink Expiry</em>}' attribute.
108: * <!-- begin-user-doc -->
109: * <!-- end-user-doc -->
110: * @see #getTraverseXlinkExpiry()
111: * @generated
112: * @ordered
113: */
114: protected static final BigInteger TRAVERSE_XLINK_EXPIRY_EDEFAULT = null;
115:
116: /**
117: * The cached value of the '{@link #getTraverseXlinkExpiry() <em>Traverse Xlink Expiry</em>}' attribute.
118: * <!-- begin-user-doc -->
119: * <!-- end-user-doc -->
120: * @see #getTraverseXlinkExpiry()
121: * @generated
122: * @ordered
123: */
124: protected BigInteger traverseXlinkExpiry = TRAVERSE_XLINK_EXPIRY_EDEFAULT;
125:
126: /**
127: * <!-- begin-user-doc -->
128: * <!-- end-user-doc -->
129: * @generated
130: */
131: protected GetGmlObjectTypeImpl() {
132: super ();
133: }
134:
135: /**
136: * <!-- begin-user-doc -->
137: * <!-- end-user-doc -->
138: * @generated
139: */
140: protected EClass eStaticClass() {
141: return WfsPackage.Literals.GET_GML_OBJECT_TYPE;
142: }
143:
144: /**
145: * <!-- begin-user-doc -->
146: * <!-- end-user-doc -->
147: * @generated
148: */
149: public Object getGmlObjectId() {
150: return gmlObjectId;
151: }
152:
153: /**
154: * <!-- begin-user-doc -->
155: * <!-- end-user-doc -->
156: * @generated
157: */
158: public void setGmlObjectId(Object newGmlObjectId) {
159: Object oldGmlObjectId = gmlObjectId;
160: gmlObjectId = newGmlObjectId;
161: if (eNotificationRequired())
162: eNotify(new ENotificationImpl(this , Notification.SET,
163: WfsPackage.GET_GML_OBJECT_TYPE__GML_OBJECT_ID,
164: oldGmlObjectId, gmlObjectId));
165: }
166:
167: /**
168: * <!-- begin-user-doc -->
169: * <!-- end-user-doc -->
170: * @generated
171: */
172: public String getOutputFormat() {
173: return outputFormat;
174: }
175:
176: /**
177: * <!-- begin-user-doc -->
178: * <!-- end-user-doc -->
179: * @generated
180: */
181: public void setOutputFormat(String newOutputFormat) {
182: String oldOutputFormat = outputFormat;
183: outputFormat = newOutputFormat;
184: boolean oldOutputFormatESet = outputFormatESet;
185: outputFormatESet = true;
186: if (eNotificationRequired())
187: eNotify(new ENotificationImpl(this , Notification.SET,
188: WfsPackage.GET_GML_OBJECT_TYPE__OUTPUT_FORMAT,
189: oldOutputFormat, outputFormat, !oldOutputFormatESet));
190: }
191:
192: /**
193: * <!-- begin-user-doc -->
194: * <!-- end-user-doc -->
195: * @generated
196: */
197: public void unsetOutputFormat() {
198: String oldOutputFormat = outputFormat;
199: boolean oldOutputFormatESet = outputFormatESet;
200: outputFormat = OUTPUT_FORMAT_EDEFAULT;
201: outputFormatESet = false;
202: if (eNotificationRequired())
203: eNotify(new ENotificationImpl(this , Notification.UNSET,
204: WfsPackage.GET_GML_OBJECT_TYPE__OUTPUT_FORMAT,
205: oldOutputFormat, OUTPUT_FORMAT_EDEFAULT,
206: oldOutputFormatESet));
207: }
208:
209: /**
210: * <!-- begin-user-doc -->
211: * <!-- end-user-doc -->
212: * @generated
213: */
214: public boolean isSetOutputFormat() {
215: return outputFormatESet;
216: }
217:
218: /**
219: * <!-- begin-user-doc -->
220: * <!-- end-user-doc -->
221: * @generated
222: */
223: public String getTraverseXlinkDepth() {
224: return traverseXlinkDepth;
225: }
226:
227: /**
228: * <!-- begin-user-doc -->
229: * <!-- end-user-doc -->
230: * @generated
231: */
232: public void setTraverseXlinkDepth(String newTraverseXlinkDepth) {
233: String oldTraverseXlinkDepth = traverseXlinkDepth;
234: traverseXlinkDepth = newTraverseXlinkDepth;
235: if (eNotificationRequired())
236: eNotify(new ENotificationImpl(
237: this ,
238: Notification.SET,
239: WfsPackage.GET_GML_OBJECT_TYPE__TRAVERSE_XLINK_DEPTH,
240: oldTraverseXlinkDepth, traverseXlinkDepth));
241: }
242:
243: /**
244: * <!-- begin-user-doc -->
245: * <!-- end-user-doc -->
246: * @generated
247: */
248: public BigInteger getTraverseXlinkExpiry() {
249: return traverseXlinkExpiry;
250: }
251:
252: /**
253: * <!-- begin-user-doc -->
254: * <!-- end-user-doc -->
255: * @generated
256: */
257: public void setTraverseXlinkExpiry(BigInteger newTraverseXlinkExpiry) {
258: BigInteger oldTraverseXlinkExpiry = traverseXlinkExpiry;
259: traverseXlinkExpiry = newTraverseXlinkExpiry;
260: if (eNotificationRequired())
261: eNotify(new ENotificationImpl(
262: this ,
263: Notification.SET,
264: WfsPackage.GET_GML_OBJECT_TYPE__TRAVERSE_XLINK_EXPIRY,
265: oldTraverseXlinkExpiry, traverseXlinkExpiry));
266: }
267:
268: /**
269: * <!-- begin-user-doc -->
270: * <!-- end-user-doc -->
271: * @generated
272: */
273: public Object eGet(int featureID, boolean resolve, boolean coreType) {
274: switch (featureID) {
275: case WfsPackage.GET_GML_OBJECT_TYPE__GML_OBJECT_ID:
276: return getGmlObjectId();
277: case WfsPackage.GET_GML_OBJECT_TYPE__OUTPUT_FORMAT:
278: return getOutputFormat();
279: case WfsPackage.GET_GML_OBJECT_TYPE__TRAVERSE_XLINK_DEPTH:
280: return getTraverseXlinkDepth();
281: case WfsPackage.GET_GML_OBJECT_TYPE__TRAVERSE_XLINK_EXPIRY:
282: return getTraverseXlinkExpiry();
283: }
284: return super .eGet(featureID, resolve, coreType);
285: }
286:
287: /**
288: * <!-- begin-user-doc -->
289: * <!-- end-user-doc -->
290: * @generated
291: */
292: public void eSet(int featureID, Object newValue) {
293: switch (featureID) {
294: case WfsPackage.GET_GML_OBJECT_TYPE__GML_OBJECT_ID:
295: setGmlObjectId(newValue);
296: return;
297: case WfsPackage.GET_GML_OBJECT_TYPE__OUTPUT_FORMAT:
298: setOutputFormat((String) newValue);
299: return;
300: case WfsPackage.GET_GML_OBJECT_TYPE__TRAVERSE_XLINK_DEPTH:
301: setTraverseXlinkDepth((String) newValue);
302: return;
303: case WfsPackage.GET_GML_OBJECT_TYPE__TRAVERSE_XLINK_EXPIRY:
304: setTraverseXlinkExpiry((BigInteger) newValue);
305: return;
306: }
307: super .eSet(featureID, newValue);
308: }
309:
310: /**
311: * <!-- begin-user-doc -->
312: * <!-- end-user-doc -->
313: * @generated
314: */
315: public void eUnset(int featureID) {
316: switch (featureID) {
317: case WfsPackage.GET_GML_OBJECT_TYPE__GML_OBJECT_ID:
318: setGmlObjectId(GML_OBJECT_ID_EDEFAULT);
319: return;
320: case WfsPackage.GET_GML_OBJECT_TYPE__OUTPUT_FORMAT:
321: unsetOutputFormat();
322: return;
323: case WfsPackage.GET_GML_OBJECT_TYPE__TRAVERSE_XLINK_DEPTH:
324: setTraverseXlinkDepth(TRAVERSE_XLINK_DEPTH_EDEFAULT);
325: return;
326: case WfsPackage.GET_GML_OBJECT_TYPE__TRAVERSE_XLINK_EXPIRY:
327: setTraverseXlinkExpiry(TRAVERSE_XLINK_EXPIRY_EDEFAULT);
328: return;
329: }
330: super .eUnset(featureID);
331: }
332:
333: /**
334: * <!-- begin-user-doc -->
335: * <!-- end-user-doc -->
336: * @generated
337: */
338: public boolean eIsSet(int featureID) {
339: switch (featureID) {
340: case WfsPackage.GET_GML_OBJECT_TYPE__GML_OBJECT_ID:
341: return GML_OBJECT_ID_EDEFAULT == null ? gmlObjectId != null
342: : !GML_OBJECT_ID_EDEFAULT.equals(gmlObjectId);
343: case WfsPackage.GET_GML_OBJECT_TYPE__OUTPUT_FORMAT:
344: return isSetOutputFormat();
345: case WfsPackage.GET_GML_OBJECT_TYPE__TRAVERSE_XLINK_DEPTH:
346: return TRAVERSE_XLINK_DEPTH_EDEFAULT == null ? traverseXlinkDepth != null
347: : !TRAVERSE_XLINK_DEPTH_EDEFAULT
348: .equals(traverseXlinkDepth);
349: case WfsPackage.GET_GML_OBJECT_TYPE__TRAVERSE_XLINK_EXPIRY:
350: return TRAVERSE_XLINK_EXPIRY_EDEFAULT == null ? traverseXlinkExpiry != null
351: : !TRAVERSE_XLINK_EXPIRY_EDEFAULT
352: .equals(traverseXlinkExpiry);
353: }
354: return super .eIsSet(featureID);
355: }
356:
357: /**
358: * <!-- begin-user-doc -->
359: * <!-- end-user-doc -->
360: * @generated
361: */
362: public String toString() {
363: if (eIsProxy())
364: return super .toString();
365:
366: StringBuffer result = new StringBuffer(super .toString());
367: result.append(" (gmlObjectId: ");
368: result.append(gmlObjectId);
369: result.append(", outputFormat: ");
370: if (outputFormatESet)
371: result.append(outputFormat);
372: else
373: result.append("<unset>");
374: result.append(", traverseXlinkDepth: ");
375: result.append(traverseXlinkDepth);
376: result.append(", traverseXlinkExpiry: ");
377: result.append(traverseXlinkExpiry);
378: result.append(')');
379: return result.toString();
380: }
381:
382: } //GetGmlObjectTypeImpl
|