1 package org.andromda.metafacades.emf.uml22;
2
3 import java.lang.reflect.InvocationTargetException;
4 import java.util.ArrayList;
5 import java.util.Collection;
6 import java.util.Iterator;
7 import java.util.Map;
8 import java.util.Set;
9 import org.eclipse.emf.common.notify.Notification;
10 import org.eclipse.emf.common.util.DiagnosticChain;
11 import org.eclipse.emf.common.util.EList;
12 import org.eclipse.emf.common.util.TreeIterator;
13 import org.eclipse.emf.ecore.EAnnotation;
14 import org.eclipse.emf.ecore.EClass;
15 import org.eclipse.emf.ecore.EObject;
16 import org.eclipse.emf.ecore.EOperation;
17 import org.eclipse.emf.ecore.EReference;
18 import org.eclipse.emf.ecore.EStructuralFeature;
19 import org.eclipse.emf.ecore.resource.Resource;
20 import org.eclipse.uml2.uml.Comment;
21 import org.eclipse.uml2.uml.Dependency;
22 import org.eclipse.uml2.uml.DirectedRelationship;
23 import org.eclipse.uml2.uml.Element;
24 import org.eclipse.uml2.uml.Model;
25 import org.eclipse.uml2.uml.NamedElement;
26 import org.eclipse.uml2.uml.Namespace;
27 import org.eclipse.uml2.uml.Package;
28 import org.eclipse.uml2.uml.ParameterableElement;
29 import org.eclipse.uml2.uml.Relationship;
30 import org.eclipse.uml2.uml.Stereotype;
31 import org.eclipse.uml2.uml.StringExpression;
32 import org.eclipse.uml2.uml.TemplateBinding;
33 import org.eclipse.uml2.uml.TemplateSignature;
34 import org.eclipse.uml2.uml.Type;
35 import org.eclipse.uml2.uml.Usage;
36 import org.eclipse.uml2.uml.VisibilityKind;
37
38
39
40
41
42
43
44
45 public class TagDefinitionImpl
46 implements TagDefinition
47 {
48
49
50
51 private String name;
52
53
54
55
56 private final Collection<Object> values;
57
58
59
60
61
62
63
64 public TagDefinitionImpl(
65 final String nameIn,
66 final Object value)
67 {
68 this.name = nameIn;
69 this.values = new ArrayList<Object>();
70 this.values.add(value);
71 }
72
73
74
75
76
77
78 public TagDefinitionImpl(
79 final String nameIn,
80 final Collection<Object> valuesIn)
81 {
82 this.name = nameIn;
83 this.values = valuesIn;
84 }
85
86
87
88
89 public String getName()
90 {
91 return this.name;
92 }
93
94
95
96
97 public Object getValue()
98 {
99 return (this.values != null && !this.values.isEmpty()) ? this.values.iterator().next() : null;
100 }
101
102
103
104
105 public Collection<Object> getValues()
106 {
107 return this.values;
108 }
109
110
111
112
113 @Override
114 public String toString()
115 {
116 final StringBuilder out = new StringBuilder(this.name).append(": ");
117 for (final Iterator<Object> it = this.values.iterator(); it.hasNext();)
118 {
119 out.append(it.next());
120 out.append(it.hasNext() ? ", " : ".");
121 }
122 return out.toString();
123 }
124
125
126
127
128
129 public void setName(final String arg0)
130 {
131 this.name = arg0;
132 }
133
134
135
136
137
138 public String getQualifiedName()
139 {
140
141 return null;
142 }
143
144
145
146
147
148 public VisibilityKind getVisibility()
149 {
150
151 return null;
152 }
153
154
155
156
157
158 public void setVisibility(final VisibilityKind arg0)
159 {
160
161 }
162
163
164
165
166
167 public EList getClientDependencies()
168 {
169
170 return null;
171 }
172
173
174
175
176
177 public Dependency getClientDependency(final String arg0)
178 {
179
180 return null;
181 }
182
183
184
185
186
187 public StringExpression getNameExpression()
188 {
189
190 return null;
191 }
192
193
194
195
196
197 public void setNameExpression(final StringExpression arg0)
198 {
199
200 }
201
202
203
204
205
206
207 public StringExpression createNameExpression(final EClass arg0)
208 {
209
210 return null;
211 }
212
213
214
215
216
217 public StringExpression createNameExpression()
218 {
219
220 return null;
221 }
222
223
224
225
226
227 public EList<Namespace> allNamespaces()
228 {
229
230 return null;
231 }
232
233
234
235
236
237
238 public boolean isDistinguishableFrom(
239 final NamedElement arg0,
240 final Namespace arg1)
241 {
242
243 return false;
244 }
245
246
247
248
249
250 public String separator()
251 {
252
253 return null;
254 }
255
256
257
258
259
260 public String qualifiedName()
261 {
262
263 return null;
264 }
265
266
267
268
269
270
271 public boolean validateVisibilityNeedsOwnership(
272 final DiagnosticChain arg0,
273 final Map<Object, Object> arg1)
274 {
275
276 return false;
277 }
278
279
280
281
282
283 public Namespace getNamespace()
284 {
285
286 return null;
287 }
288
289
290
291
292
293
294
295 public boolean validateNoName(
296 final DiagnosticChain arg0,
297 final Map<Object, Object> arg1)
298 {
299
300 return false;
301 }
302
303
304
305
306
307
308
309 public boolean validateQualifiedName(
310 final DiagnosticChain arg0,
311 final Map<Object, Object> arg1)
312 {
313
314 return false;
315 }
316
317
318
319
320
321 public String getLabel()
322 {
323
324 return null;
325 }
326
327
328
329
330
331 public String getLabel(final boolean arg0)
332 {
333
334 return null;
335 }
336
337
338
339
340
341 public Dependency createDependency(final NamedElement arg0)
342 {
343
344 return null;
345 }
346
347
348
349
350
351
352 public EList getTemplateBindings()
353 {
354
355 return null;
356 }
357
358
359
360
361
362
363 public TemplateBinding createTemplateBinding(final EClass arg0)
364 {
365
366 return null;
367 }
368
369
370
371
372
373 public TemplateBinding createTemplateBinding()
374 {
375
376 return null;
377 }
378
379
380
381
382
383
384 public TemplateSignature getOwnedTemplateSignature()
385 {
386
387 return null;
388 }
389
390
391
392
393
394
395 public void setOwnedTemplateSignature(final TemplateSignature arg0)
396 {
397
398 }
399
400
401
402
403
404
405
406 public TemplateSignature createOwnedTemplateSignature(final EClass arg0)
407 {
408
409 return null;
410 }
411
412
413
414
415
416
417 public TemplateSignature createOwnedTemplateSignature()
418 {
419
420 return null;
421 }
422
423
424
425
426
427
428 public Set<ParameterableElement> parameterableElements()
429 {
430
431 return null;
432 }
433
434
435
436
437
438 public EList getOwnedElements()
439 {
440
441 return null;
442 }
443
444
445
446
447
448 public Element getOwner()
449 {
450
451 return null;
452 }
453
454
455
456
457
458 public EList getOwnedComments()
459 {
460
461 return null;
462 }
463
464
465
466
467
468
469 public Comment createOwnedComment(final EClass arg0)
470 {
471
472 return null;
473 }
474
475
476
477
478
479 public Comment createOwnedComment()
480 {
481
482 return null;
483 }
484
485
486
487
488
489
490 public boolean validateNotOwnSelf(
491 final DiagnosticChain arg0,
492 final Map<Object, Object> arg1)
493 {
494
495 return false;
496 }
497
498
499
500
501
502
503 public boolean validateHasOwner(
504 final DiagnosticChain arg0,
505 final Map<Object, Object> arg1)
506 {
507
508 return false;
509 }
510
511
512
513
514
515 public EList<Element> allOwnedElements()
516 {
517
518 return null;
519 }
520
521
522
523
524
525 public boolean mustBeOwned()
526 {
527
528 return false;
529 }
530
531
532
533
534
535 public EAnnotation createEAnnotation(final String arg0)
536 {
537
538 return null;
539 }
540
541
542
543
544
545
546 public boolean isApplied(final Stereotype arg0)
547 {
548
549 return false;
550 }
551
552
553
554
555
556
557 public boolean isRequired(final Stereotype arg0)
558 {
559
560 return false;
561 }
562
563
564
565
566
567 public EList<Stereotype> getApplicableStereotypes()
568 {
569
570 return null;
571 }
572
573
574
575
576
577 public Stereotype getApplicableStereotype(final String arg0)
578 {
579
580 return null;
581 }
582
583
584
585
586
587 public EList<Stereotype> getAppliedStereotypes()
588 {
589
590 return null;
591 }
592
593
594
595
596
597 public Stereotype getAppliedStereotype(final String arg0)
598 {
599
600 return null;
601 }
602
603
604
605
606
607 public void apply(final Stereotype arg0)
608 {
609
610 }
611
612
613
614
615 public EObject applyStereotype(final Stereotype arg0)
616 {
617
618 return null;
619 }
620
621
622
623
624
625 public void unapply(final Stereotype arg0)
626 {
627
628 }
629
630
631
632
633
634
635 public Object getValue(
636 final Stereotype arg0,
637 final String arg1)
638 {
639
640 return null;
641 }
642
643
644
645
646
647
648 public void setValue(
649 final Stereotype arg0,
650 final String arg1,
651 final Object arg2)
652 {
653
654 }
655
656
657
658
659
660
661 public boolean hasValue(
662 final Stereotype arg0,
663 final String arg1)
664 {
665
666 return false;
667 }
668
669
670
671
672
673 public Model getModel()
674 {
675
676 return null;
677 }
678
679
680
681
682
683 public Package getNearestPackage()
684 {
685
686 return null;
687 }
688
689
690
691
692
693 public void destroy()
694 {
695
696 }
697
698
699
700
701
702 public String getAppliedVersion(final Stereotype arg0)
703 {
704
705 return null;
706 }
707
708
709
710
711
712 public EList<String> getKeywords()
713 {
714
715 return null;
716 }
717
718
719
720
721
722 public boolean hasKeyword(final String arg0)
723 {
724
725 return false;
726 }
727
728
729
730
731
732 public boolean addKeyword(final String arg0)
733 {
734
735 return false;
736 }
737
738
739
740
741
742 public boolean removeKeyword(final String arg0)
743 {
744
745 return false;
746 }
747
748
749
750
751
752 public EList getEAnnotations()
753 {
754
755 return null;
756 }
757
758
759
760
761
762 public EAnnotation getEAnnotation(final String arg0)
763 {
764
765 return null;
766 }
767
768
769
770
771
772 public EClass eClass()
773 {
774
775 return null;
776 }
777
778
779
780
781
782 public Resource eResource()
783 {
784
785 return null;
786 }
787
788
789
790
791
792 public EObject eContainer()
793 {
794
795 return null;
796 }
797
798
799
800
801
802 public EStructuralFeature eContainingFeature()
803 {
804
805 return null;
806 }
807
808
809
810
811
812 public EReference eContainmentFeature()
813 {
814
815 return null;
816 }
817
818
819
820
821
822 public EList eContents()
823 {
824
825 return null;
826 }
827
828
829
830
831
832 public TreeIterator eAllContents()
833 {
834
835 return null;
836 }
837
838
839
840
841
842 public boolean eIsProxy()
843 {
844
845 return false;
846 }
847
848
849
850
851
852 public EList eCrossReferences()
853 {
854
855 return null;
856 }
857
858
859
860
861
862 public Object eGet(final EStructuralFeature arg0)
863 {
864
865 return null;
866 }
867
868
869
870
871
872
873 public Object eGet(
874 final EStructuralFeature arg0,
875 final boolean arg1)
876 {
877
878 return null;
879 }
880
881
882
883
884
885
886 public void eSet(
887 final EStructuralFeature arg0,
888 final Object arg1)
889 {
890
891 }
892
893
894
895
896
897 public boolean eIsSet(final EStructuralFeature arg0)
898 {
899
900 return false;
901 }
902
903
904
905
906
907 public void eUnset(final EStructuralFeature arg0)
908 {
909
910 }
911
912
913
914
915
916 public EList eAdapters()
917 {
918
919 return null;
920 }
921
922
923
924
925
926 public boolean eDeliver()
927 {
928
929 return false;
930 }
931
932
933
934
935
936 public void eSetDeliver(final boolean arg0)
937 {
938
939 }
940
941
942
943
944
945 public void eNotify(final Notification arg0)
946 {
947
948 }
949
950
951
952
953 public EList<Package> allOwningPackages()
954 {
955
956 return null;
957 }
958
959
960
961
962 public StringExpression createNameExpression(final String name, final Type type)
963 {
964
965 return null;
966 }
967
968
969
970
971 public Usage createUsage(final NamedElement supplier)
972 {
973
974 return null;
975 }
976
977
978
979
980 public Dependency getClientDependency(final String name, final boolean ignoreCase, final EClass class1)
981 {
982
983 return null;
984 }
985
986
987
988
989 public boolean isSetName()
990 {
991
992 return false;
993 }
994
995
996
997
998 public boolean isSetVisibility()
999 {
1000
1001 return false;
1002 }
1003
1004
1005
1006
1007 public void unsetName()
1008 {
1009
1010
1011 }
1012
1013
1014
1015
1016 public void unsetVisibility()
1017 {
1018
1019
1020 }
1021
1022
1023
1024
1025 public boolean validateHasNoQualifiedName(final DiagnosticChain diagnostics,
1026 final Map<Object, Object> context)
1027 {
1028
1029 return false;
1030 }
1031
1032
1033
1034
1035 public boolean validateHasQualifiedName(final DiagnosticChain diagnostics, final Map<Object, Object> context)
1036 {
1037
1038 return false;
1039 }
1040
1041
1042
1043
1044 public Stereotype getAppliedSubstereotype(final Stereotype stereotype, final String qualifiedName)
1045 {
1046
1047 return null;
1048 }
1049
1050
1051
1052
1053 public EList<Stereotype> getAppliedSubstereotypes(final Stereotype stereotype)
1054 {
1055
1056 return null;
1057 }
1058
1059
1060
1061
1062 public EList<Relationship> getRelationships()
1063 {
1064
1065 return null;
1066 }
1067
1068
1069
1070
1071 public EList<Relationship> getRelationships(final EClass class1)
1072 {
1073
1074 return null;
1075 }
1076
1077
1078
1079
1080 public Stereotype getRequiredStereotype(final String qualifiedName)
1081 {
1082
1083 return null;
1084 }
1085
1086
1087
1088
1089 public EList<Stereotype> getRequiredStereotypes()
1090 {
1091
1092 return null;
1093 }
1094
1095
1096
1097
1098 public EList<DirectedRelationship> getSourceDirectedRelationships()
1099 {
1100
1101 return null;
1102 }
1103
1104
1105
1106
1107 public EList<DirectedRelationship> getSourceDirectedRelationships(final EClass class1)
1108 {
1109
1110 return null;
1111 }
1112
1113
1114
1115
1116 public EObject getStereotypeApplication(final Stereotype stereotype)
1117 {
1118
1119 return null;
1120 }
1121
1122
1123
1124
1125 public EList<EObject> getStereotypeApplications()
1126 {
1127
1128 return null;
1129 }
1130
1131
1132
1133
1134 public EList<DirectedRelationship> getTargetDirectedRelationships()
1135 {
1136
1137 return null;
1138 }
1139
1140
1141
1142
1143 public EList<DirectedRelationship> getTargetDirectedRelationships(final EClass class1)
1144 {
1145
1146 return null;
1147 }
1148
1149
1150
1151
1152 public boolean isStereotypeApplicable(final Stereotype stereotype)
1153 {
1154
1155 return false;
1156 }
1157
1158
1159
1160
1161 public boolean isStereotypeApplied(final Stereotype stereotype)
1162 {
1163
1164 return false;
1165 }
1166
1167
1168
1169
1170 public boolean isStereotypeRequired(final Stereotype stereotype)
1171 {
1172
1173 return false;
1174 }
1175
1176
1177
1178
1179 public EObject unapplyStereotype(final Stereotype stereotype)
1180 {
1181
1182 return null;
1183 }
1184
1185
1186
1187
1188
1189 public Object eInvoke(final EOperation arg0, final EList<?> arg1) throws InvocationTargetException
1190 {
1191 return null;
1192 }
1193 }