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