KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > sdo > impl > EChangeSummarySettingImpl


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2003-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: EChangeSummarySettingImpl.java,v 1.5 2005/06/08 06:24:25 nickb Exp $
16  */

17 package org.eclipse.emf.ecore.sdo.impl;
18
19
20 import java.io.ObjectStreamException JavaDoc;
21 import java.math.BigDecimal JavaDoc;
22 import java.math.BigInteger JavaDoc;
23 import java.util.Collection JavaDoc;
24 import java.util.Date JavaDoc;
25 import java.util.List JavaDoc;
26 import java.util.Map JavaDoc;
27
28 import org.eclipse.emf.common.notify.NotificationChain;
29 import org.eclipse.emf.common.util.EList;
30 import org.eclipse.emf.ecore.EClass;
31 import org.eclipse.emf.ecore.EObject;
32 import org.eclipse.emf.ecore.EStructuralFeature;
33 import org.eclipse.emf.ecore.InternalEObject;
34 import org.eclipse.emf.ecore.change.impl.FeatureChangeImpl;
35 import org.eclipse.emf.ecore.sdo.EChangeSummarySetting;
36 import org.eclipse.emf.ecore.sdo.InternalEDataObject;
37 import org.eclipse.emf.ecore.sdo.SDOPackage;
38 import org.eclipse.emf.ecore.sdo.util.SDOUtil;
39 import org.eclipse.emf.ecore.util.InternalEList;
40
41 import commonj.sdo.ChangeSummary;
42 import commonj.sdo.DataGraph;
43 import commonj.sdo.DataObject;
44 import commonj.sdo.Property;
45 import commonj.sdo.Sequence;
46 import commonj.sdo.Type;
47
48
49 /**
50  * <!-- begin-user-doc -->
51  * An implementation of the model object '<em><b>EChange Summary Setting</b></em>'.
52  * <!-- end-user-doc -->
53  * <p>
54  * The following features are implemented:
55  * <ul>
56  * <li>{@link org.eclipse.emf.ecore.sdo.impl.EChangeSummarySettingImpl#getProperty <em>Property</em>}</li>
57  * </ul>
58  * </p>
59  *
60  * @generated
61  */

