001: /**
002: * <copyright>
003: * </copyright>
004: *
005: * $Id: DocumentRootImpl.java 7988 2007-12-12 20:29:15Z aaime $
006: */package net.opengis.wfsv.impl;
007:
008: import net.opengis.wfsv.DifferenceQueryType;
009: import net.opengis.wfsv.DocumentRoot;
010: import net.opengis.wfsv.GetDiffType;
011: import net.opengis.wfsv.GetLogType;
012: import net.opengis.wfsv.GetVersionedFeatureType;
013: import net.opengis.wfsv.RollbackType;
014: import net.opengis.wfsv.VersionedDeleteElementType;
015: import net.opengis.wfsv.VersionedFeatureCollectionType;
016: import net.opengis.wfsv.VersionedUpdateElementType;
017: import net.opengis.wfsv.WfsvPackage;
018:
019: import org.eclipse.emf.common.notify.NotificationChain;
020:
021: import org.eclipse.emf.common.util.EMap;
022:
023: import org.eclipse.emf.ecore.EClass;
024: import org.eclipse.emf.ecore.EStructuralFeature;
025: import org.eclipse.emf.ecore.EcorePackage;
026: import org.eclipse.emf.ecore.InternalEObject;
027:
028: import org.eclipse.emf.ecore.impl.EObjectImpl;
029: import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
030:
031: import org.eclipse.emf.ecore.util.BasicFeatureMap;
032: import org.eclipse.emf.ecore.util.EcoreEMap;
033: import org.eclipse.emf.ecore.util.FeatureMap;
034: import org.eclipse.emf.ecore.util.InternalEList;
035:
036: /**
037: * <!-- begin-user-doc -->
038: * An implementation of the model object '<em><b>Document Root</b></em>'.
039: * <!-- end-user-doc -->
040: * <p>
041: * The following features are implemented:
042: * <ul>
043: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
044: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
045: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
046: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getDescribeVersionedFeatureType <em>Describe Versioned Feature Type</em>}</li>
047: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getDifferenceQuery <em>Difference Query</em>}</li>
048: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getGetDiff <em>Get Diff</em>}</li>
049: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getGetLog <em>Get Log</em>}</li>
050: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getGetVersionedFeature <em>Get Versioned Feature</em>}</li>
051: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getRollback <em>Rollback</em>}</li>
052: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getVersionedDelete <em>Versioned Delete</em>}</li>
053: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getVersionedFeatureCollection <em>Versioned Feature Collection</em>}</li>
054: * <li>{@link net.opengis.wfsv.impl.DocumentRootImpl#getVersionedUpdate <em>Versioned Update</em>}</li>
055: * </ul>
056: * </p>
057: *
058: * @generated
059: */
060: public class DocumentRootImpl extends EObjectImpl implements
061: DocumentRoot {
062: /**
063: * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
064: * <!-- begin-user-doc -->
065: * <!-- end-user-doc -->
066: * @see #getMixed()
067: * @generated
068: * @ordered
069: */
070: protected FeatureMap mixed;
071:
072: /**
073: * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
074: * <!-- begin-user-doc -->
075: * <!-- end-user-doc -->
076: * @see #getXMLNSPrefixMap()
077: * @generated
078: * @ordered
079: */
080: protected EMap xMLNSPrefixMap;
081:
082: /**
083: * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
084: * <!-- begin-user-doc -->
085: * <!-- end-user-doc -->
086: * @see #getXSISchemaLocation()
087: * @generated
088: * @ordered
089: */
090: protected EMap xSISchemaLocation;
091:
092: /**
093: * The default value of the '{@link #getDescribeVersionedFeatureType() <em>Describe Versioned Feature Type</em>}' attribute.
094: * <!-- begin-user-doc -->
095: * <!-- end-user-doc -->
096: * @see #getDescribeVersionedFeatureType()
097: * @generated
098: * @ordered
099: */
100: protected static final Object DESCRIBE_VERSIONED_FEATURE_TYPE_EDEFAULT = null;
101:
102: /**
103: * <!-- begin-user-doc -->
104: * <!-- end-user-doc -->
105: * @generated
106: */
107: protected DocumentRootImpl() {
108: super ();
109: }
110:
111: /**
112: * <!-- begin-user-doc -->
113: * <!-- end-user-doc -->
114: * @generated
115: */
116: protected EClass eStaticClass() {
117: return WfsvPackage.Literals.DOCUMENT_ROOT;
118: }
119:
120: /**
121: * <!-- begin-user-doc -->
122: * <!-- end-user-doc -->
123: * @generated
124: */
125: public FeatureMap getMixed() {
126: if (mixed == null) {
127: mixed = new BasicFeatureMap(this ,
128: WfsvPackage.DOCUMENT_ROOT__MIXED);
129: }
130: return mixed;
131: }
132:
133: /**
134: * <!-- begin-user-doc -->
135: * <!-- end-user-doc -->
136: * @generated
137: */
138: public EMap getXMLNSPrefixMap() {
139: if (xMLNSPrefixMap == null) {
140: xMLNSPrefixMap = new EcoreEMap(
141: EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
142: EStringToStringMapEntryImpl.class, this ,
143: WfsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
144: }
145: return xMLNSPrefixMap;
146: }
147:
148: /**
149: * <!-- begin-user-doc -->
150: * <!-- end-user-doc -->
151: * @generated
152: */
153: public EMap getXSISchemaLocation() {
154: if (xSISchemaLocation == null) {
155: xSISchemaLocation = new EcoreEMap(
156: EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
157: EStringToStringMapEntryImpl.class, this ,
158: WfsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
159: }
160: return xSISchemaLocation;
161: }
162:
163: /**
164: * <!-- begin-user-doc -->
165: * <!-- end-user-doc -->
166: * @generated
167: */
168: public Object getDescribeVersionedFeatureType() {
169: return getMixed()
170: .get(
171: WfsvPackage.Literals.DOCUMENT_ROOT__DESCRIBE_VERSIONED_FEATURE_TYPE,
172: true);
173: }
174:
175: /**
176: * <!-- begin-user-doc -->
177: * <!-- end-user-doc -->
178: * @generated
179: */
180: public void setDescribeVersionedFeatureType(
181: Object newDescribeVersionedFeatureType) {
182: ((FeatureMap.Internal) getMixed())
183: .set(
184: WfsvPackage.Literals.DOCUMENT_ROOT__DESCRIBE_VERSIONED_FEATURE_TYPE,
185: newDescribeVersionedFeatureType);
186: }
187:
188: /**
189: * <!-- begin-user-doc -->
190: * <!-- end-user-doc -->
191: * @generated
192: */
193: public DifferenceQueryType getDifferenceQuery() {
194: return (DifferenceQueryType) getMixed().get(
195: WfsvPackage.Literals.DOCUMENT_ROOT__DIFFERENCE_QUERY,
196: true);
197: }
198:
199: /**
200: * <!-- begin-user-doc -->
201: * <!-- end-user-doc -->
202: * @generated
203: */
204: public NotificationChain basicSetDifferenceQuery(
205: DifferenceQueryType newDifferenceQuery,
206: NotificationChain msgs) {
207: return ((FeatureMap.Internal) getMixed()).basicAdd(
208: WfsvPackage.Literals.DOCUMENT_ROOT__DIFFERENCE_QUERY,
209: newDifferenceQuery, msgs);
210: }
211:
212: /**
213: * <!-- begin-user-doc -->
214: * <!-- end-user-doc -->
215: * @generated
216: */
217: public void setDifferenceQuery(
218: DifferenceQueryType newDifferenceQuery) {
219: ((FeatureMap.Internal) getMixed()).set(
220: WfsvPackage.Literals.DOCUMENT_ROOT__DIFFERENCE_QUERY,
221: newDifferenceQuery);
222: }
223:
224: /**
225: * <!-- begin-user-doc -->
226: * <!-- end-user-doc -->
227: * @generated
228: */
229: public GetDiffType getGetDiff() {
230: return (GetDiffType) getMixed().get(
231: WfsvPackage.Literals.DOCUMENT_ROOT__GET_DIFF, true);
232: }
233:
234: /**
235: * <!-- begin-user-doc -->
236: * <!-- end-user-doc -->
237: * @generated
238: */
239: public NotificationChain basicSetGetDiff(GetDiffType newGetDiff,
240: NotificationChain msgs) {
241: return ((FeatureMap.Internal) getMixed()).basicAdd(
242: WfsvPackage.Literals.DOCUMENT_ROOT__GET_DIFF,
243: newGetDiff, msgs);
244: }
245:
246: /**
247: * <!-- begin-user-doc -->
248: * <!-- end-user-doc -->
249: * @generated
250: */
251: public void setGetDiff(GetDiffType newGetDiff) {
252: ((FeatureMap.Internal) getMixed()).set(
253: WfsvPackage.Literals.DOCUMENT_ROOT__GET_DIFF,
254: newGetDiff);
255: }
256:
257: /**
258: * <!-- begin-user-doc -->
259: * <!-- end-user-doc -->
260: * @generated
261: */
262: public GetLogType getGetLog() {
263: return (GetLogType) getMixed().get(
264: WfsvPackage.Literals.DOCUMENT_ROOT__GET_LOG, true);
265: }
266:
267: /**
268: * <!-- begin-user-doc -->
269: * <!-- end-user-doc -->
270: * @generated
271: */
272: public NotificationChain basicSetGetLog(GetLogType newGetLog,
273: NotificationChain msgs) {
274: return ((FeatureMap.Internal) getMixed()).basicAdd(
275: WfsvPackage.Literals.DOCUMENT_ROOT__GET_LOG, newGetLog,
276: msgs);
277: }
278:
279: /**
280: * <!-- begin-user-doc -->
281: * <!-- end-user-doc -->
282: * @generated
283: */
284: public void setGetLog(GetLogType newGetLog) {
285: ((FeatureMap.Internal) getMixed()).set(
286: WfsvPackage.Literals.DOCUMENT_ROOT__GET_LOG, newGetLog);
287: }
288:
289: /**
290: * <!-- begin-user-doc -->
291: * <!-- end-user-doc -->
292: * @generated
293: */
294: public GetVersionedFeatureType getGetVersionedFeature() {
295: return (GetVersionedFeatureType) getMixed()
296: .get(
297: WfsvPackage.Literals.DOCUMENT_ROOT__GET_VERSIONED_FEATURE,
298: true);
299: }
300:
301: /**
302: * <!-- begin-user-doc -->
303: * <!-- end-user-doc -->
304: * @generated
305: */
306: public NotificationChain basicSetGetVersionedFeature(
307: GetVersionedFeatureType newGetVersionedFeature,
308: NotificationChain msgs) {
309: return ((FeatureMap.Internal) getMixed())
310: .basicAdd(
311: WfsvPackage.Literals.DOCUMENT_ROOT__GET_VERSIONED_FEATURE,
312: newGetVersionedFeature, msgs);
313: }
314:
315: /**
316: * <!-- begin-user-doc -->
317: * <!-- end-user-doc -->
318: * @generated
319: */
320: public void setGetVersionedFeature(
321: GetVersionedFeatureType newGetVersionedFeature) {
322: ((FeatureMap.Internal) getMixed())
323: .set(
324: WfsvPackage.Literals.DOCUMENT_ROOT__GET_VERSIONED_FEATURE,
325: newGetVersionedFeature);
326: }
327:
328: /**
329: * <!-- begin-user-doc -->
330: * <!-- end-user-doc -->
331: * @generated
332: */
333: public RollbackType getRollback() {
334: return (RollbackType) getMixed().get(
335: WfsvPackage.Literals.DOCUMENT_ROOT__ROLLBACK, true);
336: }
337:
338: /**
339: * <!-- begin-user-doc -->
340: * <!-- end-user-doc -->
341: * @generated
342: */
343: public NotificationChain basicSetRollback(RollbackType newRollback,
344: NotificationChain msgs) {
345: return ((FeatureMap.Internal) getMixed()).basicAdd(
346: WfsvPackage.Literals.DOCUMENT_ROOT__ROLLBACK,
347: newRollback, msgs);
348: }
349:
350: /**
351: * <!-- begin-user-doc -->
352: * <!-- end-user-doc -->
353: * @generated
354: */
355: public void setRollback(RollbackType newRollback) {
356: ((FeatureMap.Internal) getMixed()).set(
357: WfsvPackage.Literals.DOCUMENT_ROOT__ROLLBACK,
358: newRollback);
359: }
360:
361: /**
362: * <!-- begin-user-doc -->
363: * <!-- end-user-doc -->
364: * @generated
365: */
366: public VersionedDeleteElementType getVersionedDelete() {
367: return (VersionedDeleteElementType) getMixed().get(
368: WfsvPackage.Literals.DOCUMENT_ROOT__VERSIONED_DELETE,
369: true);
370: }
371:
372: /**
373: * <!-- begin-user-doc -->
374: * <!-- end-user-doc -->
375: * @generated
376: */
377: public NotificationChain basicSetVersionedDelete(
378: VersionedDeleteElementType newVersionedDelete,
379: NotificationChain msgs) {
380: return ((FeatureMap.Internal) getMixed()).basicAdd(
381: WfsvPackage.Literals.DOCUMENT_ROOT__VERSIONED_DELETE,
382: newVersionedDelete, msgs);
383: }
384:
385: /**
386: * <!-- begin-user-doc -->
387: * <!-- end-user-doc -->
388: * @generated
389: */
390: public void setVersionedDelete(
391: VersionedDeleteElementType newVersionedDelete) {
392: ((FeatureMap.Internal) getMixed()).set(
393: WfsvPackage.Literals.DOCUMENT_ROOT__VERSIONED_DELETE,
394: newVersionedDelete);
395: }
396:
397: /**
398: * <!-- begin-user-doc -->
399: * <!-- end-user-doc -->
400: * @generated
401: */
402: public VersionedFeatureCollectionType getVersionedFeatureCollection() {
403: return (VersionedFeatureCollectionType) getMixed()
404: .get(
405: WfsvPackage.Literals.DOCUMENT_ROOT__VERSIONED_FEATURE_COLLECTION,
406: true);
407: }
408:
409: /**
410: * <!-- begin-user-doc -->
411: * <!-- end-user-doc -->
412: * @generated
413: */
414: public NotificationChain basicSetVersionedFeatureCollection(
415: VersionedFeatureCollectionType newVersionedFeatureCollection,
416: NotificationChain msgs) {
417: return ((FeatureMap.Internal) getMixed())
418: .basicAdd(
419: WfsvPackage.Literals.DOCUMENT_ROOT__VERSIONED_FEATURE_COLLECTION,
420: newVersionedFeatureCollection, msgs);
421: }
422:
423: /**
424: * <!-- begin-user-doc -->
425: * <!-- end-user-doc -->
426: * @generated
427: */
428: public void setVersionedFeatureCollection(
429: VersionedFeatureCollectionType newVersionedFeatureCollection) {
430: ((FeatureMap.Internal) getMixed())
431: .set(
432: WfsvPackage.Literals.DOCUMENT_ROOT__VERSIONED_FEATURE_COLLECTION,
433: newVersionedFeatureCollection);
434: }
435:
436: /**
437: * <!-- begin-user-doc -->
438: * <!-- end-user-doc -->
439: * @generated
440: */
441: public VersionedUpdateElementType getVersionedUpdate() {
442: return (VersionedUpdateElementType) getMixed().get(
443: WfsvPackage.Literals.DOCUMENT_ROOT__VERSIONED_UPDATE,
444: true);
445: }
446:
447: /**
448: * <!-- begin-user-doc -->
449: * <!-- end-user-doc -->
450: * @generated
451: */
452: public NotificationChain basicSetVersionedUpdate(
453: VersionedUpdateElementType newVersionedUpdate,
454: NotificationChain msgs) {
455: return ((FeatureMap.Internal) getMixed()).basicAdd(
456: WfsvPackage.Literals.DOCUMENT_ROOT__VERSIONED_UPDATE,
457: newVersionedUpdate, msgs);
458: }
459:
460: /**
461: * <!-- begin-user-doc -->
462: * <!-- end-user-doc -->
463: * @generated
464: */
465: public void setVersionedUpdate(
466: VersionedUpdateElementType newVersionedUpdate) {
467: ((FeatureMap.Internal) getMixed()).set(
468: WfsvPackage.Literals.DOCUMENT_ROOT__VERSIONED_UPDATE,
469: newVersionedUpdate);
470: }
471:
472: /**
473: * <!-- begin-user-doc -->
474: * <!-- end-user-doc -->
475: * @generated
476: */
477: public NotificationChain eInverseRemove(InternalEObject otherEnd,
478: int featureID, NotificationChain msgs) {
479: switch (featureID) {
480: case WfsvPackage.DOCUMENT_ROOT__MIXED:
481: return ((InternalEList) getMixed()).basicRemove(otherEnd,
482: msgs);
483: case WfsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
484: return ((InternalEList) getXMLNSPrefixMap()).basicRemove(
485: otherEnd, msgs);
486: case WfsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
487: return ((InternalEList) getXSISchemaLocation())
488: .basicRemove(otherEnd, msgs);
489: case WfsvPackage.DOCUMENT_ROOT__DIFFERENCE_QUERY:
490: return basicSetDifferenceQuery(null, msgs);
491: case WfsvPackage.DOCUMENT_ROOT__GET_DIFF:
492: return basicSetGetDiff(null, msgs);
493: case WfsvPackage.DOCUMENT_ROOT__GET_LOG:
494: return basicSetGetLog(null, msgs);
495: case WfsvPackage.DOCUMENT_ROOT__GET_VERSIONED_FEATURE:
496: return basicSetGetVersionedFeature(null, msgs);
497: case WfsvPackage.DOCUMENT_ROOT__ROLLBACK:
498: return basicSetRollback(null, msgs);
499: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_DELETE:
500: return basicSetVersionedDelete(null, msgs);
501: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_FEATURE_COLLECTION:
502: return basicSetVersionedFeatureCollection(null, msgs);
503: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_UPDATE:
504: return basicSetVersionedUpdate(null, msgs);
505: }
506: return super .eInverseRemove(otherEnd, featureID, msgs);
507: }
508:
509: /**
510: * <!-- begin-user-doc -->
511: * <!-- end-user-doc -->
512: * @generated
513: */
514: public Object eGet(int featureID, boolean resolve, boolean coreType) {
515: switch (featureID) {
516: case WfsvPackage.DOCUMENT_ROOT__MIXED:
517: if (coreType)
518: return getMixed();
519: return ((FeatureMap.Internal) getMixed()).getWrapper();
520: case WfsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
521: if (coreType)
522: return getXMLNSPrefixMap();
523: else
524: return getXMLNSPrefixMap().map();
525: case WfsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
526: if (coreType)
527: return getXSISchemaLocation();
528: else
529: return getXSISchemaLocation().map();
530: case WfsvPackage.DOCUMENT_ROOT__DESCRIBE_VERSIONED_FEATURE_TYPE:
531: return getDescribeVersionedFeatureType();
532: case WfsvPackage.DOCUMENT_ROOT__DIFFERENCE_QUERY:
533: return getDifferenceQuery();
534: case WfsvPackage.DOCUMENT_ROOT__GET_DIFF:
535: return getGetDiff();
536: case WfsvPackage.DOCUMENT_ROOT__GET_LOG:
537: return getGetLog();
538: case WfsvPackage.DOCUMENT_ROOT__GET_VERSIONED_FEATURE:
539: return getGetVersionedFeature();
540: case WfsvPackage.DOCUMENT_ROOT__ROLLBACK:
541: return getRollback();
542: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_DELETE:
543: return getVersionedDelete();
544: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_FEATURE_COLLECTION:
545: return getVersionedFeatureCollection();
546: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_UPDATE:
547: return getVersionedUpdate();
548: }
549: return super .eGet(featureID, resolve, coreType);
550: }
551:
552: /**
553: * <!-- begin-user-doc -->
554: * <!-- end-user-doc -->
555: * @generated
556: */
557: public void eSet(int featureID, Object newValue) {
558: switch (featureID) {
559: case WfsvPackage.DOCUMENT_ROOT__MIXED:
560: ((FeatureMap.Internal) getMixed()).set(newValue);
561: return;
562: case WfsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
563: ((EStructuralFeature.Setting) getXMLNSPrefixMap())
564: .set(newValue);
565: return;
566: case WfsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
567: ((EStructuralFeature.Setting) getXSISchemaLocation())
568: .set(newValue);
569: return;
570: case WfsvPackage.DOCUMENT_ROOT__DESCRIBE_VERSIONED_FEATURE_TYPE:
571: setDescribeVersionedFeatureType(newValue);
572: return;
573: case WfsvPackage.DOCUMENT_ROOT__DIFFERENCE_QUERY:
574: setDifferenceQuery((DifferenceQueryType) newValue);
575: return;
576: case WfsvPackage.DOCUMENT_ROOT__GET_DIFF:
577: setGetDiff((GetDiffType) newValue);
578: return;
579: case WfsvPackage.DOCUMENT_ROOT__GET_LOG:
580: setGetLog((GetLogType) newValue);
581: return;
582: case WfsvPackage.DOCUMENT_ROOT__GET_VERSIONED_FEATURE:
583: setGetVersionedFeature((GetVersionedFeatureType) newValue);
584: return;
585: case WfsvPackage.DOCUMENT_ROOT__ROLLBACK:
586: setRollback((RollbackType) newValue);
587: return;
588: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_DELETE:
589: setVersionedDelete((VersionedDeleteElementType) newValue);
590: return;
591: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_FEATURE_COLLECTION:
592: setVersionedFeatureCollection((VersionedFeatureCollectionType) newValue);
593: return;
594: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_UPDATE:
595: setVersionedUpdate((VersionedUpdateElementType) newValue);
596: return;
597: }
598: super .eSet(featureID, newValue);
599: }
600:
601: /**
602: * <!-- begin-user-doc -->
603: * <!-- end-user-doc -->
604: * @generated
605: */
606: public void eUnset(int featureID) {
607: switch (featureID) {
608: case WfsvPackage.DOCUMENT_ROOT__MIXED:
609: getMixed().clear();
610: return;
611: case WfsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
612: getXMLNSPrefixMap().clear();
613: return;
614: case WfsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
615: getXSISchemaLocation().clear();
616: return;
617: case WfsvPackage.DOCUMENT_ROOT__DESCRIBE_VERSIONED_FEATURE_TYPE:
618: setDescribeVersionedFeatureType(DESCRIBE_VERSIONED_FEATURE_TYPE_EDEFAULT);
619: return;
620: case WfsvPackage.DOCUMENT_ROOT__DIFFERENCE_QUERY:
621: setDifferenceQuery((DifferenceQueryType) null);
622: return;
623: case WfsvPackage.DOCUMENT_ROOT__GET_DIFF:
624: setGetDiff((GetDiffType) null);
625: return;
626: case WfsvPackage.DOCUMENT_ROOT__GET_LOG:
627: setGetLog((GetLogType) null);
628: return;
629: case WfsvPackage.DOCUMENT_ROOT__GET_VERSIONED_FEATURE:
630: setGetVersionedFeature((GetVersionedFeatureType) null);
631: return;
632: case WfsvPackage.DOCUMENT_ROOT__ROLLBACK:
633: setRollback((RollbackType) null);
634: return;
635: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_DELETE:
636: setVersionedDelete((VersionedDeleteElementType) null);
637: return;
638: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_FEATURE_COLLECTION:
639: setVersionedFeatureCollection((VersionedFeatureCollectionType) null);
640: return;
641: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_UPDATE:
642: setVersionedUpdate((VersionedUpdateElementType) null);
643: return;
644: }
645: super .eUnset(featureID);
646: }
647:
648: /**
649: * <!-- begin-user-doc -->
650: * <!-- end-user-doc -->
651: * @generated
652: */
653: public boolean eIsSet(int featureID) {
654: switch (featureID) {
655: case WfsvPackage.DOCUMENT_ROOT__MIXED:
656: return mixed != null && !mixed.isEmpty();
657: case WfsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
658: return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
659: case WfsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
660: return xSISchemaLocation != null
661: && !xSISchemaLocation.isEmpty();
662: case WfsvPackage.DOCUMENT_ROOT__DESCRIBE_VERSIONED_FEATURE_TYPE:
663: return DESCRIBE_VERSIONED_FEATURE_TYPE_EDEFAULT == null ? getDescribeVersionedFeatureType() != null
664: : !DESCRIBE_VERSIONED_FEATURE_TYPE_EDEFAULT
665: .equals(getDescribeVersionedFeatureType());
666: case WfsvPackage.DOCUMENT_ROOT__DIFFERENCE_QUERY:
667: return getDifferenceQuery() != null;
668: case WfsvPackage.DOCUMENT_ROOT__GET_DIFF:
669: return getGetDiff() != null;
670: case WfsvPackage.DOCUMENT_ROOT__GET_LOG:
671: return getGetLog() != null;
672: case WfsvPackage.DOCUMENT_ROOT__GET_VERSIONED_FEATURE:
673: return getGetVersionedFeature() != null;
674: case WfsvPackage.DOCUMENT_ROOT__ROLLBACK:
675: return getRollback() != null;
676: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_DELETE:
677: return getVersionedDelete() != null;
678: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_FEATURE_COLLECTION:
679: return getVersionedFeatureCollection() != null;
680: case WfsvPackage.DOCUMENT_ROOT__VERSIONED_UPDATE:
681: return getVersionedUpdate() != null;
682: }
683: return super .eIsSet(featureID);
684: }
685:
686: /**
687: * <!-- begin-user-doc -->
688: * <!-- end-user-doc -->
689: * @generated
690: */
691: public String toString() {
692: if (eIsProxy())
693: return super .toString();
694:
695: StringBuffer result = new StringBuffer(super .toString());
696: result.append(" (mixed: ");
697: result.append(mixed);
698: result.append(')');
699: return result.toString();
700: }
701:
702: } //DocumentRootImpl
|