1
2
3
4
5 package org.andromda.metafacades.uml14;
6
7 import java.util.Collection;
8 import java.util.List;
9 import org.andromda.core.common.Introspector;
10 import org.andromda.core.metafacade.MetafacadeBase;
11 import org.andromda.core.metafacade.MetafacadeFactory;
12 import org.andromda.core.metafacade.ModelValidationMessage;
13 import org.andromda.metafacades.uml.AssociationClassFacade;
14 import org.andromda.metafacades.uml.AssociationEndFacade;
15 import org.andromda.metafacades.uml.AssociationFacade;
16 import org.andromda.metafacades.uml.AttributeFacade;
17 import org.andromda.metafacades.uml.ClassifierFacade;
18 import org.andromda.metafacades.uml.ConstraintFacade;
19 import org.andromda.metafacades.uml.DependencyFacade;
20 import org.andromda.metafacades.uml.GeneralizableElementFacade;
21 import org.andromda.metafacades.uml.GeneralizationFacade;
22 import org.andromda.metafacades.uml.ModelElementFacade;
23 import org.andromda.metafacades.uml.ModelFacade;
24 import org.andromda.metafacades.uml.OperationFacade;
25 import org.andromda.metafacades.uml.PackageFacade;
26 import org.andromda.metafacades.uml.StateMachineFacade;
27 import org.andromda.metafacades.uml.StereotypeFacade;
28 import org.andromda.metafacades.uml.TaggedValueFacade;
29 import org.andromda.metafacades.uml.TemplateParameterFacade;
30 import org.andromda.metafacades.uml.TypeMappings;
31 import org.apache.log4j.Logger;
32 import org.omg.uml.foundation.core.AssociationClass;
33
34
35
36
37
38
39
40
41
42
43 public abstract class AssociationClassFacadeLogic
44 extends MetafacadeBase
45 implements AssociationClassFacade
46 {
47
48
49
50
51 protected AssociationClass metaObject;
52
53
54
55
56
57 protected AssociationClassFacadeLogic(AssociationClass metaObjectIn, String context)
58 {
59 super(metaObjectIn, getContext(context));
60 this.superAssociationFacade =
61 (AssociationFacade)
62 MetafacadeFactory.getInstance().createFacadeImpl(
63 "org.andromda.metafacades.uml.AssociationFacade",
64 metaObjectIn,
65 getContext(context));
66 this.superClassifierFacade =
67 (ClassifierFacade)
68 MetafacadeFactory.getInstance().createFacadeImpl(
69 "org.andromda.metafacades.uml.ClassifierFacade",
70 metaObjectIn,
71 getContext(context));
72 this.metaObject = metaObjectIn;
73 }
74
75
76
77
78 private static final Logger logger = Logger.getLogger(AssociationClassFacadeLogic.class);
79
80
81
82
83
84
85 private static String getContext(String context)
86 {
87 if (context == null)
88 {
89 context = "org.andromda.metafacades.uml.AssociationClassFacade";
90 }
91 return context;
92 }
93
94 private AssociationFacade superAssociationFacade;
95 private boolean superAssociationFacadeInitialized = false;
96
97
98
99
100
101 protected AssociationFacade getSuperAssociationFacade()
102 {
103 if (!this.superAssociationFacadeInitialized)
104 {
105 ((MetafacadeBase)this.superAssociationFacade).setMetafacadeContext(this.getMetafacadeContext());
106 this.superAssociationFacadeInitialized = true;
107 }
108 return this.superAssociationFacade;
109 }
110
111 private ClassifierFacade superClassifierFacade;
112 private boolean superClassifierFacadeInitialized = false;
113
114
115
116
117
118 protected ClassifierFacade getSuperClassifierFacade()
119 {
120 if (!this.superClassifierFacadeInitialized)
121 {
122 ((MetafacadeBase)this.superClassifierFacade).setMetafacadeContext(this.getMetafacadeContext());
123 this.superClassifierFacadeInitialized = true;
124 }
125 return this.superClassifierFacade;
126 }
127
128
129
130
131
132 @Override
133 public void resetMetafacadeContext(String context)
134 {
135 if (!this.contextRoot)
136 {
137 context = getContext(context);
138 setMetafacadeContext (context);
139 if (this.superAssociationFacadeInitialized)
140 {
141 ((MetafacadeBase)this.superAssociationFacade).resetMetafacadeContext(context);
142 }
143 if (this.superClassifierFacadeInitialized)
144 {
145 ((MetafacadeBase)this.superClassifierFacade).resetMetafacadeContext(context);
146 }
147 }
148 }
149
150
151
152
153
154 public boolean isAssociationClassFacadeMetaType()
155 {
156 return true;
157 }
158
159
160
161
162
163
164
165
166
167
168
169
170
171 public final Collection<AssociationEndFacade> getConnectionAssociationEnds()
172 {
173 Collection<AssociationEndFacade> getConnectionAssociationEnds1r = null;
174
175 Collection result = handleGetConnectionAssociationEnds();
176 List shieldedResult = this.shieldedElements(result);
177 try
178 {
179 getConnectionAssociationEnds1r = (Collection<AssociationEndFacade>)shieldedResult;
180 }
181 catch (ClassCastException ex)
182 {
183
184 AssociationClassFacadeLogic.logger.warn("incorrect metafacade cast for AssociationClassFacadeLogic.getConnectionAssociationEnds Collection<AssociationEndFacade> " + result + ": " + shieldedResult);
185 }
186
187 return getConnectionAssociationEnds1r;
188 }
189
190
191
192
193
194 protected abstract Collection handleGetConnectionAssociationEnds();
195
196
197
198
199
200 public boolean isAssociationFacadeMetaType()
201 {
202 return true;
203 }
204
205
206
207
208
209 public boolean isClassifierFacadeMetaType()
210 {
211 return true;
212 }
213
214
215
216
217
218 public boolean isGeneralizableElementFacadeMetaType()
219 {
220 return true;
221 }
222
223
224
225
226
227 public boolean isModelElementFacadeMetaType()
228 {
229 return true;
230 }
231
232
233
234
235
236
237 public AssociationEndFacade getAssociationEndA()
238 {
239 return this.getSuperAssociationFacade().getAssociationEndA();
240 }
241
242
243
244
245
246 public AssociationEndFacade getAssociationEndB()
247 {
248 return this.getSuperAssociationFacade().getAssociationEndB();
249 }
250
251
252
253
254
255 public List<AssociationEndFacade> getAssociationEnds()
256 {
257 return this.getSuperAssociationFacade().getAssociationEnds();
258 }
259
260
261
262
263
264
265 public String getRelationName()
266 {
267 return this.getSuperAssociationFacade().getRelationName();
268 }
269
270
271
272
273
274 public boolean isAbstract()
275 {
276 return this.getSuperAssociationFacade().isAbstract();
277 }
278
279
280
281
282
283 public boolean isAssociationClass()
284 {
285 return this.getSuperAssociationFacade().isAssociationClass();
286 }
287
288
289
290
291
292
293
294 public boolean isBinary()
295 {
296 return this.getSuperAssociationFacade().isBinary();
297 }
298
299
300
301
302
303
304
305
306 public boolean isDerived()
307 {
308 return this.getSuperAssociationFacade().isDerived();
309 }
310
311
312
313
314
315 public boolean isLeaf()
316 {
317 return this.getSuperAssociationFacade().isLeaf();
318 }
319
320
321
322
323
324 public boolean isMany2Many()
325 {
326 return this.getSuperAssociationFacade().isMany2Many();
327 }
328
329
330
331
332
333
334 public Object findTaggedValue(String tagName, boolean follow)
335 {
336 return this.getSuperAssociationFacade().findTaggedValue(tagName, follow);
337 }
338
339
340
341
342
343 public Collection<GeneralizableElementFacade> getAllGeneralizations()
344 {
345 return this.getSuperAssociationFacade().getAllGeneralizations();
346 }
347
348
349
350
351
352 public Collection<GeneralizableElementFacade> getAllSpecializations()
353 {
354 return this.getSuperAssociationFacade().getAllSpecializations();
355 }
356
357
358
359
360
361 public GeneralizableElementFacade getGeneralization()
362 {
363 return this.getSuperAssociationFacade().getGeneralization();
364 }
365
366
367
368
369
370
371 public Collection<GeneralizationFacade> getGeneralizationLinks()
372 {
373 return this.getSuperAssociationFacade().getGeneralizationLinks();
374 }
375
376
377
378
379
380 public String getGeneralizationList()
381 {
382 return this.getSuperAssociationFacade().getGeneralizationList();
383 }
384
385
386
387
388
389
390 public GeneralizableElementFacade getGeneralizationRoot()
391 {
392 return this.getSuperAssociationFacade().getGeneralizationRoot();
393 }
394
395
396
397
398
399 public Collection<GeneralizableElementFacade> getGeneralizations()
400 {
401 return this.getSuperAssociationFacade().getGeneralizations();
402 }
403
404
405
406
407
408 public Collection<GeneralizableElementFacade> getSpecializations()
409 {
410 return this.getSuperAssociationFacade().getSpecializations();
411 }
412
413
414
415
416
417 public void copyTaggedValues(ModelElementFacade element)
418 {
419 this.getSuperAssociationFacade().copyTaggedValues(element);
420 }
421
422
423
424
425
426
427 public Object findTaggedValue(String tagName)
428 {
429 return this.getSuperAssociationFacade().findTaggedValue(tagName);
430 }
431
432
433
434
435
436
437 public Collection<Object> findTaggedValues(String tagName)
438 {
439 return this.getSuperAssociationFacade().findTaggedValues(tagName);
440 }
441
442
443
444
445
446
447
448 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
449 {
450 return this.getSuperAssociationFacade().getBindedFullyQualifiedName(bindedElement);
451 }
452
453
454
455
456
457 public Collection<ConstraintFacade> getConstraints()
458 {
459 return this.getSuperAssociationFacade().getConstraints();
460 }
461
462
463
464
465
466
467 public Collection<ConstraintFacade> getConstraints(String kind)
468 {
469 return this.getSuperAssociationFacade().getConstraints(kind);
470 }
471
472
473
474
475
476
477
478 public String getDocumentation(String indent)
479 {
480 return this.getSuperAssociationFacade().getDocumentation(indent);
481 }
482
483
484
485
486
487
488
489
490 public String getDocumentation(String indent, int lineLength)
491 {
492 return this.getSuperAssociationFacade().getDocumentation(indent, lineLength);
493 }
494
495
496
497
498
499
500
501 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
502 {
503 return this.getSuperAssociationFacade().getDocumentation(indent, lineLength, htmlStyle);
504 }
505
506
507
508
509
510 public String getFullyQualifiedName()
511 {
512 return this.getSuperAssociationFacade().getFullyQualifiedName();
513 }
514
515
516
517
518
519
520
521
522 public String getFullyQualifiedName(boolean modelName)
523 {
524 return this.getSuperAssociationFacade().getFullyQualifiedName(modelName);
525 }
526
527
528
529
530
531
532 public String getFullyQualifiedNamePath()
533 {
534 return this.getSuperAssociationFacade().getFullyQualifiedNamePath();
535 }
536
537
538
539
540
541 public String getId()
542 {
543 return this.getSuperAssociationFacade().getId();
544 }
545
546
547
548
549
550
551
552
553
554 public Collection<String> getKeywords()
555 {
556 return this.getSuperAssociationFacade().getKeywords();
557 }
558
559
560
561
562
563 public String getLabel()
564 {
565 return this.getSuperAssociationFacade().getLabel();
566 }
567
568
569
570
571
572 public TypeMappings getLanguageMappings()
573 {
574 return this.getSuperAssociationFacade().getLanguageMappings();
575 }
576
577
578
579
580
581
582 public ModelFacade getModel()
583 {
584 return this.getSuperAssociationFacade().getModel();
585 }
586
587
588
589
590
591 public String getName()
592 {
593 return this.getSuperAssociationFacade().getName();
594 }
595
596
597
598
599
600 public ModelElementFacade getPackage()
601 {
602 return this.getSuperAssociationFacade().getPackage();
603 }
604
605
606
607
608
609 public String getPackageName()
610 {
611 return this.getSuperAssociationFacade().getPackageName();
612 }
613
614
615
616
617
618
619 public String getPackageName(boolean modelName)
620 {
621 return this.getSuperAssociationFacade().getPackageName(modelName);
622 }
623
624
625
626
627
628 public String getPackagePath()
629 {
630 return this.getSuperAssociationFacade().getPackagePath();
631 }
632
633
634
635
636
637
638
639
640 public String getQualifiedName()
641 {
642 return this.getSuperAssociationFacade().getQualifiedName();
643 }
644
645
646
647
648
649 public PackageFacade getRootPackage()
650 {
651 return this.getSuperAssociationFacade().getRootPackage();
652 }
653
654
655
656
657
658 public Collection<DependencyFacade> getSourceDependencies()
659 {
660 return this.getSuperAssociationFacade().getSourceDependencies();
661 }
662
663
664
665
666
667
668 public StateMachineFacade getStateMachineContext()
669 {
670 return this.getSuperAssociationFacade().getStateMachineContext();
671 }
672
673
674
675
676
677 public Collection<String> getStereotypeNames()
678 {
679 return this.getSuperAssociationFacade().getStereotypeNames();
680 }
681
682
683
684
685
686 public Collection<StereotypeFacade> getStereotypes()
687 {
688 return this.getSuperAssociationFacade().getStereotypes();
689 }
690
691
692
693
694
695 public Collection<TaggedValueFacade> getTaggedValues()
696 {
697 return this.getSuperAssociationFacade().getTaggedValues();
698 }
699
700
701
702
703
704 public Collection<DependencyFacade> getTargetDependencies()
705 {
706 return this.getSuperAssociationFacade().getTargetDependencies();
707 }
708
709
710
711
712
713 public Object getTemplateParameter(String parameterName)
714 {
715 return this.getSuperAssociationFacade().getTemplateParameter(parameterName);
716 }
717
718
719
720
721
722 public Collection<TemplateParameterFacade> getTemplateParameters()
723 {
724 return this.getSuperAssociationFacade().getTemplateParameters();
725 }
726
727
728
729
730
731
732 public String getVisibility()
733 {
734 return this.getSuperAssociationFacade().getVisibility();
735 }
736
737
738
739
740
741
742 public boolean hasExactStereotype(String stereotypeName)
743 {
744 return this.getSuperAssociationFacade().hasExactStereotype(stereotypeName);
745 }
746
747
748
749
750
751
752 public boolean hasKeyword(String keywordName)
753 {
754 return this.getSuperAssociationFacade().hasKeyword(keywordName);
755 }
756
757
758
759
760
761
762
763
764
765
766
767
768
769 public boolean hasStereotype(String stereotypeName)
770 {
771 return this.getSuperAssociationFacade().hasStereotype(stereotypeName);
772 }
773
774
775
776
777
778
779 public boolean isBindingDependenciesPresent()
780 {
781 return this.getSuperAssociationFacade().isBindingDependenciesPresent();
782 }
783
784
785
786
787
788 public boolean isConstraintsPresent()
789 {
790 return this.getSuperAssociationFacade().isConstraintsPresent();
791 }
792
793
794
795
796
797 public boolean isDocumentationPresent()
798 {
799 return this.getSuperAssociationFacade().isDocumentationPresent();
800 }
801
802
803
804
805
806 public boolean isReservedWord()
807 {
808 return this.getSuperAssociationFacade().isReservedWord();
809 }
810
811
812
813
814
815
816 public boolean isTemplateParametersPresent()
817 {
818 return this.getSuperAssociationFacade().isTemplateParametersPresent();
819 }
820
821
822
823
824
825
826
827 public boolean isValidIdentifierName()
828 {
829 return this.getSuperAssociationFacade().isValidIdentifierName();
830 }
831
832
833
834
835
836
837
838 public String translateConstraint(String name, String translation)
839 {
840 return this.getSuperAssociationFacade().translateConstraint(name, translation);
841 }
842
843
844
845
846
847 public String[] translateConstraints(String translation)
848 {
849 return this.getSuperAssociationFacade().translateConstraints(translation);
850 }
851
852
853
854
855
856 public String[] translateConstraints(String kind, String translation)
857 {
858 return this.getSuperAssociationFacade().translateConstraints(kind, translation);
859 }
860
861
862
863
864
865
866 public AttributeFacade findAttribute(String name)
867 {
868 return this.getSuperClassifierFacade().findAttribute(name);
869 }
870
871
872
873
874
875 public Collection<ClassifierFacade> getAbstractions()
876 {
877 return this.getSuperClassifierFacade().getAbstractions();
878 }
879
880
881
882
883
884
885 public Collection<ClassifierFacade> getAllAssociatedClasses()
886 {
887 return this.getSuperClassifierFacade().getAllAssociatedClasses();
888 }
889
890
891
892
893
894
895 public Collection<ModelElementFacade> getAllProperties()
896 {
897 return this.getSuperClassifierFacade().getAllProperties();
898 }
899
900
901
902
903
904
905 public Collection<ModelElementFacade> getAllRequiredConstructorParameters()
906 {
907 return this.getSuperClassifierFacade().getAllRequiredConstructorParameters();
908 }
909
910
911
912
913
914
915 public ClassifierFacade getArray()
916 {
917 return this.getSuperClassifierFacade().getArray();
918 }
919
920
921
922
923
924 public String getArrayName()
925 {
926 return this.getSuperClassifierFacade().getArrayName();
927 }
928
929
930
931
932
933
934 public Collection<ClassifierFacade> getAssociatedClasses()
935 {
936 return this.getSuperClassifierFacade().getAssociatedClasses();
937 }
938
939
940
941
942
943 public List<AttributeFacade> getAttributes()
944 {
945 return this.getSuperClassifierFacade().getAttributes();
946 }
947
948
949
950
951
952
953 public List<AttributeFacade> getAttributes(boolean follow)
954 {
955 return this.getSuperClassifierFacade().getAttributes(follow);
956 }
957
958
959
960
961
962 public String getFullyQualifiedArrayName()
963 {
964 return this.getSuperClassifierFacade().getFullyQualifiedArrayName();
965 }
966
967
968
969
970
971
972
973
974 public Collection<OperationFacade> getImplementationOperations()
975 {
976 return this.getSuperClassifierFacade().getImplementationOperations();
977 }
978
979
980
981
982
983 public String getImplementedInterfaceList()
984 {
985 return this.getSuperClassifierFacade().getImplementedInterfaceList();
986 }
987
988
989
990
991
992 public Collection<AttributeFacade> getInstanceAttributes()
993 {
994 return this.getSuperClassifierFacade().getInstanceAttributes();
995 }
996
997
998
999
1000
1001 public List<OperationFacade> getInstanceOperations()
1002 {
1003 return this.getSuperClassifierFacade().getInstanceOperations();
1004 }
1005
1006
1007
1008
1009
1010
1011 public Collection<ClassifierFacade> getInterfaceAbstractions()
1012 {
1013 return this.getSuperClassifierFacade().getInterfaceAbstractions();
1014 }
1015
1016
1017
1018
1019
1020
1021 public String getJavaNewString()
1022 {
1023 return this.getSuperClassifierFacade().getJavaNewString();
1024 }
1025
1026
1027
1028
1029
1030
1031 public String getJavaNullString()
1032 {
1033 return this.getSuperClassifierFacade().getJavaNullString();
1034 }
1035
1036
1037
1038
1039
1040 public Collection<AssociationEndFacade> getNavigableConnectingEnds()
1041 {
1042 return this.getSuperClassifierFacade().getNavigableConnectingEnds();
1043 }
1044
1045
1046
1047
1048
1049
1050 public List<AssociationEndFacade> getNavigableConnectingEnds(boolean follow)
1051 {
1052 return this.getSuperClassifierFacade().getNavigableConnectingEnds(follow);
1053 }
1054
1055
1056
1057
1058
1059
1060
1061 public ClassifierFacade getNonArray()
1062 {
1063 return this.getSuperClassifierFacade().getNonArray();
1064 }
1065
1066
1067
1068
1069
1070
1071
1072 public String getOperationCallFromAttributes()
1073 {
1074 return this.getSuperClassifierFacade().getOperationCallFromAttributes();
1075 }
1076
1077
1078
1079
1080
1081 public List<OperationFacade> getOperations()
1082 {
1083 return this.getSuperClassifierFacade().getOperations();
1084 }
1085
1086
1087
1088
1089
1090
1091 public List<ModelElementFacade> getProperties()
1092 {
1093 return this.getSuperClassifierFacade().getProperties();
1094 }
1095
1096
1097
1098
1099
1100
1101
1102 public List getProperties(boolean follow)
1103 {
1104 return this.getSuperClassifierFacade().getProperties(follow);
1105 }
1106
1107
1108
1109
1110
1111
1112 public Collection<ModelElementFacade> getRequiredConstructorParameters()
1113 {
1114 return this.getSuperClassifierFacade().getRequiredConstructorParameters();
1115 }
1116
1117
1118
1119
1120
1121 public long getSerialVersionUID()
1122 {
1123 return this.getSuperClassifierFacade().getSerialVersionUID();
1124 }
1125
1126
1127
1128
1129
1130 public Collection<AttributeFacade> getStaticAttributes()
1131 {
1132 return this.getSuperClassifierFacade().getStaticAttributes();
1133 }
1134
1135
1136
1137
1138
1139 public List<OperationFacade> getStaticOperations()
1140 {
1141 return this.getSuperClassifierFacade().getStaticOperations();
1142 }
1143
1144
1145
1146
1147
1148
1149 public ClassifierFacade getSuperClass()
1150 {
1151 return this.getSuperClassifierFacade().getSuperClass();
1152 }
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162 public String getWrapperName()
1163 {
1164 return this.getSuperClassifierFacade().getWrapperName();
1165 }
1166
1167
1168
1169
1170
1171 public boolean isArrayType()
1172 {
1173 return this.getSuperClassifierFacade().isArrayType();
1174 }
1175
1176
1177
1178
1179
1180 public boolean isBlobType()
1181 {
1182 return this.getSuperClassifierFacade().isBlobType();
1183 }
1184
1185
1186
1187
1188
1189 public boolean isBooleanType()
1190 {
1191 return this.getSuperClassifierFacade().isBooleanType();
1192 }
1193
1194
1195
1196
1197
1198 public boolean isCharacterType()
1199 {
1200 return this.getSuperClassifierFacade().isCharacterType();
1201 }
1202
1203
1204
1205
1206
1207 public boolean isClobType()
1208 {
1209 return this.getSuperClassifierFacade().isClobType();
1210 }
1211
1212
1213
1214
1215
1216 public boolean isCollectionType()
1217 {
1218 return this.getSuperClassifierFacade().isCollectionType();
1219 }
1220
1221
1222
1223
1224
1225
1226
1227 public boolean isDataType()
1228 {
1229 return this.getSuperClassifierFacade().isDataType();
1230 }
1231
1232
1233
1234
1235
1236 public boolean isDateType()
1237 {
1238 return this.getSuperClassifierFacade().isDateType();
1239 }
1240
1241
1242
1243
1244
1245 public boolean isDoubleType()
1246 {
1247 return this.getSuperClassifierFacade().isDoubleType();
1248 }
1249
1250
1251
1252
1253
1254 public boolean isEmbeddedValue()
1255 {
1256 return this.getSuperClassifierFacade().isEmbeddedValue();
1257 }
1258
1259
1260
1261
1262
1263 public boolean isEnumeration()
1264 {
1265 return this.getSuperClassifierFacade().isEnumeration();
1266 }
1267
1268
1269
1270
1271
1272 public boolean isFileType()
1273 {
1274 return this.getSuperClassifierFacade().isFileType();
1275 }
1276
1277
1278
1279
1280
1281 public boolean isFloatType()
1282 {
1283 return this.getSuperClassifierFacade().isFloatType();
1284 }
1285
1286
1287
1288
1289
1290 public boolean isIntegerType()
1291 {
1292 return this.getSuperClassifierFacade().isIntegerType();
1293 }
1294
1295
1296
1297
1298
1299 public boolean isInterface()
1300 {
1301 return this.getSuperClassifierFacade().isInterface();
1302 }
1303
1304
1305
1306
1307
1308 public boolean isListType()
1309 {
1310 return this.getSuperClassifierFacade().isListType();
1311 }
1312
1313
1314
1315
1316
1317 public boolean isLongType()
1318 {
1319 return this.getSuperClassifierFacade().isLongType();
1320 }
1321
1322
1323
1324
1325
1326 public boolean isMapType()
1327 {
1328 return this.getSuperClassifierFacade().isMapType();
1329 }
1330
1331
1332
1333
1334
1335 public boolean isPrimitive()
1336 {
1337 return this.getSuperClassifierFacade().isPrimitive();
1338 }
1339
1340
1341
1342
1343
1344 public boolean isSetType()
1345 {
1346 return this.getSuperClassifierFacade().isSetType();
1347 }
1348
1349
1350
1351
1352
1353 public boolean isStringType()
1354 {
1355 return this.getSuperClassifierFacade().isStringType();
1356 }
1357
1358
1359
1360
1361
1362 public boolean isTimeType()
1363 {
1364 return this.getSuperClassifierFacade().isTimeType();
1365 }
1366
1367
1368
1369
1370
1371 public boolean isWrappedPrimitive()
1372 {
1373 return this.getSuperClassifierFacade().isWrappedPrimitive();
1374 }
1375
1376
1377
1378
1379 @Override
1380 public void initialize()
1381 {
1382 this.getSuperAssociationFacade().initialize();
1383 this.getSuperClassifierFacade().initialize();
1384 }
1385
1386
1387
1388
1389
1390 @Override
1391 public Object getValidationOwner()
1392 {
1393 Object owner = this.getSuperAssociationFacade().getValidationOwner();
1394 if (owner == null)
1395 {
1396 owner = this.getSuperClassifierFacade().getValidationOwner();
1397 }
1398 return owner;
1399 }
1400
1401
1402
1403
1404
1405 @Override
1406 public String getValidationName()
1407 {
1408 String name = this.getSuperAssociationFacade().getValidationName();
1409 if (name == null)
1410 {
1411 name = this.getSuperClassifierFacade().getValidationName();
1412 }
1413 return name;
1414 }
1415
1416
1417
1418
1419
1420 @Override
1421 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
1422 {
1423 this.getSuperAssociationFacade().validateInvariants(validationMessages);
1424 this.getSuperClassifierFacade().validateInvariants(validationMessages);
1425 }
1426
1427
1428
1429
1430 private static final String NAME_PROPERTY = "name";
1431 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
1432
1433
1434
1435
1436 @Override
1437 public String toString()
1438 {
1439 final StringBuilder toString = new StringBuilder(this.getClass().getName());
1440 toString.append("[");
1441 try
1442 {
1443 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
1444 }
1445 catch (final Throwable tryAgain)
1446 {
1447 try
1448 {
1449 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
1450 }
1451 catch (final Throwable ignore)
1452 {
1453
1454 }
1455 }
1456 toString.append("]");
1457 return toString.toString();
1458 }
1459 }