62 public class EChangeSummarySettingImpl extends FeatureChangeImpl implements EChangeSummarySetting, InternalEDataObject
63 {
64   /**
65    * <!-- begin-user-doc -->
66    * <!-- end-user-doc -->
67    * @generated
68    */

69   protected EChangeSummarySettingImpl()
70   {
71     super();
72   }
73
74   protected EChangeSummarySettingImpl(EStructuralFeature feature, Object JavaDoc value, boolean isSet)
75   {
76     super(feature, value, isSet);
77   }
78
79   /**
80    * <!-- begin-user-doc -->
81    * <!-- end-user-doc -->
82    * @generated
83    */

84   protected EClass eStaticClass()
85   {
86     return SDOPackage.eINSTANCE.getEChangeSummarySetting();
87   }
88
89   /**
90    * <!-- begin-user-doc -->
91    * <!-- end-user-doc -->
92    * @generated NOT
93    */

94   public Object JavaDoc getValue()
95   {
96     EStructuralFeature feature = getFeature();
97     if (feature.isMany())
98     {
99       if (value == null)
100       {
101         EObject eObject = (EObject)((Map.Entry JavaDoc)eContainer()).getKey();
102         value = getListValue((EList)eObject.eGet(feature));
103       }
104       return value;
105     }
106     else
107     {
108       return super.getValue();
109     }
110   }
111
112   /**
113    * <!-- begin-user-doc -->
114    * <!-- end-user-doc -->
115    * @generated NOT
116    */

117   public Property getProperty()
118   {
119     return SDOUtil.adaptProperty(getFeature());
120   }
121
122   /**
123    * <!-- begin-user-doc -->
124    * <!-- end-user-doc -->
125    * @generated NOT
126    */

127   public boolean isSet()
128   {
129     return super.isSet();
130   }
131
132   /**
133    * <!-- begin-user-doc -->
134    * <!-- end-user-doc -->
135    * @generated
136    */

137   public Object JavaDoc get(String JavaDoc path)
138   {
139     return SDOUtil.get(this, path);
140   }
141
142   /**
143    * <!-- begin-user-doc -->
144    * <!-- end-user-doc -->
145    * @generated
146    */

147   public void set(String JavaDoc path, Object JavaDoc value)
148   {
149     SDOUtil.set(this, path, value);
150   }
151
152   /**
153    * <!-- begin-user-doc -->
154    * <!-- end-user-doc -->
155    * @generated
156    */

157   public boolean isSet(String JavaDoc path)
158   {
159     return SDOUtil.isSet(this, path);
160   }
161
162   /**
163    * <!-- begin-user-doc -->
164    * <!-- end-user-doc -->
165    * @generated
166    */

167   public void unset(String JavaDoc path)
168   {
169     SDOUtil.unset(this, path);
170   }
171
172   /**
173    * <!-- begin-user-doc -->
174    * <!-- end-user-doc -->
175    * @generated
176    */

177   public Object JavaDoc get(int propertyIndex)
178   {
179     return SDOUtil.get(this, propertyIndex);
180   }
181
182   /**
183    * <!-- begin-user-doc -->
184    * <!-- end-user-doc -->
185    * @generated
186    */

187   public void set(int propertyIndex, Object JavaDoc value)
188   {
189     SDOUtil.set(this, propertyIndex, value);
190   }
191
192   /**
193    * <!-- begin-user-doc -->
194    * <!-- end-user-doc -->
195    * @generated
196    */

197   public boolean isSet(int propertyIndex)
198   {
199     return SDOUtil.isSet(this, propertyIndex);
200   }
201
202   /**
203    * <!-- begin-user-doc -->
204    * <!-- end-user-doc -->
205    * @generated
206    */

207   public void unset(int propertyIndex)
208   {
209     SDOUtil.unset(this, propertyIndex);
210   }
211
212   /**
213    * <!-- begin-user-doc -->
214    * <!-- end-user-doc -->
215    * @generated
216    */

217   public Object JavaDoc get(Property property)
218   {
219     return SDOUtil.get(this, property);
220   }
221
222   /**
223    * <!-- begin-user-doc -->
224    * <!-- end-user-doc -->
225    * @generated
226    */

227   public void set(Property property, Object JavaDoc value)
228   {
229     SDOUtil.set(this, property, value);
230   }
231
232   /**
233    * <!-- begin-user-doc -->
234    * <!-- end-user-doc -->
235    * @generated
236    */

237   public boolean isSet(Property property)
238   {
239     return SDOUtil.isSet(this, property);
240   }
241
242   /**
243    * <!-- begin-user-doc -->
244    * <!-- end-user-doc -->
245    * @generated
246    */

247   public void unset(Property property)
248   {
249     SDOUtil.unset(this, property);
250   }
251
252   /**
253    * <!-- begin-user-doc -->
254    * <!-- end-user-doc -->
255    * @generated
256    */

257   public DataObject getContainer()
258   {
259     return SDOUtil.getContainer(this);
260   }
261
262   /**
263    * <!-- begin-user-doc -->
264    * <!-- end-user-doc -->
265    * @generated
266    */

267   public Property getContainmentProperty()
268   {
269     return SDOUtil.getContainmentProperty(this);
270   }
271
272   /**
273    * <!-- begin-user-doc -->
274    * <!-- end-user-doc -->
275    * @generated
276    */

277   public DataGraph getDataGraph()
278   {
279     return SDOUtil.getDataGraph(this);
280   }
281
282   /**
283    * <!-- begin-user-doc -->
284    * <!-- end-user-doc -->
285    * @generated
286    */

287   public Type getType()
288   {
289     return SDOUtil.getType(this);
290   }
291
292   /**
293    * <!-- begin-user-doc -->
294    * <!-- end-user-doc -->
295    * @generated
296    */

297   public BigDecimal JavaDoc getBigDecimal(String JavaDoc path)
298   {
299     return SDOUtil.getBigDecimal(this, path);
300   }
301
302   /**
303    * <!-- begin-user-doc -->
304    * <!-- end-user-doc -->
305    * @generated
306    */

307   public BigInteger JavaDoc getBigInteger(String JavaDoc path)
308   {
309     return SDOUtil.getBigInteger(this, path);
310   }
311
312   /**
313    * <!-- begin-user-doc -->
314    * <!-- end-user-doc -->
315    * @generated
316    */

317   public boolean getBoolean(String JavaDoc path)
318   {
319     return SDOUtil.getBoolean(this, path);
320   }
321
322   /**
323    * <!-- begin-user-doc -->
324    * <!-- end-user-doc -->
325    * @generated
326    */

327   public byte getByte(String JavaDoc path)
328   {
329     return SDOUtil.getByte(this, path);
330   }
331
332   /**
333    * <!-- begin-user-doc -->
334    * <!-- end-user-doc -->
335    * @generated
336    */

337   public byte[] getBytes(String JavaDoc path)
338   {
339     return SDOUtil.getBytes(this, path);
340   }
341
342   /**
343    * <!-- begin-user-doc -->
344    * <!-- end-user-doc -->
345    * @generated
346    */

347   public char getChar(String JavaDoc path)
348   {
349     return SDOUtil.getChar(this, path);
350   }
351
352   /**
353    * <!-- begin-user-doc -->
354    * <!-- end-user-doc -->
355    * @generated
356    */

357   public DataObject getDataObject(String JavaDoc path)
358   {
359     return SDOUtil.getDataObject(this, path);
360   }
361
362   /**
363    * <!-- begin-user-doc -->
364    * <!-- end-user-doc -->
365    * @generated
366    */

367   public Date JavaDoc getDate(String JavaDoc path)
368   {
369     return SDOUtil.getDate(this, path);
370   }
371
372   /**
373    * <!-- begin-user-doc -->
374    * <!-- end-user-doc -->
375    * @generated
376    */

377   public double getDouble(String JavaDoc path)
378   {
379     return SDOUtil.getDouble(this, path);
380   }
381
382   /**
383    * <!-- begin-user-doc -->
384    * <!-- end-user-doc -->
385    * @generated
386    */

387   public float getFloat(String JavaDoc path)
388   {
389     return SDOUtil.getFloat(this, path);
390   }
391
392   /**
393    * <!-- begin-user-doc -->
394    * <!-- end-user-doc -->
395    * @generated
396    */

397   public int getInt(String JavaDoc path)
398   {
399     return SDOUtil.getInt(this, path);
400   }
401
402   /**
403    * <!-- begin-user-doc -->
404    * <!-- end-user-doc -->
405    * @generated
406    */

407   public List JavaDoc getList(String JavaDoc path)
408   {
409     return SDOUtil.getList(this, path);
410   }
411
412   /**
413    * <!-- begin-user-doc -->
414    * <!-- end-user-doc -->
415    * @generated
416    */

417   public long getLong(String JavaDoc path)
418   {
419     return SDOUtil.getLong(this, path);
420   }
421
422   /**
423    * <!-- begin-user-doc -->
424    * <!-- end-user-doc -->
425    * @generated
426    */

427   public Sequence getSequence(String JavaDoc path)
428   {
429     return SDOUtil.getSequence(this, path);
430   }
431
432   /**
433    * <!-- begin-user-doc -->
434    * <!-- end-user-doc -->
435    * @generated
436    */

437   public short getShort(String JavaDoc path)
438   {
439     return SDOUtil.getShort(this, path);
440   }
441
442   /**
443    * <!-- begin-user-doc -->
444    * <!-- end-user-doc -->
445    * @generated
446    */

447   public String JavaDoc getString(String JavaDoc path)
448   {
449     return SDOUtil.getString(this, path);
450   }
451
452   /**
453    * <!-- begin-user-doc -->
454    * <!-- end-user-doc -->
455    * @generated
456    */

457   public void setBigDecimal(String JavaDoc path, BigDecimal JavaDoc value)
458   {
459     SDOUtil.setBigDecimal(this, path, value);
460   }
461
462   /**
463    * <!-- begin-user-doc -->
464    * <!-- end-user-doc -->
465    * @generated
466    */

467   public void setBigInteger(String JavaDoc path, BigInteger JavaDoc value)
468   {
469     SDOUtil.setBigInteger(this, path, value);
470   }
471
472   /**
473    * <!-- begin-user-doc -->
474    * <!-- end-user-doc -->
475    * @generated
476    */

477   public void setBoolean(String JavaDoc path, boolean value)
478   {
479     SDOUtil.setBoolean(this, path, value);
480   }
481
482   /**
483    * <!-- begin-user-doc -->
484    * <!-- end-user-doc -->
485    * @generated
486    */

487   public void setByte(String JavaDoc path, byte value)
488   {
489     SDOUtil.setByte(this, path, value);
490   }
491
492   /**
493    * <!-- begin-user-doc -->
494    * <!-- end-user-doc -->
495    * @generated
496    */

497   public void setBytes(String JavaDoc path, byte[] value)
498   {
499     SDOUtil.setBytes(this, path, value);
500   }
501
502   /**
503    * <!-- begin-user-doc -->
504    * <!-- end-user-doc -->
505    * @generated
506    */

507   public void setChar(String JavaDoc path, char value)
508   {
509     SDOUtil.setChar(this, path, value);
510   }
511
512   /**
513    * <!-- begin-user-doc -->
514    * <!-- end-user-doc -->
515    * @generated
516    */

517   public void setDataObject(String JavaDoc path, DataObject value)
518   {
519     SDOUtil.setDataObject(this, path, value);
520   }
521
522   /**
523    * <!-- begin-user-doc -->
524    * <!-- end-user-doc -->
525    * @generated
526    */

527   public void setDate(String JavaDoc path, Date JavaDoc value)
528   {
529     SDOUtil.setDate(this, path, value);
530   }
531
532   /**
533    * <!-- begin-user-doc -->
534    * <!-- end-user-doc -->
535    * @generated
536    */

537   public void setDouble(String JavaDoc path, double value)
538   {
539     SDOUtil.setDouble(this, path, value);
540   }
541
542   /**
543    * <!-- begin-user-doc -->
544    * <!-- end-user-doc -->
545    * @generated
546    */

547   public void setFloat(String JavaDoc path, float value)
548   {
549     SDOUtil.setFloat(this, path, value);
550   }
551
552   /**
553    * <!-- begin-user-doc -->
554    * <!-- end-user-doc -->
555    * @generated
556    */

557   public void setInt(String JavaDoc path, int value)
558   {
559     SDOUtil.setInt(this, path, value);
560   }
561
562   /**
563    * <!-- begin-user-doc -->
564    * <!-- end-user-doc -->
565    * @generated
566    */

567   public void setList(String JavaDoc path, List JavaDoc value)
568   {
569     SDOUtil.setList(this, path, value);
570   }
571
572   /**
573    * <!-- begin-user-doc -->
574    * <!-- end-user-doc -->
575    * @generated
576    */

577   public void setLong(String JavaDoc path, long value)
578   {
579     SDOUtil.setLong(this, path, value);
580   }
581
582   /**
583    * <!-- begin-user-doc -->
584    * <!-- end-user-doc -->
585    * @generated
586    */

587   public void setShort(String JavaDoc path, short value)
588   {
589     SDOUtil.setShort(this, path, value);
590   }
591
592   /**
593    * <!-- begin-user-doc -->
594    * <!-- end-user-doc -->
595    * @generated
596    */

597   public void setString(String JavaDoc path, String JavaDoc value)
598   {
599     SDOUtil.setString(this, path, value);
600   }
601
602   /**
603    * <!-- begin-user-doc -->
604    * <!-- end-user-doc -->
605    * @generated
606    */

607   public BigDecimal JavaDoc getBigDecimal(int propertyIndex)
608   {
609     return SDOUtil.getBigDecimal(this, propertyIndex);
610   }
611
612   /**
613    * <!-- begin-user-doc -->
614    * <!-- end-user-doc -->
615    * @generated
616    */

617   public BigInteger JavaDoc getBigInteger(int propertyIndex)
618   {
619     return SDOUtil.getBigInteger(this, propertyIndex);
620   }
621
622   /**
623    * <!-- begin-user-doc -->
624    * <!-- end-user-doc -->
625    * @generated
626    */

627   public boolean getBoolean(int propertyIndex)
628   {
629     return SDOUtil.getBoolean(this, propertyIndex);
630   }
631
632   /**
633    * <!-- begin-user-doc -->
634    * <!-- end-user-doc -->
635    * @generated
636    */

637   public byte getByte(int propertyIndex)
638   {
639     return SDOUtil.getByte(this, propertyIndex);
640   }
641
642   /**
643    * <!-- begin-user-doc -->
644    * <!-- end-user-doc -->
645    * @generated
646    */

647   public byte[] getBytes(int propertyIndex)
648   {
649     return SDOUtil.getBytes(this, propertyIndex);
650   }
651
652   /**
653    * <!-- begin-user-doc -->
654    * <!-- end-user-doc -->
655    * @generated
656    */

657   public char getChar(int propertyIndex)
658   {
659     return SDOUtil.getChar(this, propertyIndex);
660   }
661
662   /**
663    * <!-- begin-user-doc -->
664    * <!-- end-user-doc -->
665    * @generated
666    */

667   public DataObject getDataObject(int propertyIndex)
668   {
669     return SDOUtil.getDataObject(this, propertyIndex);
670   }
671
672   /**
673    * <!-- begin-user-doc -->
674    * <!-- end-user-doc -->
675    * @generated
676    */

677   public Date JavaDoc getDate(int propertyIndex)
678   {
679     return SDOUtil.getDate(this, propertyIndex);
680   }
681
682   /**
683    * <!-- begin-user-doc -->
684    * <!-- end-user-doc -->
685    * @generated
686    */

687   public double getDouble(int propertyIndex)
688   {
689     return SDOUtil.getDouble(this, propertyIndex);
690   }
691
692   /**
693    * <!-- begin-user-doc -->
694    * <!-- end-user-doc -->
695    * @generated
696    */

697   public float getFloat(int propertyIndex)
698   {
699     return SDOUtil.getFloat(this, propertyIndex);
700   }
701
702   /**
703    * <!-- begin-user-doc -->
704    * <!-- end-user-doc -->
705    * @generated
706    */

707   public int getInt(int propertyIndex)
708   {
709     return SDOUtil.getInt(this, propertyIndex);
710   }
711
712   /**
713    * <!-- begin-user-doc -->
714    * <!-- end-user-doc -->
715    * @generated
716    */

717   public List JavaDoc getList(int propertyIndex)
718   {
719     return SDOUtil.getList(this, propertyIndex);
720   }
721
722   /**
723    * <!-- begin-user-doc -->
724    * <!-- end-user-doc -->
725    * @generated
726    */

727   public long getLong(int propertyIndex)
728   {
729     return SDOUtil.getLong(this, propertyIndex);
730   }
731
732   /**
733    * <!-- begin-user-doc -->
734    * <!-- end-user-doc -->
735    * @generated
736    */

737   public Sequence getSequence(int propertyIndex)
738   {
739     return SDOUtil.getSequence(this, propertyIndex);
740   }
741
742   /**
743    * <!-- begin-user-doc -->
744    * <!-- end-user-doc -->
745    * @generated
746    */

747   public short getShort(int propertyIndex)
748   {
749     return SDOUtil.getShort(this, propertyIndex);
750   }
751
752   /**
753    * <!-- begin-user-doc -->
754    * <!-- end-user-doc -->
755    * @generated
756    */

757   public String JavaDoc getString(int propertyIndex)
758   {
759     return SDOUtil.getString(this, propertyIndex);
760   }
761
762   /**
763    * <!-- begin-user-doc -->
764    * <!-- end-user-doc -->
765    * @generated
766    */

767   public void setBigDecimal(int propertyIndex, BigDecimal JavaDoc value)
768   {
769     SDOUtil.setBigDecimal(this, propertyIndex, value);
770   }
771
772   /**
773    * <!-- begin-user-doc -->
774    * <!-- end-user-doc -->
775    * @generated
776    */

777   public void setBigInteger(int propertyIndex, BigInteger JavaDoc value)
778   {
779     SDOUtil.setBigInteger(this, propertyIndex, value);
780   }
781
782   /**
783    * <!-- begin-user-doc -->
784    * <!-- end-user-doc -->
785    * @generated
786    */

787   public void setBoolean(int propertyIndex, boolean value)
788   {
789     SDOUtil.setBoolean(this, propertyIndex, value);
790   }
791
792   /**
793    * <!-- begin-user-doc -->
794    * <!-- end-user-doc -->
795    * @generated
796    */

797   public void setByte(int propertyIndex, byte value)
798   {
799     SDOUtil.setByte(this, propertyIndex, value);
800   }
801
802   /**
803    * <!-- begin-user-doc -->
804    * <!-- end-user-doc -->
805    * @generated
806    */

807   public void setBytes(int propertyIndex, byte[] value)
808   {
809     SDOUtil.setBytes(this, propertyIndex, value);
810   }
811
812   /**
813    * <!-- begin-user-doc -->
814    * <!-- end-user-doc -->
815    * @generated
816    */

817   public void setChar(int propertyIndex, char value)
818   {
819     SDOUtil.setChar(this, propertyIndex, value);
820   }
821
822   /**
823    * <!-- begin-user-doc -->
824    * <!-- end-user-doc -->
825    * @generated
826    */

827   public void setDataObject(int propertyIndex, DataObject value)
828   {
829     SDOUtil.setDataObject(this, propertyIndex, value);
830   }
831
832   /**
833    * <!-- begin-user-doc -->
834    * <!-- end-user-doc -->
835    * @generated
836    */

837   public void setDate(int propertyIndex, Date JavaDoc value)
838   {
839     SDOUtil.setDate(this, propertyIndex, value);
840   }
841
842   /**
843    * <!-- begin-user-doc -->
844    * <!-- end-user-doc -->
845    * @generated
846    */

847   public void setDouble(int propertyIndex, double value)
848   {
849     SDOUtil.setDouble(this, propertyIndex, value);
850   }
851
852   /**
853    * <!-- begin-user-doc -->
854    * <!-- end-user-doc -->
855    * @generated
856    */

857   public void setFloat(int propertyIndex, float value)
858   {
859     SDOUtil.setFloat(this, propertyIndex, value);
860   }
861
862   /**
863    * <!-- begin-user-doc -->
864    * <!-- end-user-doc -->
865    * @generated
866    */

867   public void setInt(int propertyIndex, int value)
868   {
869     SDOUtil.setInt(this, propertyIndex, value);
870   }
871
872   /**
873    * <!-- begin-user-doc -->
874    * <!-- end-user-doc -->
875    * @generated
876    */

877   public void setList(int propertyIndex, List JavaDoc value)
878   {
879     SDOUtil.setList(this, propertyIndex, value);
880   }
881
882   /**
883    * <!-- begin-user-doc -->
884    * <!-- end-user-doc -->
885    * @generated
886    */

887   public void setLong(int propertyIndex, long value)
888   {
889     SDOUtil.setLong(this, propertyIndex, value);
890   }
891
892   /**
893    * <!-- begin-user-doc -->
894    * <!-- end-user-doc -->
895    * @generated
896    */

897   public void setShort(int propertyIndex, short value)
898   {
899     SDOUtil.setShort(this, propertyIndex, value);
900   }
901
902   /**
903    * <!-- begin-user-doc -->
904    * <!-- end-user-doc -->
905    * @generated
906    */

907   public void setString(int propertyIndex, String JavaDoc value)
908   {
909     SDOUtil.setString(this, propertyIndex, value);
910   }
911
912   /**
913    * <!-- begin-user-doc -->
914    * <!-- end-user-doc -->
915    * @generated
916    */

917   public BigDecimal JavaDoc getBigDecimal(Property property)
918   {
919     return SDOUtil.getBigDecimal(this, property);
920   }
921
922   /**
923    * <!-- begin-user-doc -->
924    * <!-- end-user-doc -->
925    * @generated
926    */

927   public BigInteger JavaDoc getBigInteger(Property property)
928   {
929     return SDOUtil.getBigInteger(this, property);
930   }
931
932   /**
933    * <!-- begin-user-doc -->
934    * <!-- end-user-doc -->
935    * @generated
936    */

937   public boolean getBoolean(Property property)
938   {
939     return SDOUtil.getBoolean(this, property);
940   }
941
942   /**
943    * <!-- begin-user-doc -->
944    * <!-- end-user-doc -->
945    * @generated
946    */

947   public byte getByte(Property property)
948   {
949     return SDOUtil.getByte(this, property);
950   }
951
952   /**
953    * <!-- begin-user-doc -->
954    * <!-- end-user-doc -->
955    * @generated
956    */

957   public byte[] getBytes(Property property)
958   {
959     return SDOUtil.getBytes(this, property);
960   }
961
962   /**
963    * <!-- begin-user-doc -->
964    * <!-- end-user-doc -->
965    * @generated
966    */

967   public char getChar(Property property)
968   {
969     return SDOUtil.getChar(this, property);
970   }
971
972   /**
973    * <!-- begin-user-doc -->
974    * <!-- end-user-doc -->
975    * @generated
976    */

977   public DataObject getDataObject(Property property)
978   {
979     return SDOUtil.getDataObject(this, property);
980   }
981
982   /**
983    * <!-- begin-user-doc -->
984    * <!-- end-user-doc -->
985    * @generated
986    */

987   public Date JavaDoc getDate(Property property)
988   {
989     return SDOUtil.getDate(this, property);
990   }
991
992   /**
993    * <!-- begin-user-doc -->
994    * <!-- end-user-doc -->
995    * @generated
996    */

997   public double getDouble(Property property)
998   {
999     return SDOUtil.getDouble(this, property);
1000  }
1001
1002  /**
1003   * <!-- begin-user-doc -->
1004   * <!-- end-user-doc -->
1005   * @generated
1006   */

1007  public float getFloat(Property property)
1008  {
1009    return SDOUtil.getFloat(this, property);
1010  }
1011
1012  /**
1013   * <!-- begin-user-doc -->
1014   * <!-- end-user-doc -->
1015   * @generated
1016   */

1017  public int getInt(Property property)
1018  {
1019    return SDOUtil.getInt(this, property);
1020  }
1021
1022  /**
1023   * <!-- begin-user-doc -->
1024   * <!-- end-user-doc -->
1025   * @generated
1026   */

1027  public List JavaDoc getList(Property property)
1028  {
1029    return SDOUtil.getList(this, property);
1030  }
1031
1032  /**
1033   * <!-- begin-user-doc -->
1034   * <!-- end-user-doc -->
1035   * @generated
1036   */

1037  public long getLong(Property property)
1038  {
1039    return SDOUtil.getLong(this, property);
1040  }
1041
1042  /**
1043   * <!-- begin-user-doc -->
1044   * <!-- end-user-doc -->
1045   * @generated
1046   */

1047  public Sequence getSequence(Property property)
1048  {
1049    return SDOUtil.getSequence(this, property);
1050  }
1051
1052  /**
1053   * <!-- begin-user-doc -->
1054   * <!-- end-user-doc -->
1055   * @generated
1056   */

1057  public short getShort(Property property)
1058  {
1059    return SDOUtil.getShort(this, property);
1060  }
1061
1062  /**
1063   * <!-- begin-user-doc -->
1064   * <!-- end-user-doc -->
1065   * @generated
1066   */

1067  public String JavaDoc getString(Property property)
1068  {
1069    return SDOUtil.getString(this, property);
1070  }
1071
1072  /**
1073   * <!-- begin-user-doc -->
1074   * <!-- end-user-doc -->
1075   * @generated
1076   */

1077  public void setBigDecimal(Property property, BigDecimal JavaDoc value)
1078  {
1079    SDOUtil.setBigDecimal(this, property, value);
1080  }
1081
1082  /**
1083   * <!-- begin-user-doc -->
1084   * <!-- end-user-doc -->
1085   * @generated
1086   */

1087  public void setBigInteger(Property property, BigInteger JavaDoc value)
1088  {
1089    SDOUtil.setBigInteger(this, property, value);
1090  }
1091
1092  /**
1093   * <!-- begin-user-doc -->
1094   * <!-- end-user-doc -->
1095   * @generated
1096   */

1097  public void setBoolean(Property property, boolean value)
1098  {
1099    SDOUtil.setBoolean(this, property, value);
1100  }
1101
1102  /**
1103   * <!-- begin-user-doc -->
1104   * <!-- end-user-doc -->
1105   * @generated
1106   */

1107  public void setByte(Property property, byte value)
1108  {
1109    SDOUtil.setByte(this, property, value);
1110  }
1111
1112  /**
1113   * <!-- begin-user-doc -->
1114   * <!-- end-user-doc -->
1115   * @generated
1116   */

1117  public void setBytes(Property property, byte[] value)
1118  {
1119    SDOUtil.setBytes(this, property, value);
1120  }
1121
1122  /**
1123   * <!-- begin-user-doc -->
1124   * <!-- end-user-doc -->
1125   * @generated
1126   */

1127  public void setChar(Property property, char value)
1128  {
1129    SDOUtil.setChar(this, property, value);
1130  }
1131
1132  /**
1133   * <!-- begin-user-doc -->
1134   * <!-- end-user-doc -->
1135   * @generated
1136   */

1137  public void setDataObject(Property property, DataObject value)
1138  {
1139    SDOUtil.setDataObject(this, property, value);
1140  }
1141
1142  /**
1143   * <!-- begin-user-doc -->
1144   * <!-- end-user-doc -->
1145   * @generated
1146   */

1147  public void setDate(Property property, Date JavaDoc value)
1148  {
1149    SDOUtil.setDate(this, property, value);
1150  }
1151
1152  /**
1153   * <!-- begin-user-doc -->
1154   * <!-- end-user-doc -->
1155   * @generated
1156   */

1157  public void setDouble(Property property, double value)
1158  {
1159    SDOUtil.setDouble(this, property, value);
1160  }
1161
1162  /**
1163   * <!-- begin-user-doc -->
1164   * <!-- end-user-doc -->
1165   * @generated
1166   */

1167  public void setFloat(Property property, float value)
1168  {
1169    SDOUtil.setFloat(this, property, value);
1170  }
1171
1172  /**
1173   * <!-- begin-user-doc -->
1174   * <!-- end-user-doc -->
1175   * @generated
1176   */

1177  public void setInt(Property property, int value)
1178  {
1179    SDOUtil.setInt(this, property, value);
1180  }
1181
1182  /**
1183   * <!-- begin-user-doc -->
1184   * <!-- end-user-doc -->
1185   * @generated
1186   */

1187  public void setList(Property property, List JavaDoc value)
1188  {
1189    SDOUtil.setList(this, property, value);
1190  }
1191
1192  /**
1193   * <!-- begin-user-doc -->
1194   * <!-- end-user-doc -->
1195   * @generated
1196   */

1197  public void setLong(Property property, long value)
1198  {
1199    SDOUtil.setLong(this, property, value);
1200  }
1201
1202  /**
1203   * <!-- begin-user-doc -->
1204   * <!-- end-user-doc -->
1205   * @generated
1206   */

1207  public void setShort(Property property, short value)
1208  {
1209    SDOUtil.setShort(this, property, value);
1210  }
1211
1212  /**
1213   * <!-- begin-user-doc -->
1214   * <!-- end-user-doc -->
1215   * @generated
1216   */

1217  public void setString(Property property, String JavaDoc value)
1218  {
1219    SDOUtil.setString(this, property, value);
1220  }
1221
1222  /**
1223   * <!-- begin-user-doc -->
1224   * <!-- end-user-doc -->
1225   * @generated
1226   */

1227  public DataObject createDataObject(String JavaDoc propertyName)
1228  {
1229    return SDOUtil.createDataObject(this, propertyName);
1230  }
1231
1232  /**
1233   * <!-- begin-user-doc -->
1234   * <!-- end-user-doc -->
1235   * @generated
1236   */

1237  public DataObject createDataObject(int propertyIndex)
1238  {
1239    return SDOUtil.createDataObject(this, propertyIndex);
1240  }
1241
1242  /**
1243   * <!-- begin-user-doc -->
1244   * <!-- end-user-doc -->
1245   * @generated
1246   */

1247  public DataObject createDataObject(Property property)
1248  {
1249    return SDOUtil.createDataObject(this, property);
1250  }
1251
1252  /**
1253   * <!-- begin-user-doc -->
1254   * <!-- end-user-doc -->
1255   * @generated
1256   */

1257  public DataObject createDataObject(String JavaDoc propertyName, String JavaDoc namespaceURI, String JavaDoc typeName)
1258  {
1259    return SDOUtil.createDataObject(this, propertyName, namespaceURI, typeName);
1260  }
1261
1262  /**
1263   * <!-- begin-user-doc -->
1264   * <!-- end-user-doc -->
1265   * @generated
1266   */

1267  public DataObject createDataObject(int propertyIndex, String JavaDoc namespaceURI, String JavaDoc typeName)
1268  {
1269    return SDOUtil.createDataObject(this, propertyIndex, namespaceURI, typeName);
1270  }
1271
1272  /**
1273   * <!-- begin-user-doc -->
1274   * <!-- end-user-doc -->
1275   * @generated
1276   */

1277  public DataObject createDataObject(Property property, Type type)
1278  {
1279    return SDOUtil.createDataObject(this, property, type);
1280  }
1281
1282  /**
1283   * <!-- begin-user-doc -->
1284   * <!-- end-user-doc -->
1285   * @generated
1286   */

1287  public void delete()
1288  {
1289    SDOUtil.delete(this);
1290  }
1291
1292  /**
1293   * <!-- begin-user-doc -->
1294   * <!-- end-user-doc -->
1295   * @generated
1296   */

1297  public List JavaDoc getInstanceProperties()
1298  {
1299    return SDOUtil.getInstanceProperties(this);
1300  }
1301
1302  /**
1303   * <!-- begin-user-doc -->
1304   * <!-- end-user-doc -->
1305   * @generated
1306   */

1307  public Object JavaDoc writeReplace() throws ObjectStreamException JavaDoc
1308  {
1309    return SDOUtil.writeReplace(this);
1310  }
1311
1312  /**
1313   * <!-- begin-user-doc -->
1314   * <!-- end-user-doc -->
1315   * @generated
1316   */

1317  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class JavaDoc baseClass, NotificationChain msgs)
1318  {
1319    if (featureID >= 0)
1320    {
1321      switch (eDerivedStructuralFeatureID(featureID, baseClass))
1322      {
1323        case SDOPackage.ECHANGE_SUMMARY_SETTING__LIST_CHANGES:
1324          return ((InternalEList)getListChanges()).basicRemove(otherEnd, msgs);
1325        default:
1326          return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
1327      }
1328    }
1329    return eBasicSetContainer(null, featureID, msgs);
1330  }
1331
1332  /**
1333   * <!-- begin-user-doc -->
1334   * <!-- end-user-doc -->
1335   * @generated
1336   */

