1
2
3
4
5 package org.andromda.cartridges.ejb3.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.Destination;
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.Role;
26 import org.andromda.metafacades.uml.Service;
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
33
34
35
36
37
38
39 public abstract class EJB3MessageDrivenFacadeLogic
40 extends MetafacadeBase
41 implements EJB3MessageDrivenFacade
42 {
43
44
45
46
47 protected Object metaObject;
48
49
50
51
52
53 protected EJB3MessageDrivenFacadeLogic(Object metaObjectIn, String context)
54 {
55 super(metaObjectIn, getContext(context));
56 this.superService =
57 (Service)
58 MetafacadeFactory.getInstance().createFacadeImpl(
59 "org.andromda.metafacades.uml.Service",
60 metaObjectIn,
61 getContext(context));
62 this.metaObject = metaObjectIn;
63 }
64
65
66
67
68
69
70 private static String getContext(String context)
71 {
72 if (context == null)
73 {
74 context = "org.andromda.cartridges.ejb3.metafacades.EJB3MessageDrivenFacade";
75 }
76 return context;
77 }
78
79 private Service superService;
80 private boolean superServiceInitialized = false;
81
82
83
84
85
86 private Service getSuperService()
87 {
88 if (!this.superServiceInitialized)
89 {
90 ((MetafacadeBase)this.superService).setMetafacadeContext(this.getMetafacadeContext());
91 this.superServiceInitialized = true;
92 }
93 return this.superService;
94 }
95
96
97
98
99
100 @Override
101 public void resetMetafacadeContext(String context)
102 {
103 if (!this.contextRoot)
104 {
105 context = getContext(context);
106 setMetafacadeContext (context);
107 if (this.superServiceInitialized)
108 {
109 ((MetafacadeBase)this.superService).resetMetafacadeContext(context);
110 }
111 }
112 }
113
114
115
116
117
118 public boolean isEJB3MessageDrivenFacadeMetaType()
119 {
120 return true;
121 }
122
123
124
125
126
127
128
129 protected abstract String handleGetAcknowledgeMode();
130
131 private String __acknowledgeMode1a;
132 private boolean __acknowledgeMode1aSet = false;
133
134
135
136
137
138
139
140
141
142
143
144
145 public final String getAcknowledgeMode()
146 {
147 String acknowledgeMode1a = this.__acknowledgeMode1a;
148 if (!this.__acknowledgeMode1aSet)
149 {
150
151 acknowledgeMode1a = handleGetAcknowledgeMode();
152
153 this.__acknowledgeMode1a = acknowledgeMode1a;
154 if (isMetafacadePropertyCachingEnabled())
155 {
156 this.__acknowledgeMode1aSet = true;
157 }
158 }
159 return acknowledgeMode1a;
160 }
161
162
163
164
165
166 protected abstract String handleGetDestination();
167
168 private String __destination2a;
169 private boolean __destination2aSet = false;
170
171
172
173
174
175 public final String getDestination()
176 {
177 String destination2a = this.__destination2a;
178 if (!this.__destination2aSet)
179 {
180
181 destination2a = handleGetDestination();
182
183 this.__destination2a = destination2a;
184 if (isMetafacadePropertyCachingEnabled())
185 {
186 this.__destination2aSet = true;
187 }
188 }
189 return destination2a;
190 }
191
192
193
194
195
196 protected abstract String handleGetDestinationType();
197
198 private String __destinationType3a;
199 private boolean __destinationType3aSet = false;
200
201
202
203
204
205
206
207
208 public final String getDestinationType()
209 {
210 String destinationType3a = this.__destinationType3a;
211 if (!this.__destinationType3aSet)
212 {
213
214 destinationType3a = handleGetDestinationType();
215
216 this.__destinationType3a = destinationType3a;
217 if (isMetafacadePropertyCachingEnabled())
218 {
219 this.__destinationType3aSet = true;
220 }
221 }
222 return destinationType3a;
223 }
224
225
226
227
228
229 protected abstract String handleGetFullyQualifiedMessageDrivenImplementationName();
230
231 private String __fullyQualifiedMessageDrivenImplementationName4a;
232 private boolean __fullyQualifiedMessageDrivenImplementationName4aSet = false;
233
234
235
236
237
238 public final String getFullyQualifiedMessageDrivenImplementationName()
239 {
240 String fullyQualifiedMessageDrivenImplementationName4a = this.__fullyQualifiedMessageDrivenImplementationName4a;
241 if (!this.__fullyQualifiedMessageDrivenImplementationName4aSet)
242 {
243
244 fullyQualifiedMessageDrivenImplementationName4a = handleGetFullyQualifiedMessageDrivenImplementationName();
245
246 this.__fullyQualifiedMessageDrivenImplementationName4a = fullyQualifiedMessageDrivenImplementationName4a;
247 if (isMetafacadePropertyCachingEnabled())
248 {
249 this.__fullyQualifiedMessageDrivenImplementationName4aSet = true;
250 }
251 }
252 return fullyQualifiedMessageDrivenImplementationName4a;
253 }
254
255
256
257
258
259 protected abstract String handleGetFullyQualifiedMessageDrivenListenerName();
260
261 private String __fullyQualifiedMessageDrivenListenerName5a;
262 private boolean __fullyQualifiedMessageDrivenListenerName5aSet = false;
263
264
265
266
267
268 public final String getFullyQualifiedMessageDrivenListenerName()
269 {
270 String fullyQualifiedMessageDrivenListenerName5a = this.__fullyQualifiedMessageDrivenListenerName5a;
271 if (!this.__fullyQualifiedMessageDrivenListenerName5aSet)
272 {
273
274 fullyQualifiedMessageDrivenListenerName5a = handleGetFullyQualifiedMessageDrivenListenerName();
275
276 this.__fullyQualifiedMessageDrivenListenerName5a = fullyQualifiedMessageDrivenListenerName5a;
277 if (isMetafacadePropertyCachingEnabled())
278 {
279 this.__fullyQualifiedMessageDrivenListenerName5aSet = true;
280 }
281 }
282 return fullyQualifiedMessageDrivenListenerName5a;
283 }
284
285
286
287
288
289 protected abstract String handleGetFullyQualifiedMessageDrivenName();
290
291 private String __fullyQualifiedMessageDrivenName6a;
292 private boolean __fullyQualifiedMessageDrivenName6aSet = false;
293
294
295
296
297
298 public final String getFullyQualifiedMessageDrivenName()
299 {
300 String fullyQualifiedMessageDrivenName6a = this.__fullyQualifiedMessageDrivenName6a;
301 if (!this.__fullyQualifiedMessageDrivenName6aSet)
302 {
303
304 fullyQualifiedMessageDrivenName6a = handleGetFullyQualifiedMessageDrivenName();
305
306 this.__fullyQualifiedMessageDrivenName6a = fullyQualifiedMessageDrivenName6a;
307 if (isMetafacadePropertyCachingEnabled())
308 {
309 this.__fullyQualifiedMessageDrivenName6aSet = true;
310 }
311 }
312 return fullyQualifiedMessageDrivenName6a;
313 }
314
315
316
317
318
319 protected abstract String handleGetMessageDrivenImplementationName();
320
321 private String __messageDrivenImplementationName7a;
322 private boolean __messageDrivenImplementationName7aSet = false;
323
324
325
326
327
328 public final String getMessageDrivenImplementationName()
329 {
330 String messageDrivenImplementationName7a = this.__messageDrivenImplementationName7a;
331 if (!this.__messageDrivenImplementationName7aSet)
332 {
333
334 messageDrivenImplementationName7a = handleGetMessageDrivenImplementationName();
335
336 this.__messageDrivenImplementationName7a = messageDrivenImplementationName7a;
337 if (isMetafacadePropertyCachingEnabled())
338 {
339 this.__messageDrivenImplementationName7aSet = true;
340 }
341 }
342 return messageDrivenImplementationName7a;
343 }
344
345
346
347
348
349 protected abstract String handleGetMessageDrivenListenerName();
350
351 private String __messageDrivenListenerName8a;
352 private boolean __messageDrivenListenerName8aSet = false;
353
354
355
356
357
358 public final String getMessageDrivenListenerName()
359 {
360 String messageDrivenListenerName8a = this.__messageDrivenListenerName8a;
361 if (!this.__messageDrivenListenerName8aSet)
362 {
363
364 messageDrivenListenerName8a = handleGetMessageDrivenListenerName();
365
366 this.__messageDrivenListenerName8a = messageDrivenListenerName8a;
367 if (isMetafacadePropertyCachingEnabled())
368 {
369 this.__messageDrivenListenerName8aSet = true;
370 }
371 }
372 return messageDrivenListenerName8a;
373 }
374
375
376
377
378
379 protected abstract String handleGetMessageDrivenName();
380
381 private String __messageDrivenName9a;
382 private boolean __messageDrivenName9aSet = false;
383
384
385
386
387
388 public final String getMessageDrivenName()
389 {
390 String messageDrivenName9a = this.__messageDrivenName9a;
391 if (!this.__messageDrivenName9aSet)
392 {
393
394 messageDrivenName9a = handleGetMessageDrivenName();
395
396 this.__messageDrivenName9a = messageDrivenName9a;
397 if (isMetafacadePropertyCachingEnabled())
398 {
399 this.__messageDrivenName9aSet = true;
400 }
401 }
402 return messageDrivenName9a;
403 }
404
405
406
407
408
409 protected abstract String handleGetMessageSelector();
410
411 private String __messageSelector10a;
412 private boolean __messageSelector10aSet = false;
413
414
415
416
417
418
419 public final String getMessageSelector()
420 {
421 String messageSelector10a = this.__messageSelector10a;
422 if (!this.__messageSelector10aSet)
423 {
424
425 messageSelector10a = handleGetMessageSelector();
426
427 this.__messageSelector10a = messageSelector10a;
428 if (isMetafacadePropertyCachingEnabled())
429 {
430 this.__messageSelector10aSet = true;
431 }
432 }
433 return messageSelector10a;
434 }
435
436
437
438
439
440 protected abstract String handleGetRunAs();
441
442 private String __runAs11a;
443 private boolean __runAs11aSet = false;
444
445
446
447
448
449
450
451 public final String getRunAs()
452 {
453 String runAs11a = this.__runAs11a;
454 if (!this.__runAs11aSet)
455 {
456
457 runAs11a = handleGetRunAs();
458
459 this.__runAs11a = runAs11a;
460 if (isMetafacadePropertyCachingEnabled())
461 {
462 this.__runAs11aSet = true;
463 }
464 }
465 return runAs11a;
466 }
467
468
469
470
471
472 protected abstract String handleGetSubscriptionDurability();
473
474 private String __subscriptionDurability12a;
475 private boolean __subscriptionDurability12aSet = false;
476
477
478
479
480
481
482
483
484
485 public final String getSubscriptionDurability()
486 {
487 String subscriptionDurability12a = this.__subscriptionDurability12a;
488 if (!this.__subscriptionDurability12aSet)
489 {
490
491 subscriptionDurability12a = handleGetSubscriptionDurability();
492
493 this.__subscriptionDurability12a = subscriptionDurability12a;
494 if (isMetafacadePropertyCachingEnabled())
495 {
496 this.__subscriptionDurability12aSet = true;
497 }
498 }
499 return subscriptionDurability12a;
500 }
501
502
503
504
505
506 protected abstract String handleGetTransactionManagement();
507
508 private String __transactionManagement13a;
509 private boolean __transactionManagement13aSet = false;
510
511
512
513
514
515
516
517 public final String getTransactionManagement()
518 {
519 String transactionManagement13a = this.__transactionManagement13a;
520 if (!this.__transactionManagement13aSet)
521 {
522
523 transactionManagement13a = handleGetTransactionManagement();
524
525 this.__transactionManagement13a = transactionManagement13a;
526 if (isMetafacadePropertyCachingEnabled())
527 {
528 this.__transactionManagement13aSet = true;
529 }
530 }
531 return transactionManagement13a;
532 }
533
534
535
536
537
538 protected abstract boolean handleIsTransactionManagementBean();
539
540 private boolean __transactionManagementBean14a;
541 private boolean __transactionManagementBean14aSet = false;
542
543
544
545
546
547 public final boolean isTransactionManagementBean()
548 {
549 boolean transactionManagementBean14a = this.__transactionManagementBean14a;
550 if (!this.__transactionManagementBean14aSet)
551 {
552
553 transactionManagementBean14a = handleIsTransactionManagementBean();
554
555 this.__transactionManagementBean14a = transactionManagementBean14a;
556 if (isMetafacadePropertyCachingEnabled())
557 {
558 this.__transactionManagementBean14aSet = true;
559 }
560 }
561 return transactionManagementBean14a;
562 }
563
564
565
566
567
568 protected abstract String handleGetTransactionType();
569
570 private String __transactionType15a;
571 private boolean __transactionType15aSet = false;
572
573
574
575
576
577
578
579 public final String getTransactionType()
580 {
581 String transactionType15a = this.__transactionType15a;
582 if (!this.__transactionType15aSet)
583 {
584
585 transactionType15a = handleGetTransactionType();
586
587 this.__transactionType15a = transactionType15a;
588 if (isMetafacadePropertyCachingEnabled())
589 {
590 this.__transactionType15aSet = true;
591 }
592 }
593 return transactionType15a;
594 }
595
596
597
598
599
600 protected abstract boolean handleIsDestinationTypeQueue();
601
602 private boolean __destinationTypeQueue16a;
603 private boolean __destinationTypeQueue16aSet = false;
604
605
606
607
608
609 public final boolean isDestinationTypeQueue()
610 {
611 boolean destinationTypeQueue16a = this.__destinationTypeQueue16a;
612 if (!this.__destinationTypeQueue16aSet)
613 {
614
615 destinationTypeQueue16a = handleIsDestinationTypeQueue();
616
617 this.__destinationTypeQueue16a = destinationTypeQueue16a;
618 if (isMetafacadePropertyCachingEnabled())
619 {
620 this.__destinationTypeQueue16aSet = true;
621 }
622 }
623 return destinationTypeQueue16a;
624 }
625
626
627
628
629
630 protected abstract boolean handleIsDestinationTypeTopic();
631
632 private boolean __destinationTypeTopic17a;
633 private boolean __destinationTypeTopic17aSet = false;
634
635
636
637
638
639 public final boolean isDestinationTypeTopic()
640 {
641 boolean destinationTypeTopic17a = this.__destinationTypeTopic17a;
642 if (!this.__destinationTypeTopic17aSet)
643 {
644
645 destinationTypeTopic17a = handleIsDestinationTypeTopic();
646
647 this.__destinationTypeTopic17a = destinationTypeTopic17a;
648 if (isMetafacadePropertyCachingEnabled())
649 {
650 this.__destinationTypeTopic17aSet = true;
651 }
652 }
653 return destinationTypeTopic17a;
654 }
655
656
657
658
659
660 protected abstract int handleGetMinimumPoolSize();
661
662 private int __minimumPoolSize18a;
663 private boolean __minimumPoolSize18aSet = false;
664
665
666
667
668
669 public final int getMinimumPoolSize()
670 {
671 int minimumPoolSize18a = this.__minimumPoolSize18a;
672 if (!this.__minimumPoolSize18aSet)
673 {
674
675 minimumPoolSize18a = handleGetMinimumPoolSize();
676
677 this.__minimumPoolSize18a = minimumPoolSize18a;
678 if (isMetafacadePropertyCachingEnabled())
679 {
680 this.__minimumPoolSize18aSet = true;
681 }
682 }
683 return minimumPoolSize18a;
684 }
685
686
687
688
689
690 protected abstract boolean handleIsListenerEnabled();
691
692 private boolean __listenerEnabled19a;
693 private boolean __listenerEnabled19aSet = false;
694
695
696
697
698
699 public final boolean isListenerEnabled()
700 {
701 boolean listenerEnabled19a = this.__listenerEnabled19a;
702 if (!this.__listenerEnabled19aSet)
703 {
704
705 listenerEnabled19a = handleIsListenerEnabled();
706
707 this.__listenerEnabled19a = listenerEnabled19a;
708 if (isMetafacadePropertyCachingEnabled())
709 {
710 this.__listenerEnabled19aSet = true;
711 }
712 }
713 return listenerEnabled19a;
714 }
715
716
717
718
719
720 protected abstract Collection handleGetInterceptorReferences();
721
722 private Collection __interceptorReferences20a;
723 private boolean __interceptorReferences20aSet = false;
724
725
726
727
728
729
730 public final Collection getInterceptorReferences()
731 {
732 Collection interceptorReferences20a = this.__interceptorReferences20a;
733 if (!this.__interceptorReferences20aSet)
734 {
735
736 interceptorReferences20a = handleGetInterceptorReferences();
737
738 this.__interceptorReferences20a = interceptorReferences20a;
739 if (isMetafacadePropertyCachingEnabled())
740 {
741 this.__interceptorReferences20aSet = true;
742 }
743 }
744 return interceptorReferences20a;
745 }
746
747
748
749
750
751 protected abstract boolean handleIsExcludeDefaultInterceptors();
752
753 private boolean __excludeDefaultInterceptors21a;
754 private boolean __excludeDefaultInterceptors21aSet = false;
755
756
757
758
759
760
761 public final boolean isExcludeDefaultInterceptors()
762 {
763 boolean excludeDefaultInterceptors21a = this.__excludeDefaultInterceptors21a;
764 if (!this.__excludeDefaultInterceptors21aSet)
765 {
766
767 excludeDefaultInterceptors21a = handleIsExcludeDefaultInterceptors();
768
769 this.__excludeDefaultInterceptors21a = excludeDefaultInterceptors21a;
770 if (isMetafacadePropertyCachingEnabled())
771 {
772 this.__excludeDefaultInterceptors21aSet = true;
773 }
774 }
775 return excludeDefaultInterceptors21a;
776 }
777
778
779
780
781
782 protected abstract int handleGetMaximumPoolSize();
783
784 private int __maximumPoolSize22a;
785 private boolean __maximumPoolSize22aSet = false;
786
787
788
789
790
791 public final int getMaximumPoolSize()
792 {
793 int maximumPoolSize22a = this.__maximumPoolSize22a;
794 if (!this.__maximumPoolSize22aSet)
795 {
796
797 maximumPoolSize22a = handleGetMaximumPoolSize();
798
799 this.__maximumPoolSize22a = maximumPoolSize22a;
800 if (isMetafacadePropertyCachingEnabled())
801 {
802 this.__maximumPoolSize22aSet = true;
803 }
804 }
805 return maximumPoolSize22a;
806 }
807
808
809
810
811
812 protected abstract String handleGetTestPackageName();
813
814 private String __testPackageName23a;
815 private boolean __testPackageName23aSet = false;
816
817
818
819
820
821
822 public final String getTestPackageName()
823 {
824 String testPackageName23a = this.__testPackageName23a;
825 if (!this.__testPackageName23aSet)
826 {
827
828 testPackageName23a = handleGetTestPackageName();
829
830 this.__testPackageName23a = testPackageName23a;
831 if (isMetafacadePropertyCachingEnabled())
832 {
833 this.__testPackageName23aSet = true;
834 }
835 }
836 return testPackageName23a;
837 }
838
839
840
841
842
843 protected abstract String handleGetMessageDrivenTestName();
844
845 private String __messageDrivenTestName24a;
846 private boolean __messageDrivenTestName24aSet = false;
847
848
849
850
851
852 public final String getMessageDrivenTestName()
853 {
854 String messageDrivenTestName24a = this.__messageDrivenTestName24a;
855 if (!this.__messageDrivenTestName24aSet)
856 {
857
858 messageDrivenTestName24a = handleGetMessageDrivenTestName();
859
860 this.__messageDrivenTestName24a = messageDrivenTestName24a;
861 if (isMetafacadePropertyCachingEnabled())
862 {
863 this.__messageDrivenTestName24aSet = true;
864 }
865 }
866 return messageDrivenTestName24a;
867 }
868
869
870
871
872
873 protected abstract String handleGetFullyQualifiedMessageDrivenTestName();
874
875 private String __fullyQualifiedMessageDrivenTestName25a;
876 private boolean __fullyQualifiedMessageDrivenTestName25aSet = false;
877
878
879
880
881
882 public final String getFullyQualifiedMessageDrivenTestName()
883 {
884 String fullyQualifiedMessageDrivenTestName25a = this.__fullyQualifiedMessageDrivenTestName25a;
885 if (!this.__fullyQualifiedMessageDrivenTestName25aSet)
886 {
887
888 fullyQualifiedMessageDrivenTestName25a = handleGetFullyQualifiedMessageDrivenTestName();
889
890 this.__fullyQualifiedMessageDrivenTestName25a = fullyQualifiedMessageDrivenTestName25a;
891 if (isMetafacadePropertyCachingEnabled())
892 {
893 this.__fullyQualifiedMessageDrivenTestName25aSet = true;
894 }
895 }
896 return fullyQualifiedMessageDrivenTestName25a;
897 }
898
899
900
901
902
903 protected abstract boolean handleIsSubscriptionDurable();
904
905 private boolean __subscriptionDurable26a;
906 private boolean __subscriptionDurable26aSet = false;
907
908
909
910
911
912 public final boolean isSubscriptionDurable()
913 {
914 boolean subscriptionDurable26a = this.__subscriptionDurable26a;
915 if (!this.__subscriptionDurable26aSet)
916 {
917
918 subscriptionDurable26a = handleIsSubscriptionDurable();
919
920 this.__subscriptionDurable26a = subscriptionDurable26a;
921 if (isMetafacadePropertyCachingEnabled())
922 {
923 this.__subscriptionDurable26aSet = true;
924 }
925 }
926 return subscriptionDurable26a;
927 }
928
929
930
931
932
933 protected abstract boolean handleIsSubscriptionNonDurable();
934
935 private boolean __subscriptionNonDurable27a;
936 private boolean __subscriptionNonDurable27aSet = false;
937
938
939
940
941
942 public final boolean isSubscriptionNonDurable()
943 {
944 boolean subscriptionNonDurable27a = this.__subscriptionNonDurable27a;
945 if (!this.__subscriptionNonDurable27aSet)
946 {
947
948 subscriptionNonDurable27a = handleIsSubscriptionNonDurable();
949
950 this.__subscriptionNonDurable27a = subscriptionNonDurable27a;
951 if (isMetafacadePropertyCachingEnabled())
952 {
953 this.__subscriptionNonDurable27aSet = true;
954 }
955 }
956 return subscriptionNonDurable27a;
957 }
958
959
960
961
962
963 protected abstract String handleGetDurableSubscriptionId();
964
965 private String __durableSubscriptionId28a;
966 private boolean __durableSubscriptionId28aSet = false;
967
968
969
970
971
972 public final String getDurableSubscriptionId()
973 {
974 String durableSubscriptionId28a = this.__durableSubscriptionId28a;
975 if (!this.__durableSubscriptionId28aSet)
976 {
977
978 durableSubscriptionId28a = handleGetDurableSubscriptionId();
979
980 this.__durableSubscriptionId28a = durableSubscriptionId28a;
981 if (isMetafacadePropertyCachingEnabled())
982 {
983 this.__durableSubscriptionId28aSet = true;
984 }
985 }
986 return durableSubscriptionId28a;
987 }
988
989
990
991
992
993
994
995
996
997
998
999
1000 protected abstract String handleGetAttributesAsList(Collection attributes, boolean includeTypes, boolean includeNames);
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013 public String getAttributesAsList(Collection attributes, boolean includeTypes, boolean includeNames)
1014 {
1015
1016 String returnValue = handleGetAttributesAsList(attributes, includeTypes, includeNames);
1017
1018 return returnValue;
1019 }
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030 protected abstract Collection handleGetConstants(boolean follow);
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042 public Collection getConstants(boolean follow)
1043 {
1044
1045 Collection returnValue = handleGetConstants(follow);
1046
1047 return returnValue;
1048 }
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059 protected abstract Collection handleGetEnvironmentEntries(boolean follow);
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071 public Collection getEnvironmentEntries(boolean follow)
1072 {
1073
1074 Collection returnValue = handleGetEnvironmentEntries(follow);
1075
1076 return returnValue;
1077 }
1078
1079
1080
1081
1082
1083 public boolean isServiceMetaType()
1084 {
1085 return true;
1086 }
1087
1088
1089
1090
1091
1092 public boolean isClassifierFacadeMetaType()
1093 {
1094 return true;
1095 }
1096
1097
1098
1099
1100
1101 public boolean isGeneralizableElementFacadeMetaType()
1102 {
1103 return true;
1104 }
1105
1106
1107
1108
1109
1110 public boolean isModelElementFacadeMetaType()
1111 {
1112 return true;
1113 }
1114
1115
1116
1117
1118
1119
1120 public AttributeFacade findAttribute(String name)
1121 {
1122 return this.getSuperService().findAttribute(name);
1123 }
1124
1125
1126
1127
1128
1129 public Collection<ClassifierFacade> getAbstractions()
1130 {
1131 return this.getSuperService().getAbstractions();
1132 }
1133
1134
1135
1136
1137
1138
1139 public Collection<ClassifierFacade> getAllAssociatedClasses()
1140 {
1141 return this.getSuperService().getAllAssociatedClasses();
1142 }
1143
1144
1145
1146
1147
1148
1149 public Collection<ModelElementFacade> getAllProperties()
1150 {
1151 return this.getSuperService().getAllProperties();
1152 }
1153
1154
1155
1156
1157
1158
1159 public Collection<ModelElementFacade> getAllRequiredConstructorParameters()
1160 {
1161 return this.getSuperService().getAllRequiredConstructorParameters();
1162 }
1163
1164
1165
1166
1167
1168
1169 public ClassifierFacade getArray()
1170 {
1171 return this.getSuperService().getArray();
1172 }
1173
1174
1175
1176
1177
1178 public String getArrayName()
1179 {
1180 return this.getSuperService().getArrayName();
1181 }
1182
1183
1184
1185
1186
1187
1188 public Collection<ClassifierFacade> getAssociatedClasses()
1189 {
1190 return this.getSuperService().getAssociatedClasses();
1191 }
1192
1193
1194
1195
1196
1197 public List<AssociationEndFacade> getAssociationEnds()
1198 {
1199 return this.getSuperService().getAssociationEnds();
1200 }
1201
1202
1203
1204
1205
1206 public List<AttributeFacade> getAttributes()
1207 {
1208 return this.getSuperService().getAttributes();
1209 }
1210
1211
1212
1213
1214
1215
1216 public List<AttributeFacade> getAttributes(boolean follow)
1217 {
1218 return this.getSuperService().getAttributes(follow);
1219 }
1220
1221
1222
1223
1224
1225 public String getFullyQualifiedArrayName()
1226 {
1227 return this.getSuperService().getFullyQualifiedArrayName();
1228 }
1229
1230
1231
1232
1233
1234
1235
1236
1237 public Collection<OperationFacade> getImplementationOperations()
1238 {
1239 return this.getSuperService().getImplementationOperations();
1240 }
1241
1242
1243
1244
1245
1246 public String getImplementedInterfaceList()
1247 {
1248 return this.getSuperService().getImplementedInterfaceList();
1249 }
1250
1251
1252
1253
1254
1255 public Collection<AttributeFacade> getInstanceAttributes()
1256 {
1257 return this.getSuperService().getInstanceAttributes();
1258 }
1259
1260
1261
1262
1263
1264 public List<OperationFacade> getInstanceOperations()
1265 {
1266 return this.getSuperService().getInstanceOperations();
1267 }
1268
1269
1270
1271
1272
1273
1274 public Collection<ClassifierFacade> getInterfaceAbstractions()
1275 {
1276 return this.getSuperService().getInterfaceAbstractions();
1277 }
1278
1279
1280
1281
1282
1283
1284 public String getJavaNewString()
1285 {
1286 return this.getSuperService().getJavaNewString();
1287 }
1288
1289
1290
1291
1292
1293
1294 public String getJavaNullString()
1295 {
1296 return this.getSuperService().getJavaNullString();
1297 }
1298
1299
1300
1301
1302
1303 public Collection<AssociationEndFacade> getNavigableConnectingEnds()
1304 {
1305 return this.getSuperService().getNavigableConnectingEnds();
1306 }
1307
1308
1309
1310
1311
1312
1313 public List<AssociationEndFacade> getNavigableConnectingEnds(boolean follow)
1314 {
1315 return this.getSuperService().getNavigableConnectingEnds(follow);
1316 }
1317
1318
1319
1320
1321
1322
1323
1324 public ClassifierFacade getNonArray()
1325 {
1326 return this.getSuperService().getNonArray();
1327 }
1328
1329
1330
1331
1332
1333
1334
1335 public String getOperationCallFromAttributes()
1336 {
1337 return this.getSuperService().getOperationCallFromAttributes();
1338 }
1339
1340
1341
1342
1343
1344 public List<OperationFacade> getOperations()
1345 {
1346 return this.getSuperService().getOperations();
1347 }
1348
1349
1350
1351
1352
1353
1354 public List<ModelElementFacade> getProperties()
1355 {
1356 return this.getSuperService().getProperties();
1357 }
1358
1359
1360
1361
1362
1363
1364
1365 public List getProperties(boolean follow)
1366 {
1367 return this.getSuperService().getProperties(follow);
1368 }
1369
1370
1371
1372
1373
1374
1375 public Collection<ModelElementFacade> getRequiredConstructorParameters()
1376 {
1377 return this.getSuperService().getRequiredConstructorParameters();
1378 }
1379
1380
1381
1382
1383
1384 public long getSerialVersionUID()
1385 {
1386 return this.getSuperService().getSerialVersionUID();
1387 }
1388
1389
1390
1391
1392
1393 public Collection<AttributeFacade> getStaticAttributes()
1394 {
1395 return this.getSuperService().getStaticAttributes();
1396 }
1397
1398
1399
1400
1401
1402 public List<OperationFacade> getStaticOperations()
1403 {
1404 return this.getSuperService().getStaticOperations();
1405 }
1406
1407
1408
1409
1410
1411
1412 public ClassifierFacade getSuperClass()
1413 {
1414 return this.getSuperService().getSuperClass();
1415 }
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425 public String getWrapperName()
1426 {
1427 return this.getSuperService().getWrapperName();
1428 }
1429
1430
1431
1432
1433
1434 public boolean isAbstract()
1435 {
1436 return this.getSuperService().isAbstract();
1437 }
1438
1439
1440
1441
1442
1443 public boolean isArrayType()
1444 {
1445 return this.getSuperService().isArrayType();
1446 }
1447
1448
1449
1450
1451
1452 public boolean isAssociationClass()
1453 {
1454 return this.getSuperService().isAssociationClass();
1455 }
1456
1457
1458
1459
1460
1461 public boolean isBlobType()
1462 {
1463 return this.getSuperService().isBlobType();
1464 }
1465
1466
1467
1468
1469
1470 public boolean isBooleanType()
1471 {
1472 return this.getSuperService().isBooleanType();
1473 }
1474
1475
1476
1477
1478
1479 public boolean isCharacterType()
1480 {
1481 return this.getSuperService().isCharacterType();
1482 }
1483
1484
1485
1486
1487
1488 public boolean isClobType()
1489 {
1490 return this.getSuperService().isClobType();
1491 }
1492
1493
1494
1495
1496
1497 public boolean isCollectionType()
1498 {
1499 return this.getSuperService().isCollectionType();
1500 }
1501
1502
1503
1504
1505
1506
1507
1508 public boolean isDataType()
1509 {
1510 return this.getSuperService().isDataType();
1511 }
1512
1513
1514
1515
1516
1517 public boolean isDateType()
1518 {
1519 return this.getSuperService().isDateType();
1520 }
1521
1522
1523
1524
1525
1526 public boolean isDoubleType()
1527 {
1528 return this.getSuperService().isDoubleType();
1529 }
1530
1531
1532
1533
1534
1535 public boolean isEmbeddedValue()
1536 {
1537 return this.getSuperService().isEmbeddedValue();
1538 }
1539
1540
1541
1542
1543
1544 public boolean isEnumeration()
1545 {
1546 return this.getSuperService().isEnumeration();
1547 }
1548
1549
1550
1551
1552
1553 public boolean isFileType()
1554 {
1555 return this.getSuperService().isFileType();
1556 }
1557
1558
1559
1560
1561
1562 public boolean isFloatType()
1563 {
1564 return this.getSuperService().isFloatType();
1565 }
1566
1567
1568
1569
1570
1571 public boolean isIntegerType()
1572 {
1573 return this.getSuperService().isIntegerType();
1574 }
1575
1576
1577
1578
1579
1580 public boolean isInterface()
1581 {
1582 return this.getSuperService().isInterface();
1583 }
1584
1585
1586
1587
1588
1589 public boolean isLeaf()
1590 {
1591 return this.getSuperService().isLeaf();
1592 }
1593
1594
1595
1596
1597
1598 public boolean isListType()
1599 {
1600 return this.getSuperService().isListType();
1601 }
1602
1603
1604
1605
1606
1607 public boolean isLongType()
1608 {
1609 return this.getSuperService().isLongType();
1610 }
1611
1612
1613
1614
1615
1616 public boolean isMapType()
1617 {
1618 return this.getSuperService().isMapType();
1619 }
1620
1621
1622
1623
1624
1625 public boolean isPrimitive()
1626 {
1627 return this.getSuperService().isPrimitive();
1628 }
1629
1630
1631
1632
1633
1634 public boolean isSetType()
1635 {
1636 return this.getSuperService().isSetType();
1637 }
1638
1639
1640
1641
1642
1643 public boolean isStringType()
1644 {
1645 return this.getSuperService().isStringType();
1646 }
1647
1648
1649
1650
1651
1652 public boolean isTimeType()
1653 {
1654 return this.getSuperService().isTimeType();
1655 }
1656
1657
1658
1659
1660
1661 public boolean isWrappedPrimitive()
1662 {
1663 return this.getSuperService().isWrappedPrimitive();
1664 }
1665
1666
1667
1668
1669
1670
1671 public Object findTaggedValue(String tagName, boolean follow)
1672 {
1673 return this.getSuperService().findTaggedValue(tagName, follow);
1674 }
1675
1676
1677
1678
1679
1680 public Collection<GeneralizableElementFacade> getAllGeneralizations()
1681 {
1682 return this.getSuperService().getAllGeneralizations();
1683 }
1684
1685
1686
1687
1688
1689 public Collection<GeneralizableElementFacade> getAllSpecializations()
1690 {
1691 return this.getSuperService().getAllSpecializations();
1692 }
1693
1694
1695
1696
1697
1698 public GeneralizableElementFacade getGeneralization()
1699 {
1700 return this.getSuperService().getGeneralization();
1701 }
1702
1703
1704
1705
1706
1707
1708 public Collection<GeneralizationFacade> getGeneralizationLinks()
1709 {
1710 return this.getSuperService().getGeneralizationLinks();
1711 }
1712
1713
1714
1715
1716
1717 public String getGeneralizationList()
1718 {
1719 return this.getSuperService().getGeneralizationList();
1720 }
1721
1722
1723
1724
1725
1726
1727 public GeneralizableElementFacade getGeneralizationRoot()
1728 {
1729 return this.getSuperService().getGeneralizationRoot();
1730 }
1731
1732
1733
1734
1735
1736 public Collection<GeneralizableElementFacade> getGeneralizations()
1737 {
1738 return this.getSuperService().getGeneralizations();
1739 }
1740
1741
1742
1743
1744
1745 public Collection<GeneralizableElementFacade> getSpecializations()
1746 {
1747 return this.getSuperService().getSpecializations();
1748 }
1749
1750
1751
1752
1753
1754 public void copyTaggedValues(ModelElementFacade element)
1755 {
1756 this.getSuperService().copyTaggedValues(element);
1757 }
1758
1759
1760
1761
1762
1763
1764 public Object findTaggedValue(String tagName)
1765 {
1766 return this.getSuperService().findTaggedValue(tagName);
1767 }
1768
1769
1770
1771
1772
1773
1774 public Collection<Object> findTaggedValues(String tagName)
1775 {
1776 return this.getSuperService().findTaggedValues(tagName);
1777 }
1778
1779
1780
1781
1782
1783
1784
1785 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
1786 {
1787 return this.getSuperService().getBindedFullyQualifiedName(bindedElement);
1788 }
1789
1790
1791
1792
1793
1794 public Collection<ConstraintFacade> getConstraints()
1795 {
1796 return this.getSuperService().getConstraints();
1797 }
1798
1799
1800
1801
1802
1803
1804 public Collection<ConstraintFacade> getConstraints(String kind)
1805 {
1806 return this.getSuperService().getConstraints(kind);
1807 }
1808
1809
1810
1811
1812
1813
1814
1815 public String getDocumentation(String indent)
1816 {
1817 return this.getSuperService().getDocumentation(indent);
1818 }
1819
1820
1821
1822
1823
1824
1825
1826
1827 public String getDocumentation(String indent, int lineLength)
1828 {
1829 return this.getSuperService().getDocumentation(indent, lineLength);
1830 }
1831
1832
1833
1834
1835
1836
1837
1838 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
1839 {
1840 return this.getSuperService().getDocumentation(indent, lineLength, htmlStyle);
1841 }
1842
1843
1844
1845
1846
1847 public String getFullyQualifiedName()
1848 {
1849 return this.getSuperService().getFullyQualifiedName();
1850 }
1851
1852
1853
1854
1855
1856
1857
1858
1859 public String getFullyQualifiedName(boolean modelName)
1860 {
1861 return this.getSuperService().getFullyQualifiedName(modelName);
1862 }
1863
1864
1865
1866
1867
1868
1869 public String getFullyQualifiedNamePath()
1870 {
1871 return this.getSuperService().getFullyQualifiedNamePath();
1872 }
1873
1874
1875
1876
1877
1878 public String getId()
1879 {
1880 return this.getSuperService().getId();
1881 }
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891 public Collection<String> getKeywords()
1892 {
1893 return this.getSuperService().getKeywords();
1894 }
1895
1896
1897
1898
1899
1900 public String getLabel()
1901 {
1902 return this.getSuperService().getLabel();
1903 }
1904
1905
1906
1907
1908
1909 public TypeMappings getLanguageMappings()
1910 {
1911 return this.getSuperService().getLanguageMappings();
1912 }
1913
1914
1915
1916
1917
1918
1919 public ModelFacade getModel()
1920 {
1921 return this.getSuperService().getModel();
1922 }
1923
1924
1925
1926
1927
1928 public String getName()
1929 {
1930 return this.getSuperService().getName();
1931 }
1932
1933
1934
1935
1936
1937 public ModelElementFacade getPackage()
1938 {
1939 return this.getSuperService().getPackage();
1940 }
1941
1942
1943
1944
1945
1946 public String getPackageName()
1947 {
1948 return this.getSuperService().getPackageName();
1949 }
1950
1951
1952
1953
1954
1955
1956 public String getPackageName(boolean modelName)
1957 {
1958 return this.getSuperService().getPackageName(modelName);
1959 }
1960
1961
1962
1963
1964
1965 public String getPackagePath()
1966 {
1967 return this.getSuperService().getPackagePath();
1968 }
1969
1970
1971
1972
1973
1974
1975
1976
1977 public String getQualifiedName()
1978 {
1979 return this.getSuperService().getQualifiedName();
1980 }
1981
1982
1983
1984
1985
1986 public PackageFacade getRootPackage()
1987 {
1988 return this.getSuperService().getRootPackage();
1989 }
1990
1991
1992
1993
1994
1995 public Collection<DependencyFacade> getSourceDependencies()
1996 {
1997 return this.getSuperService().getSourceDependencies();
1998 }
1999
2000
2001
2002
2003
2004
2005 public StateMachineFacade getStateMachineContext()
2006 {
2007 return this.getSuperService().getStateMachineContext();
2008 }
2009
2010
2011
2012
2013
2014 public Collection<String> getStereotypeNames()
2015 {
2016 return this.getSuperService().getStereotypeNames();
2017 }
2018
2019
2020
2021
2022
2023 public Collection<StereotypeFacade> getStereotypes()
2024 {
2025 return this.getSuperService().getStereotypes();
2026 }
2027
2028
2029
2030
2031
2032 public Collection<TaggedValueFacade> getTaggedValues()
2033 {
2034 return this.getSuperService().getTaggedValues();
2035 }
2036
2037
2038
2039
2040
2041 public Collection<DependencyFacade> getTargetDependencies()
2042 {
2043 return this.getSuperService().getTargetDependencies();
2044 }
2045
2046
2047
2048
2049
2050 public Object getTemplateParameter(String parameterName)
2051 {
2052 return this.getSuperService().getTemplateParameter(parameterName);
2053 }
2054
2055
2056
2057
2058
2059 public Collection<TemplateParameterFacade> getTemplateParameters()
2060 {
2061 return this.getSuperService().getTemplateParameters();
2062 }
2063
2064
2065
2066
2067
2068
2069 public String getVisibility()
2070 {
2071 return this.getSuperService().getVisibility();
2072 }
2073
2074
2075
2076
2077
2078
2079 public boolean hasExactStereotype(String stereotypeName)
2080 {
2081 return this.getSuperService().hasExactStereotype(stereotypeName);
2082 }
2083
2084
2085
2086
2087
2088
2089 public boolean hasKeyword(String keywordName)
2090 {
2091 return this.getSuperService().hasKeyword(keywordName);
2092 }
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106 public boolean hasStereotype(String stereotypeName)
2107 {
2108 return this.getSuperService().hasStereotype(stereotypeName);
2109 }
2110
2111
2112
2113
2114
2115
2116 public boolean isBindingDependenciesPresent()
2117 {
2118 return this.getSuperService().isBindingDependenciesPresent();
2119 }
2120
2121
2122
2123
2124
2125 public boolean isConstraintsPresent()
2126 {
2127 return this.getSuperService().isConstraintsPresent();
2128 }
2129
2130
2131
2132
2133
2134 public boolean isDocumentationPresent()
2135 {
2136 return this.getSuperService().isDocumentationPresent();
2137 }
2138
2139
2140
2141
2142
2143 public boolean isReservedWord()
2144 {
2145 return this.getSuperService().isReservedWord();
2146 }
2147
2148
2149
2150
2151
2152
2153 public boolean isTemplateParametersPresent()
2154 {
2155 return this.getSuperService().isTemplateParametersPresent();
2156 }
2157
2158
2159
2160
2161
2162
2163
2164 public boolean isValidIdentifierName()
2165 {
2166 return this.getSuperService().isValidIdentifierName();
2167 }
2168
2169
2170
2171
2172
2173
2174
2175 public String translateConstraint(String name, String translation)
2176 {
2177 return this.getSuperService().translateConstraint(name, translation);
2178 }
2179
2180
2181
2182
2183
2184 public String[] translateConstraints(String translation)
2185 {
2186 return this.getSuperService().translateConstraints(translation);
2187 }
2188
2189
2190
2191
2192
2193 public String[] translateConstraints(String kind, String translation)
2194 {
2195 return this.getSuperService().translateConstraints(kind, translation);
2196 }
2197
2198
2199
2200
2201
2202 public Collection<DependencyFacade> getAllEntityReferences()
2203 {
2204 return this.getSuperService().getAllEntityReferences();
2205 }
2206
2207
2208
2209
2210
2211 public Collection<Destination> getAllMessagingDestinations()
2212 {
2213 return this.getSuperService().getAllMessagingDestinations();
2214 }
2215
2216
2217
2218
2219
2220
2221 public Collection<Role> getAllRoles()
2222 {
2223 return this.getSuperService().getAllRoles();
2224 }
2225
2226
2227
2228
2229
2230 public Collection<DependencyFacade> getAllServiceReferences()
2231 {
2232 return this.getSuperService().getAllServiceReferences();
2233 }
2234
2235
2236
2237
2238
2239 public Collection<DependencyFacade> getEntityReferences()
2240 {
2241 return this.getSuperService().getEntityReferences();
2242 }
2243
2244
2245
2246
2247
2248 public Collection<Destination> getMessagingDestinations()
2249 {
2250 return this.getSuperService().getMessagingDestinations();
2251 }
2252
2253
2254
2255
2256
2257 public Collection<Role> getRoles()
2258 {
2259 return this.getSuperService().getRoles();
2260 }
2261
2262
2263
2264
2265
2266 public Collection<DependencyFacade> getServiceReferences()
2267 {
2268 return this.getSuperService().getServiceReferences();
2269 }
2270
2271
2272
2273
2274 @Override
2275 public void initialize()
2276 {
2277 this.getSuperService().initialize();
2278 }
2279
2280
2281
2282
2283
2284 @Override
2285 public Object getValidationOwner()
2286 {
2287 Object owner = this.getSuperService().getValidationOwner();
2288 return owner;
2289 }
2290
2291
2292
2293
2294
2295 @Override
2296 public String getValidationName()
2297 {
2298 String name = this.getSuperService().getValidationName();
2299 return name;
2300 }
2301
2302
2303
2304
2305
2306 @Override
2307 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
2308 {
2309 this.getSuperService().validateInvariants(validationMessages);
2310 }
2311
2312
2313
2314
2315 private static final String NAME_PROPERTY = "name";
2316 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
2317
2318
2319
2320
2321 @Override
2322 public String toString()
2323 {
2324 final StringBuilder toString = new StringBuilder(this.getClass().getName());
2325 toString.append("[");
2326 try
2327 {
2328 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
2329 }
2330 catch (final Throwable tryAgain)
2331 {
2332 try
2333 {
2334 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
2335 }
2336 catch (final Throwable ignore)
2337 {
2338
2339 }
2340 }
2341 toString.append("]");
2342 return toString.toString();
2343 }
2344 }