001: /**
002: * <copyright>
003: * </copyright>
004: *
005: * $Id: FeatureTypeTypeImpl.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 javax.xml.namespace.QName;
011:
012: import net.opengis.ows.KeywordsType;
013: import net.opengis.ows.WGS84BoundingBoxType;
014:
015: import net.opengis.wfs.FeatureTypeType;
016: import net.opengis.wfs.MetadataURLType;
017: import net.opengis.wfs.NoSRSType;
018: import net.opengis.wfs.OperationsType;
019: import net.opengis.wfs.OutputFormatListType;
020: import net.opengis.wfs.WfsPackage;
021:
022: import org.eclipse.emf.common.notify.Notification;
023: import org.eclipse.emf.common.notify.NotificationChain;
024:
025: import org.eclipse.emf.common.util.EList;
026:
027: import org.eclipse.emf.ecore.EClass;
028: import org.eclipse.emf.ecore.InternalEObject;
029:
030: import org.eclipse.emf.ecore.impl.ENotificationImpl;
031: import org.eclipse.emf.ecore.impl.EObjectImpl;
032:
033: import org.eclipse.emf.ecore.util.EObjectContainmentEList;
034: import org.eclipse.emf.ecore.util.InternalEList;
035:
036: /**
037: * <!-- begin-user-doc -->
038: * An implementation of the model object '<em><b>Feature Type Type</b></em>'.
039: * <!-- end-user-doc -->
040: * <p>
041: * The following features are implemented:
042: * <ul>
043: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getName <em>Name</em>}</li>
044: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getTitle <em>Title</em>}</li>
045: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getAbstract <em>Abstract</em>}</li>
046: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getKeywords <em>Keywords</em>}</li>
047: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getDefaultSRS <em>Default SRS</em>}</li>
048: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getOtherSRS <em>Other SRS</em>}</li>
049: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getNoSRS <em>No SRS</em>}</li>
050: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getOperations <em>Operations</em>}</li>
051: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getOutputFormats <em>Output Formats</em>}</li>
052: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getWGS84BoundingBox <em>WGS84 Bounding Box</em>}</li>
053: * <li>{@link net.opengis.wfs.impl.FeatureTypeTypeImpl#getMetadataURL <em>Metadata URL</em>}</li>
054: * </ul>
055: * </p>
056: *
057: * @generated
058: */
059: public class FeatureTypeTypeImpl extends EObjectImpl implements
060: FeatureTypeType {
061: /**
062: * The default value of the '{@link #getName() <em>Name</em>}' attribute.
063: * <!-- begin-user-doc -->
064: * <!-- end-user-doc -->
065: * @see #getName()
066: * @generated
067: * @ordered
068: */
069: protected static final QName NAME_EDEFAULT = null;
070:
071: /**
072: * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
073: * <!-- begin-user-doc -->
074: * <!-- end-user-doc -->
075: * @see #getName()
076: * @generated
077: * @ordered
078: */
079: protected QName name = NAME_EDEFAULT;
080:
081: /**
082: * The default value of the '{@link #getTitle() <em>Title</em>}' attribute.
083: * <!-- begin-user-doc -->
084: * <!-- end-user-doc -->
085: * @see #getTitle()
086: * @generated
087: * @ordered
088: */
089: protected static final String TITLE_EDEFAULT = null;
090:
091: /**
092: * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute.
093: * <!-- begin-user-doc -->
094: * <!-- end-user-doc -->
095: * @see #getTitle()
096: * @generated
097: * @ordered
098: */
099: protected String title = TITLE_EDEFAULT;
100:
101: /**
102: * The default value of the '{@link #getAbstract() <em>Abstract</em>}' attribute.
103: * <!-- begin-user-doc -->
104: * <!-- end-user-doc -->
105: * @see #getAbstract()
106: * @generated
107: * @ordered
108: */
109: protected static final String ABSTRACT_EDEFAULT = null;
110:
111: /**
112: * The cached value of the '{@link #getAbstract() <em>Abstract</em>}' attribute.
113: * <!-- begin-user-doc -->
114: * <!-- end-user-doc -->
115: * @see #getAbstract()
116: * @generated
117: * @ordered
118: */
119: protected String abstract_ = ABSTRACT_EDEFAULT;
120:
121: /**
122: * The cached value of the '{@link #getKeywords() <em>Keywords</em>}' containment reference list.
123: * <!-- begin-user-doc -->
124: * <!-- end-user-doc -->
125: * @see #getKeywords()
126: * @generated
127: * @ordered
128: */
129: protected EList keywords;
130:
131: /**
132: * The default value of the '{@link #getDefaultSRS() <em>Default SRS</em>}' attribute.
133: * <!-- begin-user-doc -->
134: * <!-- end-user-doc -->
135: * @see #getDefaultSRS()
136: * @generated
137: * @ordered
138: */
139: protected static final String DEFAULT_SRS_EDEFAULT = null;
140:
141: /**
142: * The cached value of the '{@link #getDefaultSRS() <em>Default SRS</em>}' attribute.
143: * <!-- begin-user-doc -->
144: * <!-- end-user-doc -->
145: * @see #getDefaultSRS()
146: * @generated
147: * @ordered
148: */
149: protected String defaultSRS = DEFAULT_SRS_EDEFAULT;
150:
151: /**
152: * The default value of the '{@link #getOtherSRS() <em>Other SRS</em>}' attribute.
153: * <!-- begin-user-doc -->
154: * <!-- end-user-doc -->
155: * @see #getOtherSRS()
156: * @generated
157: * @ordered
158: */
159: protected static final String OTHER_SRS_EDEFAULT = null;
160:
161: /**
162: * The cached value of the '{@link #getOtherSRS() <em>Other SRS</em>}' attribute.
163: * <!-- begin-user-doc -->
164: * <!-- end-user-doc -->
165: * @see #getOtherSRS()
166: * @generated
167: * @ordered
168: */
169: protected String otherSRS = OTHER_SRS_EDEFAULT;
170:
171: /**
172: * The cached value of the '{@link #getNoSRS() <em>No SRS</em>}' containment reference.
173: * <!-- begin-user-doc -->
174: * <!-- end-user-doc -->
175: * @see #getNoSRS()
176: * @generated
177: * @ordered
178: */
179: protected NoSRSType noSRS;
180:
181: /**
182: * The cached value of the '{@link #getOperations() <em>Operations</em>}' containment reference.
183: * <!-- begin-user-doc -->
184: * <!-- end-user-doc -->
185: * @see #getOperations()
186: * @generated
187: * @ordered
188: */
189: protected OperationsType operations;
190:
191: /**
192: * The cached value of the '{@link #getOutputFormats() <em>Output Formats</em>}' containment reference.
193: * <!-- begin-user-doc -->
194: * <!-- end-user-doc -->
195: * @see #getOutputFormats()
196: * @generated
197: * @ordered
198: */
199: protected OutputFormatListType outputFormats;
200:
201: /**
202: * The cached value of the '{@link #getWGS84BoundingBox() <em>WGS84 Bounding Box</em>}' containment reference list.
203: * <!-- begin-user-doc -->
204: * <!-- end-user-doc -->
205: * @see #getWGS84BoundingBox()
206: * @generated
207: * @ordered
208: */
209: protected EList wGS84BoundingBox;
210:
211: /**
212: * The cached value of the '{@link #getMetadataURL() <em>Metadata URL</em>}' containment reference list.
213: * <!-- begin-user-doc -->
214: * <!-- end-user-doc -->
215: * @see #getMetadataURL()
216: * @generated
217: * @ordered
218: */
219: protected EList metadataURL;
220:
221: /**
222: * <!-- begin-user-doc -->
223: * <!-- end-user-doc -->
224: * @generated
225: */
226: protected FeatureTypeTypeImpl() {
227: super ();
228: }
229:
230: /**
231: * <!-- begin-user-doc -->
232: * <!-- end-user-doc -->
233: * @generated
234: */
235: protected EClass eStaticClass() {
236: return WfsPackage.Literals.FEATURE_TYPE_TYPE;
237: }
238:
239: /**
240: * <!-- begin-user-doc -->
241: * <!-- end-user-doc -->
242: * @generated
243: */
244: public QName getName() {
245: return name;
246: }
247:
248: /**
249: * <!-- begin-user-doc -->
250: * <!-- end-user-doc -->
251: * @generated
252: */
253: public void setName(QName newName) {
254: QName oldName = name;
255: name = newName;
256: if (eNotificationRequired())
257: eNotify(new ENotificationImpl(this , Notification.SET,
258: WfsPackage.FEATURE_TYPE_TYPE__NAME, oldName, name));
259: }
260:
261: /**
262: * <!-- begin-user-doc -->
263: * <!-- end-user-doc -->
264: * @generated
265: */
266: public String getTitle() {
267: return title;
268: }
269:
270: /**
271: * <!-- begin-user-doc -->
272: * <!-- end-user-doc -->
273: * @generated
274: */
275: public void setTitle(String newTitle) {
276: String oldTitle = title;
277: title = newTitle;
278: if (eNotificationRequired())
279: eNotify(new ENotificationImpl(this , Notification.SET,
280: WfsPackage.FEATURE_TYPE_TYPE__TITLE, oldTitle,
281: title));
282: }
283:
284: /**
285: * <!-- begin-user-doc -->
286: * <!-- end-user-doc -->
287: * @generated
288: */
289: public String getAbstract() {
290: return abstract_;
291: }
292:
293: /**
294: * <!-- begin-user-doc -->
295: * <!-- end-user-doc -->
296: * @generated
297: */
298: public void setAbstract(String newAbstract) {
299: String oldAbstract = abstract_;
300: abstract_ = newAbstract;
301: if (eNotificationRequired())
302: eNotify(new ENotificationImpl(this , Notification.SET,
303: WfsPackage.FEATURE_TYPE_TYPE__ABSTRACT,
304: oldAbstract, abstract_));
305: }
306:
307: /**
308: * <!-- begin-user-doc -->
309: * <!-- end-user-doc -->
310: * @generated
311: */
312: public EList getKeywords() {
313: if (keywords == null) {
314: keywords = new EObjectContainmentEList(KeywordsType.class,
315: this , WfsPackage.FEATURE_TYPE_TYPE__KEYWORDS);
316: }
317: return keywords;
318: }
319:
320: /**
321: * <!-- begin-user-doc -->
322: * <!-- end-user-doc -->
323: * @generated
324: */
325: public String getDefaultSRS() {
326: return defaultSRS;
327: }
328:
329: /**
330: * <!-- begin-user-doc -->
331: * <!-- end-user-doc -->
332: * @generated
333: */
334: public void setDefaultSRS(String newDefaultSRS) {
335: String oldDefaultSRS = defaultSRS;
336: defaultSRS = newDefaultSRS;
337: if (eNotificationRequired())
338: eNotify(new ENotificationImpl(this , Notification.SET,
339: WfsPackage.FEATURE_TYPE_TYPE__DEFAULT_SRS,
340: oldDefaultSRS, defaultSRS));
341: }
342:
343: /**
344: * <!-- begin-user-doc -->
345: * <!-- end-user-doc -->
346: * @generated
347: */
348: public String getOtherSRS() {
349: return otherSRS;
350: }
351:
352: /**
353: * <!-- begin-user-doc -->
354: * <!-- end-user-doc -->
355: * @generated
356: */
357: public void setOtherSRS(String newOtherSRS) {
358: String oldOtherSRS = otherSRS;
359: otherSRS = newOtherSRS;
360: if (eNotificationRequired())
361: eNotify(new ENotificationImpl(this , Notification.SET,
362: WfsPackage.FEATURE_TYPE_TYPE__OTHER_SRS,
363: oldOtherSRS, otherSRS));
364: }
365:
366: /**
367: * <!-- begin-user-doc -->
368: * <!-- end-user-doc -->
369: * @generated
370: */
371: public NoSRSType getNoSRS() {
372: return noSRS;
373: }
374:
375: /**
376: * <!-- begin-user-doc -->
377: * <!-- end-user-doc -->
378: * @generated
379: */
380: public NotificationChain basicSetNoSRS(NoSRSType newNoSRS,
381: NotificationChain msgs) {
382: NoSRSType oldNoSRS = noSRS;
383: noSRS = newNoSRS;
384: if (eNotificationRequired()) {
385: ENotificationImpl notification = new ENotificationImpl(
386: this , Notification.SET,
387: WfsPackage.FEATURE_TYPE_TYPE__NO_SRS, oldNoSRS,
388: newNoSRS);
389: if (msgs == null)
390: msgs = notification;
391: else
392: msgs.add(notification);
393: }
394: return msgs;
395: }
396:
397: /**
398: * <!-- begin-user-doc -->
399: * <!-- end-user-doc -->
400: * @generated
401: */
402: public void setNoSRS(NoSRSType newNoSRS) {
403: if (newNoSRS != noSRS) {
404: NotificationChain msgs = null;
405: if (noSRS != null)
406: msgs = ((InternalEObject) noSRS).eInverseRemove(this ,
407: EOPPOSITE_FEATURE_BASE
408: - WfsPackage.FEATURE_TYPE_TYPE__NO_SRS,
409: null, msgs);
410: if (newNoSRS != null)
411: msgs = ((InternalEObject) newNoSRS).eInverseAdd(this ,
412: EOPPOSITE_FEATURE_BASE
413: - WfsPackage.FEATURE_TYPE_TYPE__NO_SRS,
414: null, msgs);
415: msgs = basicSetNoSRS(newNoSRS, msgs);
416: if (msgs != null)
417: msgs.dispatch();
418: } else if (eNotificationRequired())
419: eNotify(new ENotificationImpl(this , Notification.SET,
420: WfsPackage.FEATURE_TYPE_TYPE__NO_SRS, newNoSRS,
421: newNoSRS));
422: }
423:
424: /**
425: * <!-- begin-user-doc -->
426: * <!-- end-user-doc -->
427: * @generated
428: */
429: public OperationsType getOperations() {
430: return operations;
431: }
432:
433: /**
434: * <!-- begin-user-doc -->
435: * <!-- end-user-doc -->
436: * @generated
437: */
438: public NotificationChain basicSetOperations(
439: OperationsType newOperations, NotificationChain msgs) {
440: OperationsType oldOperations = operations;
441: operations = newOperations;
442: if (eNotificationRequired()) {
443: ENotificationImpl notification = new ENotificationImpl(
444: this , Notification.SET,
445: WfsPackage.FEATURE_TYPE_TYPE__OPERATIONS,
446: oldOperations, newOperations);
447: if (msgs == null)
448: msgs = notification;
449: else
450: msgs.add(notification);
451: }
452: return msgs;
453: }
454:
455: /**
456: * <!-- begin-user-doc -->
457: * <!-- end-user-doc -->
458: * @generated
459: */
460: public void setOperations(OperationsType newOperations) {
461: if (newOperations != operations) {
462: NotificationChain msgs = null;
463: if (operations != null)
464: msgs = ((InternalEObject) operations)
465: .eInverseRemove(
466: this ,
467: EOPPOSITE_FEATURE_BASE
468: - WfsPackage.FEATURE_TYPE_TYPE__OPERATIONS,
469: null, msgs);
470: if (newOperations != null)
471: msgs = ((InternalEObject) newOperations)
472: .eInverseAdd(
473: this ,
474: EOPPOSITE_FEATURE_BASE
475: - WfsPackage.FEATURE_TYPE_TYPE__OPERATIONS,
476: null, msgs);
477: msgs = basicSetOperations(newOperations, msgs);
478: if (msgs != null)
479: msgs.dispatch();
480: } else if (eNotificationRequired())
481: eNotify(new ENotificationImpl(this , Notification.SET,
482: WfsPackage.FEATURE_TYPE_TYPE__OPERATIONS,
483: newOperations, newOperations));
484: }
485:
486: /**
487: * <!-- begin-user-doc -->
488: * <!-- end-user-doc -->
489: * @generated
490: */
491: public OutputFormatListType getOutputFormats() {
492: return outputFormats;
493: }
494:
495: /**
496: * <!-- begin-user-doc -->
497: * <!-- end-user-doc -->
498: * @generated
499: */
500: public NotificationChain basicSetOutputFormats(
501: OutputFormatListType newOutputFormats,
502: NotificationChain msgs) {
503: OutputFormatListType oldOutputFormats = outputFormats;
504: outputFormats = newOutputFormats;
505: if (eNotificationRequired()) {
506: ENotificationImpl notification = new ENotificationImpl(
507: this , Notification.SET,
508: WfsPackage.FEATURE_TYPE_TYPE__OUTPUT_FORMATS,
509: oldOutputFormats, newOutputFormats);
510: if (msgs == null)
511: msgs = notification;
512: else
513: msgs.add(notification);
514: }
515: return msgs;
516: }
517:
518: /**
519: * <!-- begin-user-doc -->
520: * <!-- end-user-doc -->
521: * @generated
522: */
523: public void setOutputFormats(OutputFormatListType newOutputFormats) {
524: if (newOutputFormats != outputFormats) {
525: NotificationChain msgs = null;
526: if (outputFormats != null)
527: msgs = ((InternalEObject) outputFormats)
528: .eInverseRemove(
529: this ,
530: EOPPOSITE_FEATURE_BASE
531: - WfsPackage.FEATURE_TYPE_TYPE__OUTPUT_FORMATS,
532: null, msgs);
533: if (newOutputFormats != null)
534: msgs = ((InternalEObject) newOutputFormats)
535: .eInverseAdd(
536: this ,
537: EOPPOSITE_FEATURE_BASE
538: - WfsPackage.FEATURE_TYPE_TYPE__OUTPUT_FORMATS,
539: null, msgs);
540: msgs = basicSetOutputFormats(newOutputFormats, msgs);
541: if (msgs != null)
542: msgs.dispatch();
543: } else if (eNotificationRequired())
544: eNotify(new ENotificationImpl(this , Notification.SET,
545: WfsPackage.FEATURE_TYPE_TYPE__OUTPUT_FORMATS,
546: newOutputFormats, newOutputFormats));
547: }
548:
549: /**
550: * <!-- begin-user-doc -->
551: * <!-- end-user-doc -->
552: * @generated
553: */
554: public EList getWGS84BoundingBox() {
555: if (wGS84BoundingBox == null) {
556: wGS84BoundingBox = new EObjectContainmentEList(
557: WGS84BoundingBoxType.class, this ,
558: WfsPackage.FEATURE_TYPE_TYPE__WGS84_BOUNDING_BOX);
559: }
560: return wGS84BoundingBox;
561: }
562:
563: /**
564: * <!-- begin-user-doc -->
565: * <!-- end-user-doc -->
566: * @generated
567: */
568: public EList getMetadataURL() {
569: if (metadataURL == null) {
570: metadataURL = new EObjectContainmentEList(
571: MetadataURLType.class, this ,
572: WfsPackage.FEATURE_TYPE_TYPE__METADATA_URL);
573: }
574: return metadataURL;
575: }
576:
577: /**
578: * <!-- begin-user-doc -->
579: * <!-- end-user-doc -->
580: * @generated
581: */
582: public NotificationChain eInverseRemove(InternalEObject otherEnd,
583: int featureID, NotificationChain msgs) {
584: switch (featureID) {
585: case WfsPackage.FEATURE_TYPE_TYPE__KEYWORDS:
586: return ((InternalEList) getKeywords()).basicRemove(
587: otherEnd, msgs);
588: case WfsPackage.FEATURE_TYPE_TYPE__NO_SRS:
589: return basicSetNoSRS(null, msgs);
590: case WfsPackage.FEATURE_TYPE_TYPE__OPERATIONS:
591: return basicSetOperations(null, msgs);
592: case WfsPackage.FEATURE_TYPE_TYPE__OUTPUT_FORMATS:
593: return basicSetOutputFormats(null, msgs);
594: case WfsPackage.FEATURE_TYPE_TYPE__WGS84_BOUNDING_BOX:
595: return ((InternalEList) getWGS84BoundingBox()).basicRemove(
596: otherEnd, msgs);
597: case WfsPackage.FEATURE_TYPE_TYPE__METADATA_URL:
598: return ((InternalEList) getMetadataURL()).basicRemove(
599: otherEnd, msgs);
600: }
601: return super .eInverseRemove(otherEnd, featureID, msgs);
602: }
603:
604: /**
605: * <!-- begin-user-doc -->
606: * <!-- end-user-doc -->
607: * @generated
608: */
609: public Object eGet(int featureID, boolean resolve, boolean coreType) {
610: switch (featureID) {
611: case WfsPackage.FEATURE_TYPE_TYPE__NAME:
612: return getName();
613: case WfsPackage.FEATURE_TYPE_TYPE__TITLE:
614: return getTitle();
615: case WfsPackage.FEATURE_TYPE_TYPE__ABSTRACT:
616: return getAbstract();
617: case WfsPackage.FEATURE_TYPE_TYPE__KEYWORDS:
618: return getKeywords();
619: case WfsPackage.FEATURE_TYPE_TYPE__DEFAULT_SRS:
620: return getDefaultSRS();
621: case WfsPackage.FEATURE_TYPE_TYPE__OTHER_SRS:
622: return getOtherSRS();
623: case WfsPackage.FEATURE_TYPE_TYPE__NO_SRS:
624: return getNoSRS();
625: case WfsPackage.FEATURE_TYPE_TYPE__OPERATIONS:
626: return getOperations();
627: case WfsPackage.FEATURE_TYPE_TYPE__OUTPUT_FORMATS:
628: return getOutputFormats();
629: case WfsPackage.FEATURE_TYPE_TYPE__WGS84_BOUNDING_BOX:
630: return getWGS84BoundingBox();
631: case WfsPackage.FEATURE_TYPE_TYPE__METADATA_URL:
632: return getMetadataURL();
633: }
634: return super .eGet(featureID, resolve, coreType);
635: }
636:
637: /**
638: * <!-- begin-user-doc -->
639: * <!-- end-user-doc -->
640: * @generated
641: */
642: public void eSet(int featureID, Object newValue) {
643: switch (featureID) {
644: case WfsPackage.FEATURE_TYPE_TYPE__NAME:
645: setName((QName) newValue);
646: return;
647: case WfsPackage.FEATURE_TYPE_TYPE__TITLE:
648: setTitle((String) newValue);
649: return;
650: case WfsPackage.FEATURE_TYPE_TYPE__ABSTRACT:
651: setAbstract((String) newValue);
652: return;
653: case WfsPackage.FEATURE_TYPE_TYPE__KEYWORDS:
654: getKeywords().clear();
655: getKeywords().addAll((Collection) newValue);
656: return;
657: case WfsPackage.FEATURE_TYPE_TYPE__DEFAULT_SRS:
658: setDefaultSRS((String) newValue);
659: return;
660: case WfsPackage.FEATURE_TYPE_TYPE__OTHER_SRS:
661: setOtherSRS((String) newValue);
662: return;
663: case WfsPackage.FEATURE_TYPE_TYPE__NO_SRS:
664: setNoSRS((NoSRSType) newValue);
665: return;
666: case WfsPackage.FEATURE_TYPE_TYPE__OPERATIONS:
667: setOperations((OperationsType) newValue);
668: return;
669: case WfsPackage.FEATURE_TYPE_TYPE__OUTPUT_FORMATS:
670: setOutputFormats((OutputFormatListType) newValue);
671: return;
672: case WfsPackage.FEATURE_TYPE_TYPE__WGS84_BOUNDING_BOX:
673: getWGS84BoundingBox().clear();
674: getWGS84BoundingBox().addAll((Collection) newValue);
675: return;
676: case WfsPackage.FEATURE_TYPE_TYPE__METADATA_URL:
677: getMetadataURL().clear();
678: getMetadataURL().addAll((Collection) newValue);
679: return;
680: }
681: super .eSet(featureID, newValue);
682: }
683:
684: /**
685: * <!-- begin-user-doc -->
686: * <!-- end-user-doc -->
687: * @generated
688: */
689: public void eUnset(int featureID) {
690: switch (featureID) {
691: case WfsPackage.FEATURE_TYPE_TYPE__NAME:
692: setName(NAME_EDEFAULT);
693: return;
694: case WfsPackage.FEATURE_TYPE_TYPE__TITLE:
695: setTitle(TITLE_EDEFAULT);
696: return;
697: case WfsPackage.FEATURE_TYPE_TYPE__ABSTRACT:
698: setAbstract(ABSTRACT_EDEFAULT);
699: return;
700: case WfsPackage.FEATURE_TYPE_TYPE__KEYWORDS:
701: getKeywords().clear();
702: return;
703: case WfsPackage.FEATURE_TYPE_TYPE__DEFAULT_SRS:
704: setDefaultSRS(DEFAULT_SRS_EDEFAULT);
705: return;
706: case WfsPackage.FEATURE_TYPE_TYPE__OTHER_SRS:
707: setOtherSRS(OTHER_SRS_EDEFAULT);
708: return;
709: case WfsPackage.FEATURE_TYPE_TYPE__NO_SRS:
710: setNoSRS((NoSRSType) null);
711: return;
712: case WfsPackage.FEATURE_TYPE_TYPE__OPERATIONS:
713: setOperations((OperationsType) null);
714: return;
715: case WfsPackage.FEATURE_TYPE_TYPE__OUTPUT_FORMATS:
716: setOutputFormats((OutputFormatListType) null);
717: return;
718: case WfsPackage.FEATURE_TYPE_TYPE__WGS84_BOUNDING_BOX:
719: getWGS84BoundingBox().clear();
720: return;
721: case WfsPackage.FEATURE_TYPE_TYPE__METADATA_URL:
722: getMetadataURL().clear();
723: return;
724: }
725: super .eUnset(featureID);
726: }
727:
728: /**
729: * <!-- begin-user-doc -->
730: * <!-- end-user-doc -->
731: * @generated
732: */
733: public boolean eIsSet(int featureID) {
734: switch (featureID) {
735: case WfsPackage.FEATURE_TYPE_TYPE__NAME:
736: return NAME_EDEFAULT == null ? name != null
737: : !NAME_EDEFAULT.equals(name);
738: case WfsPackage.FEATURE_TYPE_TYPE__TITLE:
739: return TITLE_EDEFAULT == null ? title != null
740: : !TITLE_EDEFAULT.equals(title);
741: case WfsPackage.FEATURE_TYPE_TYPE__ABSTRACT:
742: return ABSTRACT_EDEFAULT == null ? abstract_ != null
743: : !ABSTRACT_EDEFAULT.equals(abstract_);
744: case WfsPackage.FEATURE_TYPE_TYPE__KEYWORDS:
745: return keywords != null && !keywords.isEmpty();
746: case WfsPackage.FEATURE_TYPE_TYPE__DEFAULT_SRS:
747: return DEFAULT_SRS_EDEFAULT == null ? defaultSRS != null
748: : !DEFAULT_SRS_EDEFAULT.equals(defaultSRS);
749: case WfsPackage.FEATURE_TYPE_TYPE__OTHER_SRS:
750: return OTHER_SRS_EDEFAULT == null ? otherSRS != null
751: : !OTHER_SRS_EDEFAULT.equals(otherSRS);
752: case WfsPackage.FEATURE_TYPE_TYPE__NO_SRS:
753: return noSRS != null;
754: case WfsPackage.FEATURE_TYPE_TYPE__OPERATIONS:
755: return operations != null;
756: case WfsPackage.FEATURE_TYPE_TYPE__OUTPUT_FORMATS:
757: return outputFormats != null;
758: case WfsPackage.FEATURE_TYPE_TYPE__WGS84_BOUNDING_BOX:
759: return wGS84BoundingBox != null
760: && !wGS84BoundingBox.isEmpty();
761: case WfsPackage.FEATURE_TYPE_TYPE__METADATA_URL:
762: return metadataURL != null && !metadataURL.isEmpty();
763: }
764: return super .eIsSet(featureID);
765: }
766:
767: /**
768: * <!-- begin-user-doc -->
769: * <!-- end-user-doc -->
770: * @generated
771: */
772: public String toString() {
773: if (eIsProxy())
774: return super .toString();
775:
776: StringBuffer result = new StringBuffer(super .toString());
777: result.append(" (name: ");
778: result.append(name);
779: result.append(", title: ");
780: result.append(title);
781: result.append(", abstract: ");
782: result.append(abstract_);
783: result.append(", defaultSRS: ");
784: result.append(defaultSRS);
785: result.append(", otherSRS: ");
786: result.append(otherSRS);
787: result.append(')');
788: return result.toString();
789: }
790:
791: } //FeatureTypeTypeImpl
|