1337  public Object JavaDoc eGet(EStructuralFeature eFeature, boolean resolve)
1338  {
1339    switch (eDerivedStructuralFeatureID(eFeature))
1340    {
1341      case SDOPackage.ECHANGE_SUMMARY_SETTING__FEATURE_NAME:
1342        return getFeatureName();
1343      case SDOPackage.ECHANGE_SUMMARY_SETTING__DATA_VALUE:
1344        return getDataValue();
1345      case SDOPackage.ECHANGE_SUMMARY_SETTING__SET:
1346        return isSet() ? Boolean.TRUE : Boolean.FALSE;
1347      case SDOPackage.ECHANGE_SUMMARY_SETTING__VALUE:
1348        return getValue();
1349      case SDOPackage.ECHANGE_SUMMARY_SETTING__FEATURE:
1350        if (resolve) return getFeature();
1351        return basicGetFeature();
1352      case SDOPackage.ECHANGE_SUMMARY_SETTING__REFERENCE_VALUE:
1353        if (resolve) return getReferenceValue();
1354        return basicGetReferenceValue();
1355      case SDOPackage.ECHANGE_SUMMARY_SETTING__LIST_CHANGES:
1356        return getListChanges();
1357      case SDOPackage.ECHANGE_SUMMARY_SETTING__PROPERTY:
1358        return getProperty();
1359    }
1360    return eDynamicGet(eFeature, resolve);
1361  }
1362
1363  /**
1364   * <!-- begin-user-doc -->
1365   * <!-- end-user-doc -->
1366   * @generated
1367   */

