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