1
2
3
4
5 package org.andromda.cartridges.bpm4struts.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.ConstraintFacade;
14 import org.andromda.metafacades.uml.DependencyFacade;
15 import org.andromda.metafacades.uml.FrontEndAction;
16 import org.andromda.metafacades.uml.FrontEndControllerOperation;
17 import org.andromda.metafacades.uml.FrontEndEvent;
18 import org.andromda.metafacades.uml.ModelElementFacade;
19 import org.andromda.metafacades.uml.ModelFacade;
20 import org.andromda.metafacades.uml.PackageFacade;
21 import org.andromda.metafacades.uml.ParameterFacade;
22 import org.andromda.metafacades.uml.StateFacade;
23 import org.andromda.metafacades.uml.StateMachineFacade;
24 import org.andromda.metafacades.uml.StereotypeFacade;
25 import org.andromda.metafacades.uml.TaggedValueFacade;
26 import org.andromda.metafacades.uml.TemplateParameterFacade;
27 import org.andromda.metafacades.uml.TransitionFacade;
28 import org.andromda.metafacades.uml.TypeMappings;
29 import org.andromda.translation.ocl.validation.OCLCollections;
30 import org.andromda.translation.ocl.validation.OCLIntrospector;
31 import org.andromda.translation.ocl.validation.OCLResultEnsurer;
32 import org.apache.log4j.Logger;
33
34
35
36
37
38
39
40 public abstract class StrutsTriggerLogic
41 extends MetafacadeBase
42 implements StrutsTrigger
43 {
44
45
46
47
48 protected Object metaObject;
49
50
51
52
53
54 protected StrutsTriggerLogic(Object metaObjectIn, String context)
55 {
56 super(metaObjectIn, getContext(context));
57 this.superFrontEndEvent =
58 (FrontEndEvent)
59 MetafacadeFactory.getInstance().createFacadeImpl(
60 "org.andromda.metafacades.uml.FrontEndEvent",
61 metaObjectIn,
62 getContext(context));
63 this.metaObject = metaObjectIn;
64 }
65
66
67
68
69 private static final Logger logger = Logger.getLogger(StrutsTriggerLogic.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.bpm4struts.metafacades.StrutsTrigger";
81 }
82 return context;
83 }
84
85 private FrontEndEvent superFrontEndEvent;
86 private boolean superFrontEndEventInitialized = false;
87
88
89
90
91
92 private FrontEndEvent getSuperFrontEndEvent()
93 {
94 if (!this.superFrontEndEventInitialized)
95 {
96 ((MetafacadeBase)this.superFrontEndEvent).setMetafacadeContext(this.getMetafacadeContext());
97 this.superFrontEndEventInitialized = true;
98 }
99 return this.superFrontEndEvent;
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.superFrontEndEventInitialized)
114 {
115 ((MetafacadeBase)this.superFrontEndEvent).resetMetafacadeContext(context);
116 }
117 }
118 }
119
120
121
122
123
124 public boolean isStrutsTriggerMetaType()
125 {
126 return true;
127 }
128
129
130
131
132
133
134
135 protected abstract String handleGetNotAllowedTitleKey();
136
137 private String __notAllowedTitleKey1a;
138 private boolean __notAllowedTitleKey1aSet = false;
139
140
141
142
143
144 public final String getNotAllowedTitleKey()
145 {
146 String notAllowedTitleKey1a = this.__notAllowedTitleKey1a;
147 if (!this.__notAllowedTitleKey1aSet)
148 {
149
150 notAllowedTitleKey1a = handleGetNotAllowedTitleKey();
151
152 this.__notAllowedTitleKey1a = notAllowedTitleKey1a;
153 if (isMetafacadePropertyCachingEnabled())
154 {
155 this.__notAllowedTitleKey1aSet = true;
156 }
157 }
158 return notAllowedTitleKey1a;
159 }
160
161
162
163
164
165 protected abstract String handleGetTitleKey();
166
167 private String __titleKey2a;
168 private boolean __titleKey2aSet = false;
169
170
171
172
173
174 public final String getTitleKey()
175 {
176 String titleKey2a = this.__titleKey2a;
177 if (!this.__titleKey2aSet)
178 {
179
180 titleKey2a = handleGetTitleKey();
181
182 this.__titleKey2a = titleKey2a;
183 if (isMetafacadePropertyCachingEnabled())
184 {
185 this.__titleKey2aSet = true;
186 }
187 }
188 return titleKey2a;
189 }
190
191
192
193
194
195 protected abstract String handleGetResetTitleKey();
196
197 private String __resetTitleKey3a;
198 private boolean __resetTitleKey3aSet = false;
199
200
201
202
203
204 public final String getResetTitleKey()
205 {
206 String resetTitleKey3a = this.__resetTitleKey3a;
207 if (!this.__resetTitleKey3aSet)
208 {
209
210 resetTitleKey3a = handleGetResetTitleKey();
211
212 this.__resetTitleKey3a = resetTitleKey3a;
213 if (isMetafacadePropertyCachingEnabled())
214 {
215 this.__resetTitleKey3aSet = true;
216 }
217 }
218 return resetTitleKey3a;
219 }
220
221
222
223
224
225 protected abstract String handleGetResetNotAllowedTitleKey();
226
227 private String __resetNotAllowedTitleKey4a;
228 private boolean __resetNotAllowedTitleKey4aSet = false;
229
230
231
232
233
234
235 public final String getResetNotAllowedTitleKey()
236 {
237 String resetNotAllowedTitleKey4a = this.__resetNotAllowedTitleKey4a;
238 if (!this.__resetNotAllowedTitleKey4aSet)
239 {
240
241 resetNotAllowedTitleKey4a = handleGetResetNotAllowedTitleKey();
242
243 this.__resetNotAllowedTitleKey4a = resetNotAllowedTitleKey4a;
244 if (isMetafacadePropertyCachingEnabled())
245 {
246 this.__resetNotAllowedTitleKey4aSet = true;
247 }
248 }
249 return resetNotAllowedTitleKey4a;
250 }
251
252
253
254
255
256 protected abstract String handleGetTriggerKey();
257
258 private String __triggerKey5a;
259 private boolean __triggerKey5aSet = false;
260
261
262
263
264
265 public final String getTriggerKey()
266 {
267 String triggerKey5a = this.__triggerKey5a;
268 if (!this.__triggerKey5aSet)
269 {
270
271 triggerKey5a = handleGetTriggerKey();
272
273 this.__triggerKey5a = triggerKey5a;
274 if (isMetafacadePropertyCachingEnabled())
275 {
276 this.__triggerKey5aSet = true;
277 }
278 }
279 return triggerKey5a;
280 }
281
282
283
284
285
286 protected abstract String handleGetTriggerValue();
287
288 private String __triggerValue6a;
289 private boolean __triggerValue6aSet = false;
290
291
292
293
294
295
296 public final String getTriggerValue()
297 {
298 String triggerValue6a = this.__triggerValue6a;
299 if (!this.__triggerValue6aSet)
300 {
301
302 triggerValue6a = handleGetTriggerValue();
303
304 this.__triggerValue6a = triggerValue6a;
305 if (isMetafacadePropertyCachingEnabled())
306 {
307 this.__triggerValue6aSet = true;
308 }
309 }
310 return triggerValue6a;
311 }
312
313
314
315
316
317 protected abstract String handleGetTitleValue();
318
319 private String __titleValue7a;
320 private boolean __titleValue7aSet = false;
321
322
323
324
325
326 public final String getTitleValue()
327 {
328 String titleValue7a = this.__titleValue7a;
329 if (!this.__titleValue7aSet)
330 {
331
332 titleValue7a = handleGetTitleValue();
333
334 this.__titleValue7a = titleValue7a;
335 if (isMetafacadePropertyCachingEnabled())
336 {
337 this.__titleValue7aSet = true;
338 }
339 }
340 return titleValue7a;
341 }
342
343
344
345
346
347 protected abstract String handleGetResetTitleValue();
348
349 private String __resetTitleValue8a;
350 private boolean __resetTitleValue8aSet = false;
351
352
353
354
355
356 public final String getResetTitleValue()
357 {
358 String resetTitleValue8a = this.__resetTitleValue8a;
359 if (!this.__resetTitleValue8aSet)
360 {
361
362 resetTitleValue8a = handleGetResetTitleValue();
363
364 this.__resetTitleValue8a = resetTitleValue8a;
365 if (isMetafacadePropertyCachingEnabled())
366 {
367 this.__resetTitleValue8aSet = true;
368 }
369 }
370 return resetTitleValue8a;
371 }
372
373
374
375
376
377 protected abstract String handleGetResetNotAllowedTitleValue();
378
379 private String __resetNotAllowedTitleValue9a;
380 private boolean __resetNotAllowedTitleValue9aSet = false;
381
382
383
384
385
386
387 public final String getResetNotAllowedTitleValue()
388 {
389 String resetNotAllowedTitleValue9a = this.__resetNotAllowedTitleValue9a;
390 if (!this.__resetNotAllowedTitleValue9aSet)
391 {
392
393 resetNotAllowedTitleValue9a = handleGetResetNotAllowedTitleValue();
394
395 this.__resetNotAllowedTitleValue9a = resetNotAllowedTitleValue9a;
396 if (isMetafacadePropertyCachingEnabled())
397 {
398 this.__resetNotAllowedTitleValue9aSet = true;
399 }
400 }
401 return resetNotAllowedTitleValue9a;
402 }
403
404
405
406
407
408 protected abstract String handleGetNotAllowedTitleValue();
409
410 private String __notAllowedTitleValue10a;
411 private boolean __notAllowedTitleValue10aSet = false;
412
413
414
415
416
417 public final String getNotAllowedTitleValue()
418 {
419 String notAllowedTitleValue10a = this.__notAllowedTitleValue10a;
420 if (!this.__notAllowedTitleValue10aSet)
421 {
422
423 notAllowedTitleValue10a = handleGetNotAllowedTitleValue();
424
425 this.__notAllowedTitleValue10a = notAllowedTitleValue10a;
426 if (isMetafacadePropertyCachingEnabled())
427 {
428 this.__notAllowedTitleValue10aSet = true;
429 }
430 }
431 return notAllowedTitleValue10a;
432 }
433
434
435
436
437
438 protected abstract boolean handleIsActionTrigger();
439
440 private boolean __actionTrigger11a;
441 private boolean __actionTrigger11aSet = false;
442
443
444
445
446
447
448 public final boolean isActionTrigger()
449 {
450 boolean actionTrigger11a = this.__actionTrigger11a;
451 if (!this.__actionTrigger11aSet)
452 {
453
454 actionTrigger11a = handleIsActionTrigger();
455
456 this.__actionTrigger11a = actionTrigger11a;
457 if (isMetafacadePropertyCachingEnabled())
458 {
459 this.__actionTrigger11aSet = true;
460 }
461 }
462 return actionTrigger11a;
463 }
464
465
466
467
468
469 protected abstract String handleGetResetMessageKey();
470
471 private String __resetMessageKey12a;
472 private boolean __resetMessageKey12aSet = false;
473
474
475
476
477
478 public final String getResetMessageKey()
479 {
480 String resetMessageKey12a = this.__resetMessageKey12a;
481 if (!this.__resetMessageKey12aSet)
482 {
483
484 resetMessageKey12a = handleGetResetMessageKey();
485
486 this.__resetMessageKey12a = resetMessageKey12a;
487 if (isMetafacadePropertyCachingEnabled())
488 {
489 this.__resetMessageKey12aSet = true;
490 }
491 }
492 return resetMessageKey12a;
493 }
494
495
496
497
498
499 protected abstract String handleGetResetMessageValue();
500
501 private String __resetMessageValue13a;
502 private boolean __resetMessageValue13aSet = false;
503
504
505
506
507
508 public final String getResetMessageValue()
509 {
510 String resetMessageValue13a = this.__resetMessageValue13a;
511 if (!this.__resetMessageValue13aSet)
512 {
513
514 resetMessageValue13a = handleGetResetMessageValue();
515
516 this.__resetMessageValue13a = resetMessageValue13a;
517 if (isMetafacadePropertyCachingEnabled())
518 {
519 this.__resetMessageValue13aSet = true;
520 }
521 }
522 return resetMessageValue13a;
523 }
524
525
526
527 private StrutsAction __getStrutsAction1r;
528 private boolean __getStrutsAction1rSet = false;
529
530
531
532
533
534 public final StrutsAction getStrutsAction()
535 {
536 StrutsAction getStrutsAction1r = this.__getStrutsAction1r;
537 if (!this.__getStrutsAction1rSet)
538 {
539
540 Object result = handleGetStrutsAction();
541 MetafacadeBase shieldedResult = this.shieldedElement(result);
542 try
543 {
544 getStrutsAction1r = (StrutsAction)shieldedResult;
545 }
546 catch (ClassCastException ex)
547 {
548
549 StrutsTriggerLogic.logger.warn("incorrect metafacade cast for StrutsTriggerLogic.getStrutsAction StrutsAction " + result + ": " + shieldedResult);
550 }
551
552 this.__getStrutsAction1r = getStrutsAction1r;
553 if (isMetafacadePropertyCachingEnabled())
554 {
555 this.__getStrutsAction1rSet = true;
556 }
557 }
558 return getStrutsAction1r;
559 }
560
561
562
563
564
565 protected abstract Object handleGetStrutsAction();
566
567
568
569
570
571 public boolean isFrontEndEventMetaType()
572 {
573 return true;
574 }
575
576
577
578
579
580 public boolean isEventFacadeMetaType()
581 {
582 return true;
583 }
584
585
586
587
588
589 public boolean isModelElementFacadeMetaType()
590 {
591 return true;
592 }
593
594
595
596
597
598
599 public Collection<ParameterFacade> getParameters()
600 {
601 return this.getSuperFrontEndEvent().getParameters();
602 }
603
604
605
606
607
608 public StateFacade getState()
609 {
610 return this.getSuperFrontEndEvent().getState();
611 }
612
613
614
615
616
617 public TransitionFacade getTransition()
618 {
619 return this.getSuperFrontEndEvent().getTransition();
620 }
621
622
623
624
625
626 public FrontEndAction getAction()
627 {
628 return this.getSuperFrontEndEvent().getAction();
629 }
630
631
632
633
634
635 public FrontEndControllerOperation getControllerCall()
636 {
637 return this.getSuperFrontEndEvent().getControllerCall();
638 }
639
640
641
642
643
644 public List<FrontEndControllerOperation> getControllerCalls()
645 {
646 return this.getSuperFrontEndEvent().getControllerCalls();
647 }
648
649
650
651
652
653 public boolean isContainedInFrontEndUseCase()
654 {
655 return this.getSuperFrontEndEvent().isContainedInFrontEndUseCase();
656 }
657
658
659
660
661
662 public void copyTaggedValues(ModelElementFacade element)
663 {
664 this.getSuperFrontEndEvent().copyTaggedValues(element);
665 }
666
667
668
669
670
671
672 public Object findTaggedValue(String tagName)
673 {
674 return this.getSuperFrontEndEvent().findTaggedValue(tagName);
675 }
676
677
678
679
680
681
682 public Collection<Object> findTaggedValues(String tagName)
683 {
684 return this.getSuperFrontEndEvent().findTaggedValues(tagName);
685 }
686
687
688
689
690
691
692
693 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
694 {
695 return this.getSuperFrontEndEvent().getBindedFullyQualifiedName(bindedElement);
696 }
697
698
699
700
701
702 public Collection<ConstraintFacade> getConstraints()
703 {
704 return this.getSuperFrontEndEvent().getConstraints();
705 }
706
707
708
709
710
711
712 public Collection<ConstraintFacade> getConstraints(String kind)
713 {
714 return this.getSuperFrontEndEvent().getConstraints(kind);
715 }
716
717
718
719
720
721
722
723 public String getDocumentation(String indent)
724 {
725 return this.getSuperFrontEndEvent().getDocumentation(indent);
726 }
727
728
729
730
731
732
733
734
735 public String getDocumentation(String indent, int lineLength)
736 {
737 return this.getSuperFrontEndEvent().getDocumentation(indent, lineLength);
738 }
739
740
741
742
743
744
745
746 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
747 {
748 return this.getSuperFrontEndEvent().getDocumentation(indent, lineLength, htmlStyle);
749 }
750
751
752
753
754
755 public String getFullyQualifiedName()
756 {
757 return this.getSuperFrontEndEvent().getFullyQualifiedName();
758 }
759
760
761
762
763
764
765
766
767 public String getFullyQualifiedName(boolean modelName)
768 {
769 return this.getSuperFrontEndEvent().getFullyQualifiedName(modelName);
770 }
771
772
773
774
775
776
777 public String getFullyQualifiedNamePath()
778 {
779 return this.getSuperFrontEndEvent().getFullyQualifiedNamePath();
780 }
781
782
783
784
785
786 public String getId()
787 {
788 return this.getSuperFrontEndEvent().getId();
789 }
790
791
792
793
794
795
796
797
798
799 public Collection<String> getKeywords()
800 {
801 return this.getSuperFrontEndEvent().getKeywords();
802 }
803
804
805
806
807
808 public String getLabel()
809 {
810 return this.getSuperFrontEndEvent().getLabel();
811 }
812
813
814
815
816
817 public TypeMappings getLanguageMappings()
818 {
819 return this.getSuperFrontEndEvent().getLanguageMappings();
820 }
821
822
823
824
825
826
827 public ModelFacade getModel()
828 {
829 return this.getSuperFrontEndEvent().getModel();
830 }
831
832
833
834
835
836 public String getName()
837 {
838 return this.getSuperFrontEndEvent().getName();
839 }
840
841
842
843
844
845 public ModelElementFacade getPackage()
846 {
847 return this.getSuperFrontEndEvent().getPackage();
848 }
849
850
851
852
853
854 public String getPackageName()
855 {
856 return this.getSuperFrontEndEvent().getPackageName();
857 }
858
859
860
861
862
863
864 public String getPackageName(boolean modelName)
865 {
866 return this.getSuperFrontEndEvent().getPackageName(modelName);
867 }
868
869
870
871
872
873 public String getPackagePath()
874 {
875 return this.getSuperFrontEndEvent().getPackagePath();
876 }
877
878
879
880
881
882
883
884
885 public String getQualifiedName()
886 {
887 return this.getSuperFrontEndEvent().getQualifiedName();
888 }
889
890
891
892
893
894 public PackageFacade getRootPackage()
895 {
896 return this.getSuperFrontEndEvent().getRootPackage();
897 }
898
899
900
901
902
903 public Collection<DependencyFacade> getSourceDependencies()
904 {
905 return this.getSuperFrontEndEvent().getSourceDependencies();
906 }
907
908
909
910
911
912
913 public StateMachineFacade getStateMachineContext()
914 {
915 return this.getSuperFrontEndEvent().getStateMachineContext();
916 }
917
918
919
920
921
922 public Collection<String> getStereotypeNames()
923 {
924 return this.getSuperFrontEndEvent().getStereotypeNames();
925 }
926
927
928
929
930
931 public Collection<StereotypeFacade> getStereotypes()
932 {
933 return this.getSuperFrontEndEvent().getStereotypes();
934 }
935
936
937
938
939
940 public Collection<TaggedValueFacade> getTaggedValues()
941 {
942 return this.getSuperFrontEndEvent().getTaggedValues();
943 }
944
945
946
947
948
949 public Collection<DependencyFacade> getTargetDependencies()
950 {
951 return this.getSuperFrontEndEvent().getTargetDependencies();
952 }
953
954
955
956
957
958 public Object getTemplateParameter(String parameterName)
959 {
960 return this.getSuperFrontEndEvent().getTemplateParameter(parameterName);
961 }
962
963
964
965
966
967 public Collection<TemplateParameterFacade> getTemplateParameters()
968 {
969 return this.getSuperFrontEndEvent().getTemplateParameters();
970 }
971
972
973
974
975
976
977 public String getVisibility()
978 {
979 return this.getSuperFrontEndEvent().getVisibility();
980 }
981
982
983
984
985
986
987 public boolean hasExactStereotype(String stereotypeName)
988 {
989 return this.getSuperFrontEndEvent().hasExactStereotype(stereotypeName);
990 }
991
992
993
994
995
996
997 public boolean hasKeyword(String keywordName)
998 {
999 return this.getSuperFrontEndEvent().hasKeyword(keywordName);
1000 }
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014 public boolean hasStereotype(String stereotypeName)
1015 {
1016 return this.getSuperFrontEndEvent().hasStereotype(stereotypeName);
1017 }
1018
1019
1020
1021
1022
1023
1024 public boolean isBindingDependenciesPresent()
1025 {
1026 return this.getSuperFrontEndEvent().isBindingDependenciesPresent();
1027 }
1028
1029
1030
1031
1032
1033 public boolean isConstraintsPresent()
1034 {
1035 return this.getSuperFrontEndEvent().isConstraintsPresent();
1036 }
1037
1038
1039
1040
1041
1042 public boolean isDocumentationPresent()
1043 {
1044 return this.getSuperFrontEndEvent().isDocumentationPresent();
1045 }
1046
1047
1048
1049
1050
1051 public boolean isReservedWord()
1052 {
1053 return this.getSuperFrontEndEvent().isReservedWord();
1054 }
1055
1056
1057
1058
1059
1060
1061 public boolean isTemplateParametersPresent()
1062 {
1063 return this.getSuperFrontEndEvent().isTemplateParametersPresent();
1064 }
1065
1066
1067
1068
1069
1070
1071
1072 public boolean isValidIdentifierName()
1073 {
1074 return this.getSuperFrontEndEvent().isValidIdentifierName();
1075 }
1076
1077
1078
1079
1080
1081
1082
1083 public String translateConstraint(String name, String translation)
1084 {
1085 return this.getSuperFrontEndEvent().translateConstraint(name, translation);
1086 }
1087
1088
1089
1090
1091
1092 public String[] translateConstraints(String translation)
1093 {
1094 return this.getSuperFrontEndEvent().translateConstraints(translation);
1095 }
1096
1097
1098
1099
1100
1101 public String[] translateConstraints(String kind, String translation)
1102 {
1103 return this.getSuperFrontEndEvent().translateConstraints(kind, translation);
1104 }
1105
1106
1107
1108
1109 @Override
1110 public void initialize()
1111 {
1112 this.getSuperFrontEndEvent().initialize();
1113 }
1114
1115
1116
1117
1118
1119 @Override
1120 public Object getValidationOwner()
1121 {
1122 Object owner = this.getSuperFrontEndEvent().getValidationOwner();
1123 return owner;
1124 }
1125
1126
1127
1128
1129
1130 @Override
1131 public String getValidationName()
1132 {
1133 String name = this.getSuperFrontEndEvent().getValidationName();
1134 return name;
1135 }
1136
1137
1138
1139
1140
1141
1142
1143
1144 @Override
1145 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
1146 {
1147 this.getSuperFrontEndEvent().validateInvariants(validationMessages);
1148 try
1149 {
1150 final Object contextElement = this.THIS();
1151 boolean constraintValid = OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(contextElement,"transition.exitingPage"))).booleanValue()?OCLCollections.notEmpty(OCLIntrospector.invoke(contextElement,"name")):true));
1152 if (!constraintValid)
1153 {
1154 validationMessages.add(
1155 new ModelValidationMessage(
1156 (MetafacadeBase)contextElement ,
1157 "org::andromda::cartridges::bpm4struts::metafacades::StrutsTrigger::each action trigger must have a name",
1158 "Every trigger modeled on a transition going out of a FrontEndView action state must have a name. These triggers are known as action-triggers."));
1159 }
1160 }
1161 catch (Throwable th)
1162 {
1163 Throwable cause = th.getCause();
1164 int depth = 0;
1165 while (cause != null && depth < 7)
1166 {
1167 th = cause;
1168 depth++;
1169 }
1170 logger.error("Error validating constraint 'org::andromda::cartridges::bpm4struts::metafacades::StrutsTrigger::each action trigger must have a name' ON "
1171 + this.THIS().toString() + ": " + th.getMessage(), th);
1172 }
1173 }
1174
1175
1176
1177
1178 private static final String NAME_PROPERTY = "name";
1179 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
1180
1181
1182
1183
1184 @Override
1185 public String toString()
1186 {
1187 final StringBuilder toString = new StringBuilder(this.getClass().getName());
1188 toString.append("[");
1189 try
1190 {
1191 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
1192 }
1193 catch (final Throwable tryAgain)
1194 {
1195 try
1196 {
1197 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
1198 }
1199 catch (final Throwable ignore)
1200 {
1201
1202 }
1203 }
1204 toString.append("]");
1205 return toString.toString();
1206 }
1207 }