1368  public void eSet(EStructuralFeature eFeature, Object JavaDoc newValue)
1369  {
1370    switch (eDerivedStructuralFeatureID(eFeature))
1371    {
1372      case SDOPackage.ECHANGE_SUMMARY_SETTING__FEATURE_NAME:
1373        setFeatureName((String JavaDoc)newValue);
1374        return;
1375      case SDOPackage.ECHANGE_SUMMARY_SETTING__DATA_VALUE:
1376        setDataValue((String JavaDoc)newValue);
1377        return;
1378      case SDOPackage.ECHANGE_SUMMARY_SETTING__SET:
1379        setSet(((Boolean JavaDoc)newValue).booleanValue());
1380        return;
1381      case SDOPackage.ECHANGE_SUMMARY_SETTING__FEATURE:
1382        setFeature((EStructuralFeature)newValue);
1383        return;
1384      case SDOPackage.ECHANGE_SUMMARY_SETTING__REFERENCE_VALUE:
1385        setReferenceValue((EObject)newValue);
1386        return;
1387      case SDOPackage.ECHANGE_SUMMARY_SETTING__LIST_CHANGES:
1388        getListChanges().clear();
1389        getListChanges().addAll((Collection JavaDoc)newValue);
1390        return;
1391    }
1392    eDynamicSet(eFeature, newValue);
1393  }
1394
1395  /**
1396   * <!-- begin-user-doc -->
1397   * <!-- end-user-doc -->
1398   * @generated
1399   */

