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