1
2
3
4
5 package org.andromda.cartridges.jsf.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.jsf.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
286
287 public final List<DependencyFacade> getSessionObjectReferences()
288 {
289 List<DependencyFacade> getSessionObjectReferences1r = null;
290
291 List result = handleGetSessionObjectReferences();
292 List shieldedResult = this.shieldedElements(result);
293 try
294 {
295 getSessionObjectReferences1r = (List<DependencyFacade>)shieldedResult;
296 }
297 catch (ClassCastException ex)
298 {
299
300 JSFControllerLogic.logger.warn("incorrect metafacade cast for JSFControllerLogic.getSessionObjectReferences List<DependencyFacade> " + result + ": " + shieldedResult);
301 }
302
303 return getSessionObjectReferences1r;
304 }
305
306
307
308
309
310 protected abstract List handleGetSessionObjectReferences();
311
312
313
314
315
316 public boolean isFrontEndControllerMetaType()
317 {
318 return true;
319 }
320
321
322
323
324
325 public boolean isClassifierFacadeMetaType()
326 {
327 return true;
328 }
329
330
331
332
333
334 public boolean isGeneralizableElementFacadeMetaType()
335 {
336 return true;
337 }
338
339
340
341
342
343 public boolean isModelElementFacadeMetaType()
344 {
345 return true;
346 }
347
348
349
350
351
352
353 public AttributeFacade findAttribute(String name)
354 {
355 return this.getSuperFrontEndController().findAttribute(name);
356 }
357
358
359
360
361
362 public Collection<ClassifierFacade> getAbstractions()
363 {
364 return this.getSuperFrontEndController().getAbstractions();
365 }
366
367
368
369
370
371
372 public Collection<ClassifierFacade> getAllAssociatedClasses()
373 {
374 return this.getSuperFrontEndController().getAllAssociatedClasses();
375 }
376
377
378
379
380
381
382 public Collection<ModelElementFacade> getAllProperties()
383 {
384 return this.getSuperFrontEndController().getAllProperties();
385 }
386
387
388
389
390
391
392 public Collection<ModelElementFacade> getAllRequiredConstructorParameters()
393 {
394 return this.getSuperFrontEndController().getAllRequiredConstructorParameters();
395 }
396
397
398
399
400
401
402 public ClassifierFacade getArray()
403 {
404 return this.getSuperFrontEndController().getArray();
405 }
406
407
408
409
410
411 public String getArrayName()
412 {
413 return this.getSuperFrontEndController().getArrayName();
414 }
415
416
417
418
419
420
421 public Collection<ClassifierFacade> getAssociatedClasses()
422 {
423 return this.getSuperFrontEndController().getAssociatedClasses();
424 }
425
426
427
428
429
430 public List<AssociationEndFacade> getAssociationEnds()
431 {
432 return this.getSuperFrontEndController().getAssociationEnds();
433 }
434
435
436
437
438
439 public List<AttributeFacade> getAttributes()
440 {
441 return this.getSuperFrontEndController().getAttributes();
442 }
443
444
445
446
447
448
449 public List<AttributeFacade> getAttributes(boolean follow)
450 {
451 return this.getSuperFrontEndController().getAttributes(follow);
452 }
453
454
455
456
457
458 public String getFullyQualifiedArrayName()
459 {
460 return this.getSuperFrontEndController().getFullyQualifiedArrayName();
461 }
462
463
464
465
466
467
468
469
470 public Collection<OperationFacade> getImplementationOperations()
471 {
472 return this.getSuperFrontEndController().getImplementationOperations();
473 }
474
475
476
477
478
479 public String getImplementedInterfaceList()
480 {
481 return this.getSuperFrontEndController().getImplementedInterfaceList();
482 }
483
484
485
486
487
488 public Collection<AttributeFacade> getInstanceAttributes()
489 {
490 return this.getSuperFrontEndController().getInstanceAttributes();
491 }
492
493
494
495
496
497 public List<OperationFacade> getInstanceOperations()
498 {
499 return this.getSuperFrontEndController().getInstanceOperations();
500 }
501
502
503
504
505
506
507 public Collection<ClassifierFacade> getInterfaceAbstractions()
508 {
509 return this.getSuperFrontEndController().getInterfaceAbstractions();
510 }
511
512
513
514
515
516
517 public String getJavaNewString()
518 {
519 return this.getSuperFrontEndController().getJavaNewString();
520 }
521
522
523
524
525
526
527 public String getJavaNullString()
528 {
529 return this.getSuperFrontEndController().getJavaNullString();
530 }
531
532
533
534
535
536 public Collection<AssociationEndFacade> getNavigableConnectingEnds()
537 {
538 return this.getSuperFrontEndController().getNavigableConnectingEnds();
539 }
540
541
542
543
544
545
546 public List<AssociationEndFacade> getNavigableConnectingEnds(boolean follow)
547 {
548 return this.getSuperFrontEndController().getNavigableConnectingEnds(follow);
549 }
550
551
552
553
554
555
556
557 public ClassifierFacade getNonArray()
558 {
559 return this.getSuperFrontEndController().getNonArray();
560 }
561
562
563
564
565
566
567
568 public String getOperationCallFromAttributes()
569 {
570 return this.getSuperFrontEndController().getOperationCallFromAttributes();
571 }
572
573
574
575
576
577 public List<OperationFacade> getOperations()
578 {
579 return this.getSuperFrontEndController().getOperations();
580 }
581
582
583
584
585
586
587 public List<ModelElementFacade> getProperties()
588 {
589 return this.getSuperFrontEndController().getProperties();
590 }
591
592
593
594
595
596
597
598 public List getProperties(boolean follow)
599 {
600 return this.getSuperFrontEndController().getProperties(follow);
601 }
602
603
604
605
606
607
608 public Collection<ModelElementFacade> getRequiredConstructorParameters()
609 {
610 return this.getSuperFrontEndController().getRequiredConstructorParameters();
611 }
612
613
614
615
616
617 public long getSerialVersionUID()
618 {
619 return this.getSuperFrontEndController().getSerialVersionUID();
620 }
621
622
623
624
625
626 public Collection<AttributeFacade> getStaticAttributes()
627 {
628 return this.getSuperFrontEndController().getStaticAttributes();
629 }
630
631
632
633
634
635 public List<OperationFacade> getStaticOperations()
636 {
637 return this.getSuperFrontEndController().getStaticOperations();
638 }
639
640
641
642
643
644
645 public ClassifierFacade getSuperClass()
646 {
647 return this.getSuperFrontEndController().getSuperClass();
648 }
649
650
651
652
653
654
655
656
657
658 public String getWrapperName()
659 {
660 return this.getSuperFrontEndController().getWrapperName();
661 }
662
663
664
665
666
667 public boolean isAbstract()
668 {
669 return this.getSuperFrontEndController().isAbstract();
670 }
671
672
673
674
675
676 public boolean isArrayType()
677 {
678 return this.getSuperFrontEndController().isArrayType();
679 }
680
681
682
683
684
685 public boolean isAssociationClass()
686 {
687 return this.getSuperFrontEndController().isAssociationClass();
688 }
689
690
691
692
693
694 public boolean isBlobType()
695 {
696 return this.getSuperFrontEndController().isBlobType();
697 }
698
699
700
701
702
703 public boolean isBooleanType()
704 {
705 return this.getSuperFrontEndController().isBooleanType();
706 }
707
708
709
710
711
712 public boolean isCharacterType()
713 {
714 return this.getSuperFrontEndController().isCharacterType();
715 }
716
717
718
719
720
721 public boolean isClobType()
722 {
723 return this.getSuperFrontEndController().isClobType();
724 }
725
726
727
728
729
730 public boolean isCollectionType()
731 {
732 return this.getSuperFrontEndController().isCollectionType();
733 }
734
735
736
737
738
739
740
741 public boolean isDataType()
742 {
743 return this.getSuperFrontEndController().isDataType();
744 }
745
746
747
748
749
750 public boolean isDateType()
751 {
752 return this.getSuperFrontEndController().isDateType();
753 }
754
755
756
757
758
759 public boolean isDoubleType()
760 {
761 return this.getSuperFrontEndController().isDoubleType();
762 }
763
764
765
766
767
768 public boolean isEmbeddedValue()
769 {
770 return this.getSuperFrontEndController().isEmbeddedValue();
771 }
772
773
774
775
776
777 public boolean isEnumeration()
778 {
779 return this.getSuperFrontEndController().isEnumeration();
780 }
781
782
783
784
785
786 public boolean isFileType()
787 {
788 return this.getSuperFrontEndController().isFileType();
789 }
790
791
792
793
794
795 public boolean isFloatType()
796 {
797 return this.getSuperFrontEndController().isFloatType();
798 }
799
800
801
802
803
804 public boolean isIntegerType()
805 {
806 return this.getSuperFrontEndController().isIntegerType();
807 }
808
809
810
811
812
813 public boolean isInterface()
814 {
815 return this.getSuperFrontEndController().isInterface();
816 }
817
818
819
820
821
822 public boolean isLeaf()
823 {
824 return this.getSuperFrontEndController().isLeaf();
825 }
826
827
828
829
830
831 public boolean isListType()
832 {
833 return this.getSuperFrontEndController().isListType();
834 }
835
836
837
838
839
840 public boolean isLongType()
841 {
842 return this.getSuperFrontEndController().isLongType();
843 }
844
845
846
847
848
849 public boolean isMapType()
850 {
851 return this.getSuperFrontEndController().isMapType();
852 }
853
854
855
856
857
858 public boolean isPrimitive()
859 {
860 return this.getSuperFrontEndController().isPrimitive();
861 }
862
863
864
865
866
867 public boolean isSetType()
868 {
869 return this.getSuperFrontEndController().isSetType();
870 }
871
872
873
874
875
876 public boolean isStringType()
877 {
878 return this.getSuperFrontEndController().isStringType();
879 }
880
881
882
883
884
885 public boolean isTimeType()
886 {
887 return this.getSuperFrontEndController().isTimeType();
888 }
889
890
891
892
893
894 public boolean isWrappedPrimitive()
895 {
896 return this.getSuperFrontEndController().isWrappedPrimitive();
897 }
898
899
900
901
902
903 public List<FrontEndAction> getDeferringActions()
904 {
905 return this.getSuperFrontEndController().getDeferringActions();
906 }
907
908
909
910
911
912 public List<DependencyFacade> getServiceReferences()
913 {
914 return this.getSuperFrontEndController().getServiceReferences();
915 }
916
917
918
919
920
921 public FrontEndUseCase getUseCase()
922 {
923 return this.getSuperFrontEndController().getUseCase();
924 }
925
926
927
928
929
930
931 public Object findTaggedValue(String tagName, boolean follow)
932 {
933 return this.getSuperFrontEndController().findTaggedValue(tagName, follow);
934 }
935
936
937
938
939
940 public Collection<GeneralizableElementFacade> getAllGeneralizations()
941 {
942 return this.getSuperFrontEndController().getAllGeneralizations();
943 }
944
945
946
947
948
949 public Collection<GeneralizableElementFacade> getAllSpecializations()
950 {
951 return this.getSuperFrontEndController().getAllSpecializations();
952 }
953
954
955
956
957
958 public GeneralizableElementFacade getGeneralization()
959 {
960 return this.getSuperFrontEndController().getGeneralization();
961 }
962
963
964
965
966
967
968 public Collection<GeneralizationFacade> getGeneralizationLinks()
969 {
970 return this.getSuperFrontEndController().getGeneralizationLinks();
971 }
972
973
974
975
976
977 public String getGeneralizationList()
978 {
979 return this.getSuperFrontEndController().getGeneralizationList();
980 }
981
982
983
984
985
986
987 public GeneralizableElementFacade getGeneralizationRoot()
988 {
989 return this.getSuperFrontEndController().getGeneralizationRoot();
990 }
991
992
993
994
995
996 public Collection<GeneralizableElementFacade> getGeneralizations()
997 {
998 return this.getSuperFrontEndController().getGeneralizations();
999 }
1000
1001
1002
1003
1004
1005 public Collection<GeneralizableElementFacade> getSpecializations()
1006 {
1007 return this.getSuperFrontEndController().getSpecializations();
1008 }
1009
1010
1011
1012
1013
1014 public void copyTaggedValues(ModelElementFacade element)
1015 {
1016 this.getSuperFrontEndController().copyTaggedValues(element);
1017 }
1018
1019
1020
1021
1022
1023
1024 public Object findTaggedValue(String tagName)
1025 {
1026 return this.getSuperFrontEndController().findTaggedValue(tagName);
1027 }
1028
1029
1030
1031
1032
1033
1034 public Collection<Object> findTaggedValues(String tagName)
1035 {
1036 return this.getSuperFrontEndController().findTaggedValues(tagName);
1037 }
1038
1039
1040
1041
1042
1043
1044
1045 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
1046 {
1047 return this.getSuperFrontEndController().getBindedFullyQualifiedName(bindedElement);
1048 }
1049
1050
1051
1052
1053
1054 public Collection<ConstraintFacade> getConstraints()
1055 {
1056 return this.getSuperFrontEndController().getConstraints();
1057 }
1058
1059
1060
1061
1062
1063
1064 public Collection<ConstraintFacade> getConstraints(String kind)
1065 {
1066 return this.getSuperFrontEndController().getConstraints(kind);
1067 }
1068
1069
1070
1071
1072
1073
1074
1075 public String getDocumentation(String indent)
1076 {
1077 return this.getSuperFrontEndController().getDocumentation(indent);
1078 }
1079
1080
1081
1082
1083
1084
1085
1086
1087 public String getDocumentation(String indent, int lineLength)
1088 {
1089 return this.getSuperFrontEndController().getDocumentation(indent, lineLength);
1090 }
1091
1092
1093
1094
1095
1096
1097
1098 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
1099 {
1100 return this.getSuperFrontEndController().getDocumentation(indent, lineLength, htmlStyle);
1101 }
1102
1103
1104
1105
1106
1107 public String getFullyQualifiedName()
1108 {
1109 return this.getSuperFrontEndController().getFullyQualifiedName();
1110 }
1111
1112
1113
1114
1115
1116
1117
1118
1119 public String getFullyQualifiedName(boolean modelName)
1120 {
1121 return this.getSuperFrontEndController().getFullyQualifiedName(modelName);
1122 }
1123
1124
1125
1126
1127
1128
1129 public String getFullyQualifiedNamePath()
1130 {
1131 return this.getSuperFrontEndController().getFullyQualifiedNamePath();
1132 }
1133
1134
1135
1136
1137
1138 public String getId()
1139 {
1140 return this.getSuperFrontEndController().getId();
1141 }
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151 public Collection<String> getKeywords()
1152 {
1153 return this.getSuperFrontEndController().getKeywords();
1154 }
1155
1156
1157
1158
1159
1160 public String getLabel()
1161 {
1162 return this.getSuperFrontEndController().getLabel();
1163 }
1164
1165
1166
1167
1168
1169 public TypeMappings getLanguageMappings()
1170 {
1171 return this.getSuperFrontEndController().getLanguageMappings();
1172 }
1173
1174
1175
1176
1177
1178
1179 public ModelFacade getModel()
1180 {
1181 return this.getSuperFrontEndController().getModel();
1182 }
1183
1184
1185
1186
1187
1188 public String getName()
1189 {
1190 return this.getSuperFrontEndController().getName();
1191 }
1192
1193
1194
1195
1196
1197 public ModelElementFacade getPackage()
1198 {
1199 return this.getSuperFrontEndController().getPackage();
1200 }
1201
1202
1203
1204
1205
1206 public String getPackageName()
1207 {
1208 return this.getSuperFrontEndController().getPackageName();
1209 }
1210
1211
1212
1213
1214
1215
1216 public String getPackageName(boolean modelName)
1217 {
1218 return this.getSuperFrontEndController().getPackageName(modelName);
1219 }
1220
1221
1222
1223
1224
1225 public String getPackagePath()
1226 {
1227 return this.getSuperFrontEndController().getPackagePath();
1228 }
1229
1230
1231
1232
1233
1234
1235
1236
1237 public String getQualifiedName()
1238 {
1239 return this.getSuperFrontEndController().getQualifiedName();
1240 }
1241
1242
1243
1244
1245
1246 public PackageFacade getRootPackage()
1247 {
1248 return this.getSuperFrontEndController().getRootPackage();
1249 }
1250
1251
1252
1253
1254
1255 public Collection<DependencyFacade> getSourceDependencies()
1256 {
1257 return this.getSuperFrontEndController().getSourceDependencies();
1258 }
1259
1260
1261
1262
1263
1264
1265 public StateMachineFacade getStateMachineContext()
1266 {
1267 return this.getSuperFrontEndController().getStateMachineContext();
1268 }
1269
1270
1271
1272
1273
1274 public Collection<String> getStereotypeNames()
1275 {
1276 return this.getSuperFrontEndController().getStereotypeNames();
1277 }
1278
1279
1280
1281
1282
1283 public Collection<StereotypeFacade> getStereotypes()
1284 {
1285 return this.getSuperFrontEndController().getStereotypes();
1286 }
1287
1288
1289
1290
1291
1292 public Collection<TaggedValueFacade> getTaggedValues()
1293 {
1294 return this.getSuperFrontEndController().getTaggedValues();
1295 }
1296
1297
1298
1299
1300
1301 public Collection<DependencyFacade> getTargetDependencies()
1302 {
1303 return this.getSuperFrontEndController().getTargetDependencies();
1304 }
1305
1306
1307
1308
1309
1310 public Object getTemplateParameter(String parameterName)
1311 {
1312 return this.getSuperFrontEndController().getTemplateParameter(parameterName);
1313 }
1314
1315
1316
1317
1318
1319 public Collection<TemplateParameterFacade> getTemplateParameters()
1320 {
1321 return this.getSuperFrontEndController().getTemplateParameters();
1322 }
1323
1324
1325
1326
1327
1328
1329 public String getVisibility()
1330 {
1331 return this.getSuperFrontEndController().getVisibility();
1332 }
1333
1334
1335
1336
1337
1338
1339 public boolean hasExactStereotype(String stereotypeName)
1340 {
1341 return this.getSuperFrontEndController().hasExactStereotype(stereotypeName);
1342 }
1343
1344
1345
1346
1347
1348
1349 public boolean hasKeyword(String keywordName)
1350 {
1351 return this.getSuperFrontEndController().hasKeyword(keywordName);
1352 }
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 public boolean hasStereotype(String stereotypeName)
1367 {
1368 return this.getSuperFrontEndController().hasStereotype(stereotypeName);
1369 }
1370
1371
1372
1373
1374
1375
1376 public boolean isBindingDependenciesPresent()
1377 {
1378 return this.getSuperFrontEndController().isBindingDependenciesPresent();
1379 }
1380
1381
1382
1383
1384
1385 public boolean isConstraintsPresent()
1386 {
1387 return this.getSuperFrontEndController().isConstraintsPresent();
1388 }
1389
1390
1391
1392
1393
1394 public boolean isDocumentationPresent()
1395 {
1396 return this.getSuperFrontEndController().isDocumentationPresent();
1397 }
1398
1399
1400
1401
1402
1403 public boolean isReservedWord()
1404 {
1405 return this.getSuperFrontEndController().isReservedWord();
1406 }
1407
1408
1409
1410
1411
1412
1413 public boolean isTemplateParametersPresent()
1414 {
1415 return this.getSuperFrontEndController().isTemplateParametersPresent();
1416 }
1417
1418
1419
1420
1421
1422
1423
1424 public boolean isValidIdentifierName()
1425 {
1426 return this.getSuperFrontEndController().isValidIdentifierName();
1427 }
1428
1429
1430
1431
1432
1433
1434
1435 public String translateConstraint(String name, String translation)
1436 {
1437 return this.getSuperFrontEndController().translateConstraint(name, translation);
1438 }
1439
1440
1441
1442
1443
1444 public String[] translateConstraints(String translation)
1445 {
1446 return this.getSuperFrontEndController().translateConstraints(translation);
1447 }
1448
1449
1450
1451
1452
1453 public String[] translateConstraints(String kind, String translation)
1454 {
1455 return this.getSuperFrontEndController().translateConstraints(kind, translation);
1456 }
1457
1458
1459
1460
1461 @Override
1462 public void initialize()
1463 {
1464 this.getSuperFrontEndController().initialize();
1465 }
1466
1467
1468
1469
1470
1471 @Override
1472 public Object getValidationOwner()
1473 {
1474 Object owner = this.getSuperFrontEndController().getValidationOwner();
1475 return owner;
1476 }
1477
1478
1479
1480
1481
1482 @Override
1483 public String getValidationName()
1484 {
1485 String name = this.getSuperFrontEndController().getValidationName();
1486 return name;
1487 }
1488
1489
1490
1491
1492
1493 @Override
1494 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
1495 {
1496 this.getSuperFrontEndController().validateInvariants(validationMessages);
1497 }
1498
1499
1500
1501
1502 private static final String NAME_PROPERTY = "name";
1503 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
1504
1505
1506
1507
1508 @Override
1509 public String toString()
1510 {
1511 final StringBuilder toString = new StringBuilder(this.getClass().getName());
1512 toString.append("[");
1513 try
1514 {
1515 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
1516 }
1517 catch (final Throwable tryAgain)
1518 {
1519 try
1520 {
1521 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
1522 }
1523 catch (final Throwable ignore)
1524 {
1525
1526 }
1527 }
1528 toString.append("]");
1529 return toString.toString();
1530 }
1531 }