1400  public void eUnset(EStructuralFeature eFeature)
1401  {
1402    switch (eDerivedStructuralFeatureID(eFeature))
1403    {
1404      case SDOPackage.ECHANGE_SUMMARY_SETTING__FEATURE_NAME:
1405        unsetFeatureName();
1406        return;
1407      case SDOPackage.ECHANGE_SUMMARY_SETTING__DATA_VALUE:
1408        setDataValue(DATA_VALUE_EDEFAULT);
1409        return;
1410      case SDOPackage.ECHANGE_SUMMARY_SETTING__SET:
1411        setSet(SET_EDEFAULT);
1412        return;
1413      case SDOPackage.ECHANGE_SUMMARY_SETTING__FEATURE:
1414        unsetFeature();
1415        return;
1416      case SDOPackage.ECHANGE_SUMMARY_SETTING__REFERENCE_VALUE:
1417        setReferenceValue((EObject)null);
1418        return;
1419      case SDOPackage.ECHANGE_SUMMARY_SETTING__LIST_CHANGES:
1420        getListChanges().clear();
1421        return;
1422    }
1423    eDynamicUnset(eFeature);
1424  }
1425
1426  /**
1427   * <!-- begin-user-doc -->
1428   * <!-- end-user-doc -->
1429   * @generated
1430   */

1431  public boolean eIsSet(EStructuralFeature eFeature)
1432  {
1433    switch (eDerivedStructuralFeatureID(eFeature))
1434    {
1435      case SDOPackage.ECHANGE_SUMMARY_SETTING__FEATURE_NAME:
1436        return isSetFeatureName();
1437      case SDOPackage.ECHANGE_SUMMARY_SETTING__DATA_VALUE:
1438        return DATA_VALUE_EDEFAULT == null ? getDataValue() != null : !DATA_VALUE_EDEFAULT.equals(getDataValue());
1439      case SDOPackage.ECHANGE_SUMMARY_SETTING__SET:
1440        return set != SET_EDEFAULT;
1441      case SDOPackage.ECHANGE_SUMMARY_SETTING__VALUE:
1442        return VALUE_EDEFAULT == null ? getValue() != null : !VALUE_EDEFAULT.equals(getValue());
1443      case SDOPackage.ECHANGE_SUMMARY_SETTING__FEATURE:
1444        return isSetFeature();
1445      case SDOPackage.ECHANGE_SUMMARY_SETTING__REFERENCE_VALUE:
1446        return basicGetReferenceValue() != null;
1447      case SDOPackage.ECHANGE_SUMMARY_SETTING__LIST_CHANGES:
1448        return listChanges != null && !listChanges.isEmpty();
1449      case SDOPackage.ECHANGE_SUMMARY_SETTING__PROPERTY:
1450        return getProperty() != null;
1451    }
1452    return eDynamicIsSet(eFeature);
1453  }
1454
1455  /**
1456   * <!-- begin-user-doc -->
1457   * <!-- end-user-doc -->
1458   * @generated
1459   */

1460  public int eBaseStructuralFeatureID(int derivedFeatureID, Class JavaDoc baseClass)
1461  {
1462    if (baseClass == ChangeSummary.Setting.class)
1463    {
1464      switch (derivedFeatureID)
1465      {
1466        case SDOPackage.ECHANGE_SUMMARY_SETTING__PROPERTY: return SDOPackage.CHANGE_SUMMARY_SETTING__PROPERTY;
1467        default: return -1;
1468      }
1469    }
1470    return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
1471  }
1472
1473  /**
1474   * <!-- begin-user-doc -->
1475   * <!-- end-user-doc -->
1476   * @generated
1477   */

1478  public int eDerivedStructuralFeatureID(int baseFeatureID, Class JavaDoc baseClass)
1479  {
1480    if (baseClass == ChangeSummary.Setting.class)
1481    {
1482      switch (baseFeatureID)
1483      {
1484        case SDOPackage.CHANGE_SUMMARY_SETTING__PROPERTY: return SDOPackage.ECHANGE_SUMMARY_SETTING__PROPERTY;
1485        default: return -1;
1486      }
1487    }
1488    return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
1489  }
1490
1491} //EChangeSummarySettingImpl
1492
Popular Tags