1
2
3
4
5 package org.andromda.cartridges.spring.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 import org.andromda.translation.ocl.validation.OCLCollections;
33 import org.andromda.translation.ocl.validation.OCLExpressions;
34 import org.andromda.translation.ocl.validation.OCLIntrospector;
35 import org.andromda.translation.ocl.validation.OCLResultEnsurer;
36 import org.apache.commons.collections.Predicate;
37 import org.apache.log4j.Logger;
38
39
40
41
42
43
44
45 public abstract class SpringServiceLogic
46 extends MetafacadeBase
47 implements SpringService
48 {
49
50
51
52
53 protected Object metaObject;
54
55
56
57
58
59 protected SpringServiceLogic(Object metaObjectIn, String context)
60 {
61 super(metaObjectIn, getContext(context));
62 this.superService =
63 (Service)
64 MetafacadeFactory.getInstance().createFacadeImpl(
65 "org.andromda.metafacades.uml.Service",
66 metaObjectIn,
67 getContext(context));
68 this.metaObject = metaObjectIn;
69 }
70
71
72
73
74 private static final Logger logger = Logger.getLogger(SpringServiceLogic.class);
75
76
77
78
79
80
81 private static String getContext(String context)
82 {
83 if (context == null)
84 {
85 context = "org.andromda.cartridges.spring.metafacades.SpringService";
86 }
87 return context;
88 }
89
90 private Service superService;
91 private boolean superServiceInitialized = false;
92
93
94
95
96
97 private Service getSuperService()
98 {
99 if (!this.superServiceInitialized)
100 {
101 ((MetafacadeBase)this.superService).setMetafacadeContext(this.getMetafacadeContext());
102 this.superServiceInitialized = true;
103 }
104 return this.superService;
105 }
106
107
108
109
110
111 @Override
112 public void resetMetafacadeContext(String context)
113 {
114 if (!this.contextRoot)
115 {
116 context = getContext(context);
117 setMetafacadeContext (context);
118 if (this.superServiceInitialized)
119 {
120 ((MetafacadeBase)this.superService).resetMetafacadeContext(context);
121 }
122 }
123 }
124
125
126
127
128
129 public boolean isSpringServiceMetaType()
130 {
131 return true;
132 }
133
134
135
136
137
138
139
140 protected abstract String handleGetWebServiceDelegatorName();
141
142 private String __webServiceDelegatorName1a;
143 private boolean __webServiceDelegatorName1aSet = false;
144
145
146
147
148
149 public final String getWebServiceDelegatorName()
150 {
151 String webServiceDelegatorName1a = this.__webServiceDelegatorName1a;
152 if (!this.__webServiceDelegatorName1aSet)
153 {
154
155 webServiceDelegatorName1a = handleGetWebServiceDelegatorName();
156
157 this.__webServiceDelegatorName1a = webServiceDelegatorName1a;
158 if (isMetafacadePropertyCachingEnabled())
159 {
160 this.__webServiceDelegatorName1aSet = true;
161 }
162 }
163 return webServiceDelegatorName1a;
164 }
165
166
167
168
169
170 protected abstract String handleGetFullyQualifiedWebServiceDelegatorName();
171
172 private String __fullyQualifiedWebServiceDelegatorName2a;
173 private boolean __fullyQualifiedWebServiceDelegatorName2aSet = false;
174
175
176
177
178
179 public final String getFullyQualifiedWebServiceDelegatorName()
180 {
181 String fullyQualifiedWebServiceDelegatorName2a = this.__fullyQualifiedWebServiceDelegatorName2a;
182 if (!this.__fullyQualifiedWebServiceDelegatorName2aSet)
183 {
184
185 fullyQualifiedWebServiceDelegatorName2a = handleGetFullyQualifiedWebServiceDelegatorName();
186
187 this.__fullyQualifiedWebServiceDelegatorName2a = fullyQualifiedWebServiceDelegatorName2a;
188 if (isMetafacadePropertyCachingEnabled())
189 {
190 this.__fullyQualifiedWebServiceDelegatorName2aSet = true;
191 }
192 }
193 return fullyQualifiedWebServiceDelegatorName2a;
194 }
195
196
197
198
199
200 protected abstract String handleGetImplementationName();
201
202 private String __implementationName3a;
203 private boolean __implementationName3aSet = false;
204
205
206
207
208
209 public final String getImplementationName()
210 {
211 String implementationName3a = this.__implementationName3a;
212 if (!this.__implementationName3aSet)
213 {
214
215 implementationName3a = handleGetImplementationName();
216
217 this.__implementationName3a = implementationName3a;
218 if (isMetafacadePropertyCachingEnabled())
219 {
220 this.__implementationName3aSet = true;
221 }
222 }
223 return implementationName3a;
224 }
225
226
227
228
229
230 protected abstract String handleGetFullyQualifiedImplementationName();
231
232 private String __fullyQualifiedImplementationName4a;
233 private boolean __fullyQualifiedImplementationName4aSet = false;
234
235
236
237
238
239 public final String getFullyQualifiedImplementationName()
240 {
241 String fullyQualifiedImplementationName4a = this.__fullyQualifiedImplementationName4a;
242 if (!this.__fullyQualifiedImplementationName4aSet)
243 {
244
245 fullyQualifiedImplementationName4a = handleGetFullyQualifiedImplementationName();
246
247 this.__fullyQualifiedImplementationName4a = fullyQualifiedImplementationName4a;
248 if (isMetafacadePropertyCachingEnabled())
249 {
250 this.__fullyQualifiedImplementationName4aSet = true;
251 }
252 }
253 return fullyQualifiedImplementationName4a;
254 }
255
256
257
258
259
260 protected abstract String handleGetBaseName();
261
262 private String __baseName5a;
263 private boolean __baseName5aSet = false;
264
265
266
267
268
269 public final String getBaseName()
270 {
271 String baseName5a = this.__baseName5a;
272 if (!this.__baseName5aSet)
273 {
274
275 baseName5a = handleGetBaseName();
276
277 this.__baseName5a = baseName5a;
278 if (isMetafacadePropertyCachingEnabled())
279 {
280 this.__baseName5aSet = true;
281 }
282 }
283 return baseName5a;
284 }
285
286
287
288
289
290 protected abstract String handleGetBeanName();
291
292 private String __beanName6a;
293 private boolean __beanName6aSet = false;
294
295
296
297
298
299 public final String getBeanName()
300 {
301 String beanName6a = this.__beanName6a;
302 if (!this.__beanName6aSet)
303 {
304
305 beanName6a = handleGetBeanName();
306
307 this.__beanName6a = beanName6a;
308 if (isMetafacadePropertyCachingEnabled())
309 {
310 this.__beanName6aSet = true;
311 }
312 }
313 return beanName6a;
314 }
315
316
317
318
319
320 protected abstract boolean handleIsWebService();
321
322 private boolean __webService7a;
323 private boolean __webService7aSet = false;
324
325
326
327
328
329 public final boolean isWebService()
330 {
331 boolean webService7a = this.__webService7a;
332 if (!this.__webService7aSet)
333 {
334
335 webService7a = handleIsWebService();
336
337 this.__webService7a = webService7a;
338 if (isMetafacadePropertyCachingEnabled())
339 {
340 this.__webService7aSet = true;
341 }
342 }
343 return webService7a;
344 }
345
346
347
348
349
350 protected abstract String handleGetEjbJndiName();
351
352 private String __ejbJndiName8a;
353 private boolean __ejbJndiName8aSet = false;
354
355
356
357
358
359 public final String getEjbJndiName()
360 {
361 String ejbJndiName8a = this.__ejbJndiName8a;
362 if (!this.__ejbJndiName8aSet)
363 {
364
365 ejbJndiName8a = handleGetEjbJndiName();
366
367 this.__ejbJndiName8a = ejbJndiName8a;
368 if (isMetafacadePropertyCachingEnabled())
369 {
370 this.__ejbJndiName8aSet = true;
371 }
372 }
373 return ejbJndiName8a;
374 }
375
376
377
378
379
380 protected abstract String handleGetEjbImplementationName();
381
382 private String __ejbImplementationName9a;
383 private boolean __ejbImplementationName9aSet = false;
384
385
386
387
388
389 public final String getEjbImplementationName()
390 {
391 String ejbImplementationName9a = this.__ejbImplementationName9a;
392 if (!this.__ejbImplementationName9aSet)
393 {
394
395 ejbImplementationName9a = handleGetEjbImplementationName();
396
397 this.__ejbImplementationName9a = ejbImplementationName9a;
398 if (isMetafacadePropertyCachingEnabled())
399 {
400 this.__ejbImplementationName9aSet = true;
401 }
402 }
403 return ejbImplementationName9a;
404 }
405
406
407
408
409
410 protected abstract String handleGetFullyQualifiedBaseName();
411
412 private String __fullyQualifiedBaseName10a;
413 private boolean __fullyQualifiedBaseName10aSet = false;
414
415
416
417
418
419 public final String getFullyQualifiedBaseName()
420 {
421 String fullyQualifiedBaseName10a = this.__fullyQualifiedBaseName10a;
422 if (!this.__fullyQualifiedBaseName10aSet)
423 {
424
425 fullyQualifiedBaseName10a = handleGetFullyQualifiedBaseName();
426
427 this.__fullyQualifiedBaseName10a = fullyQualifiedBaseName10a;
428 if (isMetafacadePropertyCachingEnabled())
429 {
430 this.__fullyQualifiedBaseName10aSet = true;
431 }
432 }
433 return fullyQualifiedBaseName10a;
434 }
435
436
437
438
439
440 protected abstract String handleGetFullyQualifiedEjbName();
441
442 private String __fullyQualifiedEjbName11a;
443 private boolean __fullyQualifiedEjbName11aSet = false;
444
445
446
447
448
449
450 public final String getFullyQualifiedEjbName()
451 {
452 String fullyQualifiedEjbName11a = this.__fullyQualifiedEjbName11a;
453 if (!this.__fullyQualifiedEjbName11aSet)
454 {
455
456 fullyQualifiedEjbName11a = handleGetFullyQualifiedEjbName();
457
458 this.__fullyQualifiedEjbName11a = fullyQualifiedEjbName11a;
459 if (isMetafacadePropertyCachingEnabled())
460 {
461 this.__fullyQualifiedEjbName11aSet = true;
462 }
463 }
464 return fullyQualifiedEjbName11a;
465 }
466
467
468
469
470
471 protected abstract String handleGetEjbPackageName();
472
473 private String __ejbPackageName12a;
474 private boolean __ejbPackageName12aSet = false;
475
476
477
478
479
480
481
482 public final String getEjbPackageName()
483 {
484 String ejbPackageName12a = this.__ejbPackageName12a;
485 if (!this.__ejbPackageName12aSet)
486 {
487
488 ejbPackageName12a = handleGetEjbPackageName();
489
490 this.__ejbPackageName12a = ejbPackageName12a;
491 if (isMetafacadePropertyCachingEnabled())
492 {
493 this.__ejbPackageName12aSet = true;
494 }
495 }
496 return ejbPackageName12a;
497 }
498
499
500
501
502
503 protected abstract String handleGetFullyQualifiedEjbImplementationName();
504
505 private String __fullyQualifiedEjbImplementationName13a;
506 private boolean __fullyQualifiedEjbImplementationName13aSet = false;
507
508
509
510
511
512 public final String getFullyQualifiedEjbImplementationName()
513 {
514 String fullyQualifiedEjbImplementationName13a = this.__fullyQualifiedEjbImplementationName13a;
515 if (!this.__fullyQualifiedEjbImplementationName13aSet)
516 {
517
518 fullyQualifiedEjbImplementationName13a = handleGetFullyQualifiedEjbImplementationName();
519
520 this.__fullyQualifiedEjbImplementationName13a = fullyQualifiedEjbImplementationName13a;
521 if (isMetafacadePropertyCachingEnabled())
522 {
523 this.__fullyQualifiedEjbImplementationName13aSet = true;
524 }
525 }
526 return fullyQualifiedEjbImplementationName13a;
527 }
528
529
530
531
532
533 protected abstract String handleGetEjbPackageNamePath();
534
535 private String __ejbPackageNamePath14a;
536 private boolean __ejbPackageNamePath14aSet = false;
537
538
539
540
541
542 public final String getEjbPackageNamePath()
543 {
544 String ejbPackageNamePath14a = this.__ejbPackageNamePath14a;
545 if (!this.__ejbPackageNamePath14aSet)
546 {
547
548 ejbPackageNamePath14a = handleGetEjbPackageNamePath();
549
550 this.__ejbPackageNamePath14a = ejbPackageNamePath14a;
551 if (isMetafacadePropertyCachingEnabled())
552 {
553 this.__ejbPackageNamePath14aSet = true;
554 }
555 }
556 return ejbPackageNamePath14a;
557 }
558
559
560
561
562
563 protected abstract String handleGetDefaultExceptionName();
564
565 private String __defaultExceptionName15a;
566 private boolean __defaultExceptionName15aSet = false;
567
568
569
570
571
572 public final String getDefaultExceptionName()
573 {
574 String defaultExceptionName15a = this.__defaultExceptionName15a;
575 if (!this.__defaultExceptionName15aSet)
576 {
577
578 defaultExceptionName15a = handleGetDefaultExceptionName();
579
580 this.__defaultExceptionName15a = defaultExceptionName15a;
581 if (isMetafacadePropertyCachingEnabled())
582 {
583 this.__defaultExceptionName15aSet = true;
584 }
585 }
586 return defaultExceptionName15a;
587 }
588
589
590
591
592
593 protected abstract String handleGetFullyQualifiedDefaultExceptionName();
594
595 private String __fullyQualifiedDefaultExceptionName16a;
596 private boolean __fullyQualifiedDefaultExceptionName16aSet = false;
597
598
599
600
601
602 public final String getFullyQualifiedDefaultExceptionName()
603 {
604 String fullyQualifiedDefaultExceptionName16a = this.__fullyQualifiedDefaultExceptionName16a;
605 if (!this.__fullyQualifiedDefaultExceptionName16aSet)
606 {
607
608 fullyQualifiedDefaultExceptionName16a = handleGetFullyQualifiedDefaultExceptionName();
609
610 this.__fullyQualifiedDefaultExceptionName16a = fullyQualifiedDefaultExceptionName16a;
611 if (isMetafacadePropertyCachingEnabled())
612 {
613 this.__fullyQualifiedDefaultExceptionName16aSet = true;
614 }
615 }
616 return fullyQualifiedDefaultExceptionName16a;
617 }
618
619
620
621
622
623 protected abstract boolean handleIsAllowDefaultServiceException();
624
625 private boolean __allowDefaultServiceException17a;
626 private boolean __allowDefaultServiceException17aSet = false;
627
628
629
630
631
632 public final boolean isAllowDefaultServiceException()
633 {
634 boolean allowDefaultServiceException17a = this.__allowDefaultServiceException17a;
635 if (!this.__allowDefaultServiceException17aSet)
636 {
637
638 allowDefaultServiceException17a = handleIsAllowDefaultServiceException();
639
640 this.__allowDefaultServiceException17a = allowDefaultServiceException17a;
641 if (isMetafacadePropertyCachingEnabled())
642 {
643 this.__allowDefaultServiceException17aSet = true;
644 }
645 }
646 return allowDefaultServiceException17a;
647 }
648
649
650
651
652
653 protected abstract String handleGetRemotePort();
654
655 private String __remotePort18a;
656 private boolean __remotePort18aSet = false;
657
658
659
660
661
662 public final String getRemotePort()
663 {
664 String remotePort18a = this.__remotePort18a;
665 if (!this.__remotePort18aSet)
666 {
667
668 remotePort18a = handleGetRemotePort();
669
670 this.__remotePort18a = remotePort18a;
671 if (isMetafacadePropertyCachingEnabled())
672 {
673 this.__remotePort18aSet = true;
674 }
675 }
676 return remotePort18a;
677 }
678
679
680
681
682
683 protected abstract String handleGetRemoteUrl();
684
685 private String __remoteUrl19a;
686 private boolean __remoteUrl19aSet = false;
687
688
689
690
691
692 public final String getRemoteUrl()
693 {
694 String remoteUrl19a = this.__remoteUrl19a;
695 if (!this.__remoteUrl19aSet)
696 {
697
698 remoteUrl19a = handleGetRemoteUrl();
699
700 this.__remoteUrl19a = remoteUrl19a;
701 if (isMetafacadePropertyCachingEnabled())
702 {
703 this.__remoteUrl19aSet = true;
704 }
705 }
706 return remoteUrl19a;
707 }
708
709
710
711
712
713 protected abstract boolean handleIsRemotable();
714
715 private boolean __remotable20a;
716 private boolean __remotable20aSet = false;
717
718
719
720
721
722 public final boolean isRemotable()
723 {
724 boolean remotable20a = this.__remotable20a;
725 if (!this.__remotable20aSet)
726 {
727
728 remotable20a = handleIsRemotable();
729
730 this.__remotable20a = remotable20a;
731 if (isMetafacadePropertyCachingEnabled())
732 {
733 this.__remotable20aSet = true;
734 }
735 }
736 return remotable20a;
737 }
738
739
740
741
742
743 protected abstract boolean handleIsRemotingTypeRmi();
744
745 private boolean __remotingTypeRmi21a;
746 private boolean __remotingTypeRmi21aSet = false;
747
748
749
750
751
752 public final boolean isRemotingTypeRmi()
753 {
754 boolean remotingTypeRmi21a = this.__remotingTypeRmi21a;
755 if (!this.__remotingTypeRmi21aSet)
756 {
757
758 remotingTypeRmi21a = handleIsRemotingTypeRmi();
759
760 this.__remotingTypeRmi21a = remotingTypeRmi21a;
761 if (isMetafacadePropertyCachingEnabled())
762 {
763 this.__remotingTypeRmi21aSet = true;
764 }
765 }
766 return remotingTypeRmi21a;
767 }
768
769
770
771
772
773 protected abstract boolean handleIsRemotingTypeBurlap();
774
775 private boolean __remotingTypeBurlap22a;
776 private boolean __remotingTypeBurlap22aSet = false;
777
778
779
780
781
782 public final boolean isRemotingTypeBurlap()
783 {
784 boolean remotingTypeBurlap22a = this.__remotingTypeBurlap22a;
785 if (!this.__remotingTypeBurlap22aSet)
786 {
787
788 remotingTypeBurlap22a = handleIsRemotingTypeBurlap();
789
790 this.__remotingTypeBurlap22a = remotingTypeBurlap22a;
791 if (isMetafacadePropertyCachingEnabled())
792 {
793 this.__remotingTypeBurlap22aSet = true;
794 }
795 }
796 return remotingTypeBurlap22a;
797 }
798
799
800
801
802
803 protected abstract boolean handleIsRemotingTypeHessian();
804
805 private boolean __remotingTypeHessian23a;
806 private boolean __remotingTypeHessian23aSet = false;
807
808
809
810
811
812 public final boolean isRemotingTypeHessian()
813 {
814 boolean remotingTypeHessian23a = this.__remotingTypeHessian23a;
815 if (!this.__remotingTypeHessian23aSet)
816 {
817
818 remotingTypeHessian23a = handleIsRemotingTypeHessian();
819
820 this.__remotingTypeHessian23a = remotingTypeHessian23a;
821 if (isMetafacadePropertyCachingEnabled())
822 {
823 this.__remotingTypeHessian23aSet = true;
824 }
825 }
826 return remotingTypeHessian23a;
827 }
828
829
830
831
832
833 protected abstract boolean handleIsRemotingTypeHttpInvoker();
834
835 private boolean __remotingTypeHttpInvoker24a;
836 private boolean __remotingTypeHttpInvoker24aSet = false;
837
838
839
840
841
842 public final boolean isRemotingTypeHttpInvoker()
843 {
844 boolean remotingTypeHttpInvoker24a = this.__remotingTypeHttpInvoker24a;
845 if (!this.__remotingTypeHttpInvoker24aSet)
846 {
847
848 remotingTypeHttpInvoker24a = handleIsRemotingTypeHttpInvoker();
849
850 this.__remotingTypeHttpInvoker24a = remotingTypeHttpInvoker24a;
851 if (isMetafacadePropertyCachingEnabled())
852 {
853 this.__remotingTypeHttpInvoker24aSet = true;
854 }
855 }
856 return remotingTypeHttpInvoker24a;
857 }
858
859
860
861
862
863 protected abstract boolean handleIsRemotingTypeNone();
864
865 private boolean __remotingTypeNone25a;
866 private boolean __remotingTypeNone25aSet = false;
867
868
869
870
871
872 public final boolean isRemotingTypeNone()
873 {
874 boolean remotingTypeNone25a = this.__remotingTypeNone25a;
875 if (!this.__remotingTypeNone25aSet)
876 {
877
878 remotingTypeNone25a = handleIsRemotingTypeNone();
879
880 this.__remotingTypeNone25a = remotingTypeNone25a;
881 if (isMetafacadePropertyCachingEnabled())
882 {
883 this.__remotingTypeNone25aSet = true;
884 }
885 }
886 return remotingTypeNone25a;
887 }
888
889
890
891
892
893 protected abstract boolean handleIsHibernateInterceptorEnabled();
894
895 private boolean __hibernateInterceptorEnabled26a;
896 private boolean __hibernateInterceptorEnabled26aSet = false;
897
898
899
900
901
902 public final boolean isHibernateInterceptorEnabled()
903 {
904 boolean hibernateInterceptorEnabled26a = this.__hibernateInterceptorEnabled26a;
905 if (!this.__hibernateInterceptorEnabled26aSet)
906 {
907
908 hibernateInterceptorEnabled26a = handleIsHibernateInterceptorEnabled();
909
910 this.__hibernateInterceptorEnabled26a = hibernateInterceptorEnabled26a;
911 if (isMetafacadePropertyCachingEnabled())
912 {
913 this.__hibernateInterceptorEnabled26aSet = true;
914 }
915 }
916 return hibernateInterceptorEnabled26a;
917 }
918
919
920
921
922
923 protected abstract boolean handleIsEjbRemoteView();
924
925 private boolean __ejbRemoteView27a;
926 private boolean __ejbRemoteView27aSet = false;
927
928
929
930
931
932 public final boolean isEjbRemoteView()
933 {
934 boolean ejbRemoteView27a = this.__ejbRemoteView27a;
935 if (!this.__ejbRemoteView27aSet)
936 {
937
938 ejbRemoteView27a = handleIsEjbRemoteView();
939
940 this.__ejbRemoteView27a = ejbRemoteView27a;
941 if (isMetafacadePropertyCachingEnabled())
942 {
943 this.__ejbRemoteView27aSet = true;
944 }
945 }
946 return ejbRemoteView27a;
947 }
948
949
950
951
952
953 protected abstract String handleGetRemoteServer();
954
955 private String __remoteServer28a;
956 private boolean __remoteServer28aSet = false;
957
958
959
960
961
962 public final String getRemoteServer()
963 {
964 String remoteServer28a = this.__remoteServer28a;
965 if (!this.__remoteServer28aSet)
966 {
967
968 remoteServer28a = handleGetRemoteServer();
969
970 this.__remoteServer28a = remoteServer28a;
971 if (isMetafacadePropertyCachingEnabled())
972 {
973 this.__remoteServer28aSet = true;
974 }
975 }
976 return remoteServer28a;
977 }
978
979
980
981
982
983 protected abstract String handleGetRemoteContext();
984
985 private String __remoteContext29a;
986 private boolean __remoteContext29aSet = false;
987
988
989
990
991
992 public final String getRemoteContext()
993 {
994 String remoteContext29a = this.__remoteContext29a;
995 if (!this.__remoteContext29aSet)
996 {
997
998 remoteContext29a = handleGetRemoteContext();
999
1000 this.__remoteContext29a = remoteContext29a;
1001 if (isMetafacadePropertyCachingEnabled())
1002 {
1003 this.__remoteContext29aSet = true;
1004 }
1005 }
1006 return remoteContext29a;
1007 }
1008
1009
1010
1011
1012
1013 protected abstract String handleGetEjbTransactionType();
1014
1015 private String __ejbTransactionType30a;
1016 private boolean __ejbTransactionType30aSet = false;
1017
1018
1019
1020
1021
1022 public final String getEjbTransactionType()
1023 {
1024 String ejbTransactionType30a = this.__ejbTransactionType30a;
1025 if (!this.__ejbTransactionType30aSet)
1026 {
1027
1028 ejbTransactionType30a = handleGetEjbTransactionType();
1029
1030 this.__ejbTransactionType30a = ejbTransactionType30a;
1031 if (isMetafacadePropertyCachingEnabled())
1032 {
1033 this.__ejbTransactionType30aSet = true;
1034 }
1035 }
1036 return ejbTransactionType30a;
1037 }
1038
1039
1040
1041
1042
1043 protected abstract Collection<String> handleGetInterceptors();
1044
1045 private Collection<String> __interceptors31a;
1046 private boolean __interceptors31aSet = false;
1047
1048
1049
1050
1051
1052
1053 public final Collection<String> getInterceptors()
1054 {
1055 Collection<String> interceptors31a = this.__interceptors31a;
1056 if (!this.__interceptors31aSet)
1057 {
1058
1059 interceptors31a = handleGetInterceptors();
1060
1061 this.__interceptors31a = interceptors31a;
1062 if (isMetafacadePropertyCachingEnabled())
1063 {
1064 this.__interceptors31aSet = true;
1065 }
1066 }
1067 return interceptors31a;
1068 }
1069
1070
1071
1072
1073
1074 protected abstract boolean handleIsConfigonly();
1075
1076 private boolean __configonly32a;
1077 private boolean __configonly32aSet = false;
1078
1079
1080
1081
1082
1083
1084 public final boolean isConfigonly()
1085 {
1086 boolean configonly32a = this.__configonly32a;
1087 if (!this.__configonly32aSet)
1088 {
1089
1090 configonly32a = handleIsConfigonly();
1091
1092 this.__configonly32a = configonly32a;
1093 if (isMetafacadePropertyCachingEnabled())
1094 {
1095 this.__configonly32aSet = true;
1096 }
1097 }
1098 return configonly32a;
1099 }
1100
1101
1102
1103
1104
1105 protected abstract String handleGetWebServiceOutgoingAttachmentHandlerCall();
1106
1107 private String __webServiceOutgoingAttachmentHandlerCall33a;
1108 private boolean __webServiceOutgoingAttachmentHandlerCall33aSet = false;
1109
1110
1111
1112
1113
1114 public final String getWebServiceOutgoingAttachmentHandlerCall()
1115 {
1116 String webServiceOutgoingAttachmentHandlerCall33a = this.__webServiceOutgoingAttachmentHandlerCall33a;
1117 if (!this.__webServiceOutgoingAttachmentHandlerCall33aSet)
1118 {
1119
1120 webServiceOutgoingAttachmentHandlerCall33a = handleGetWebServiceOutgoingAttachmentHandlerCall();
1121
1122 this.__webServiceOutgoingAttachmentHandlerCall33a = webServiceOutgoingAttachmentHandlerCall33a;
1123 if (isMetafacadePropertyCachingEnabled())
1124 {
1125 this.__webServiceOutgoingAttachmentHandlerCall33aSet = true;
1126 }
1127 }
1128 return webServiceOutgoingAttachmentHandlerCall33a;
1129 }
1130
1131
1132
1133
1134
1135 protected abstract String handleGetWebServiceIncomingAttachmentHandlerCall();
1136
1137 private String __webServiceIncomingAttachmentHandlerCall34a;
1138 private boolean __webServiceIncomingAttachmentHandlerCall34aSet = false;
1139
1140
1141
1142
1143
1144 public final String getWebServiceIncomingAttachmentHandlerCall()
1145 {
1146 String webServiceIncomingAttachmentHandlerCall34a = this.__webServiceIncomingAttachmentHandlerCall34a;
1147 if (!this.__webServiceIncomingAttachmentHandlerCall34aSet)
1148 {
1149
1150 webServiceIncomingAttachmentHandlerCall34a = handleGetWebServiceIncomingAttachmentHandlerCall();
1151
1152 this.__webServiceIncomingAttachmentHandlerCall34a = webServiceIncomingAttachmentHandlerCall34a;
1153 if (isMetafacadePropertyCachingEnabled())
1154 {
1155 this.__webServiceIncomingAttachmentHandlerCall34aSet = true;
1156 }
1157 }
1158 return webServiceIncomingAttachmentHandlerCall34a;
1159 }
1160
1161
1162
1163
1164
1165 protected abstract boolean handleIsRichClient();
1166
1167 private boolean __richClient35a;
1168 private boolean __richClient35aSet = false;
1169
1170
1171
1172
1173
1174 public final boolean isRichClient()
1175 {
1176 boolean richClient35a = this.__richClient35a;
1177 if (!this.__richClient35aSet)
1178 {
1179
1180 richClient35a = handleIsRichClient();
1181
1182 this.__richClient35a = richClient35a;
1183 if (isMetafacadePropertyCachingEnabled())
1184 {
1185 this.__richClient35aSet = true;
1186 }
1187 }
1188 return richClient35a;
1189 }
1190
1191
1192
1193
1194
1195 protected abstract boolean handleIsEjbLocalView();
1196
1197 private boolean __ejbLocalView36a;
1198 private boolean __ejbLocalView36aSet = false;
1199
1200
1201
1202
1203
1204
1205 public final boolean isEjbLocalView()
1206 {
1207 boolean ejbLocalView36a = this.__ejbLocalView36a;
1208 if (!this.__ejbLocalView36aSet)
1209 {
1210
1211 ejbLocalView36a = handleIsEjbLocalView();
1212
1213 this.__ejbLocalView36a = ejbLocalView36a;
1214 if (isMetafacadePropertyCachingEnabled())
1215 {
1216 this.__ejbLocalView36aSet = true;
1217 }
1218 }
1219 return ejbLocalView36a;
1220 }
1221
1222
1223
1224
1225
1226 protected abstract String handleGetFullyQualifiedLocalEjbName();
1227
1228 private String __fullyQualifiedLocalEjbName37a;
1229 private boolean __fullyQualifiedLocalEjbName37aSet = false;
1230
1231
1232
1233
1234
1235
1236 public final String getFullyQualifiedLocalEjbName()
1237 {
1238 String fullyQualifiedLocalEjbName37a = this.__fullyQualifiedLocalEjbName37a;
1239 if (!this.__fullyQualifiedLocalEjbName37aSet)
1240 {
1241
1242 fullyQualifiedLocalEjbName37a = handleGetFullyQualifiedLocalEjbName();
1243
1244 this.__fullyQualifiedLocalEjbName37a = fullyQualifiedLocalEjbName37a;
1245 if (isMetafacadePropertyCachingEnabled())
1246 {
1247 this.__fullyQualifiedLocalEjbName37aSet = true;
1248 }
1249 }
1250 return fullyQualifiedLocalEjbName37a;
1251 }
1252
1253
1254
1255
1256
1257 protected abstract String handleGetEjbLocalJndiName();
1258
1259 private String __ejbLocalJndiName38a;
1260 private boolean __ejbLocalJndiName38aSet = false;
1261
1262
1263
1264
1265
1266 public final String getEjbLocalJndiName()
1267 {
1268 String ejbLocalJndiName38a = this.__ejbLocalJndiName38a;
1269 if (!this.__ejbLocalJndiName38aSet)
1270 {
1271
1272 ejbLocalJndiName38a = handleGetEjbLocalJndiName();
1273
1274 this.__ejbLocalJndiName38a = ejbLocalJndiName38a;
1275 if (isMetafacadePropertyCachingEnabled())
1276 {
1277 this.__ejbLocalJndiName38aSet = true;
1278 }
1279 }
1280 return ejbLocalJndiName38a;
1281 }
1282
1283
1284
1285
1286
1287 protected abstract boolean handleIsRemotingTypeLingo();
1288
1289 private boolean __remotingTypeLingo39a;
1290 private boolean __remotingTypeLingo39aSet = false;
1291
1292
1293
1294
1295
1296 public final boolean isRemotingTypeLingo()
1297 {
1298 boolean remotingTypeLingo39a = this.__remotingTypeLingo39a;
1299 if (!this.__remotingTypeLingo39aSet)
1300 {
1301
1302 remotingTypeLingo39a = handleIsRemotingTypeLingo();
1303
1304 this.__remotingTypeLingo39a = remotingTypeLingo39a;
1305 if (isMetafacadePropertyCachingEnabled())
1306 {
1307 this.__remotingTypeLingo39aSet = true;
1308 }
1309 }
1310 return remotingTypeLingo39a;
1311 }
1312
1313
1314
1315
1316
1317 protected abstract boolean handleIsPrivate();
1318
1319 private boolean __private40a;
1320 private boolean __private40aSet = false;
1321
1322
1323
1324
1325
1326
1327
1328 public final boolean isPrivate()
1329 {
1330 boolean private40a = this.__private40a;
1331 if (!this.__private40aSet)
1332 {
1333
1334 private40a = handleIsPrivate();
1335
1336 this.__private40a = private40a;
1337 if (isMetafacadePropertyCachingEnabled())
1338 {
1339 this.__private40aSet = true;
1340 }
1341 }
1342 return private40a;
1343 }
1344
1345
1346
1347
1348
1349 protected abstract String handleGetImplementationPackageName();
1350
1351 private String __implementationPackageName41a;
1352 private boolean __implementationPackageName41aSet = false;
1353
1354
1355
1356
1357
1358
1359 public final String getImplementationPackageName()
1360 {
1361 String implementationPackageName41a = this.__implementationPackageName41a;
1362 if (!this.__implementationPackageName41aSet)
1363 {
1364
1365 implementationPackageName41a = handleGetImplementationPackageName();
1366
1367 this.__implementationPackageName41a = implementationPackageName41a;
1368 if (isMetafacadePropertyCachingEnabled())
1369 {
1370 this.__implementationPackageName41aSet = true;
1371 }
1372 }
1373 return implementationPackageName41a;
1374 }
1375
1376
1377
1378
1379
1380 protected abstract String handleGetImplementationPackagePath();
1381
1382 private String __implementationPackagePath42a;
1383 private boolean __implementationPackagePath42aSet = false;
1384
1385
1386
1387
1388
1389 public final String getImplementationPackagePath()
1390 {
1391 String implementationPackagePath42a = this.__implementationPackagePath42a;
1392 if (!this.__implementationPackagePath42aSet)
1393 {
1394
1395 implementationPackagePath42a = handleGetImplementationPackagePath();
1396
1397 this.__implementationPackagePath42a = implementationPackagePath42a;
1398 if (isMetafacadePropertyCachingEnabled())
1399 {
1400 this.__implementationPackagePath42aSet = true;
1401 }
1402 }
1403 return implementationPackagePath42a;
1404 }
1405
1406
1407
1408
1409
1410 protected abstract String handleGetInitMethodName();
1411
1412 private String __initMethodName43a;
1413 private boolean __initMethodName43aSet = false;
1414
1415
1416
1417
1418
1419 public final String getInitMethodName()
1420 {
1421 String initMethodName43a = this.__initMethodName43a;
1422 if (!this.__initMethodName43aSet)
1423 {
1424
1425 initMethodName43a = handleGetInitMethodName();
1426
1427 this.__initMethodName43a = initMethodName43a;
1428 if (isMetafacadePropertyCachingEnabled())
1429 {
1430 this.__initMethodName43aSet = true;
1431 }
1432 }
1433 return initMethodName43a;
1434 }
1435
1436
1437
1438
1439
1440 protected abstract String handleGetDestroyMethodName();
1441
1442 private String __destroyMethodName44a;
1443 private boolean __destroyMethodName44aSet = false;
1444
1445
1446
1447
1448
1449 public final String getDestroyMethodName()
1450 {
1451 String destroyMethodName44a = this.__destroyMethodName44a;
1452 if (!this.__destroyMethodName44aSet)
1453 {
1454
1455 destroyMethodName44a = handleGetDestroyMethodName();
1456
1457 this.__destroyMethodName44a = destroyMethodName44a;
1458 if (isMetafacadePropertyCachingEnabled())
1459 {
1460 this.__destroyMethodName44aSet = true;
1461 }
1462 }
1463 return destroyMethodName44a;
1464 }
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475 protected abstract String handleGetBeanName(boolean targetSuffix);
1476
1477
1478
1479
1480
1481
1482
1483
1484 public String getBeanName(boolean targetSuffix)
1485 {
1486
1487 String returnValue = handleGetBeanName(targetSuffix);
1488
1489 return returnValue;
1490 }
1491
1492
1493
1494 private Collection<SpringServiceOperation> __getWebServiceOperations1r;
1495 private boolean __getWebServiceOperations1rSet = false;
1496
1497
1498
1499
1500
1501 public final Collection<SpringServiceOperation> getWebServiceOperations()
1502 {
1503 Collection<SpringServiceOperation> getWebServiceOperations1r = this.__getWebServiceOperations1r;
1504 if (!this.__getWebServiceOperations1rSet)
1505 {
1506
1507 Collection result = handleGetWebServiceOperations();
1508 List shieldedResult = this.shieldedElements(result);
1509 try
1510 {
1511 getWebServiceOperations1r = (Collection<SpringServiceOperation>)shieldedResult;
1512 }
1513 catch (ClassCastException ex)
1514 {
1515
1516 SpringServiceLogic.logger.warn("incorrect metafacade cast for SpringServiceLogic.getWebServiceOperations Collection<SpringServiceOperation> " + result + ": " + shieldedResult);
1517 }
1518
1519 this.__getWebServiceOperations1r = getWebServiceOperations1r;
1520 if (isMetafacadePropertyCachingEnabled())
1521 {
1522 this.__getWebServiceOperations1rSet = true;
1523 }
1524 }
1525 return getWebServiceOperations1r;
1526 }
1527
1528
1529
1530
1531
1532 protected abstract Collection handleGetWebServiceOperations();
1533
1534
1535
1536
1537
1538 public boolean isServiceMetaType()
1539 {
1540 return true;
1541 }
1542
1543
1544
1545
1546
1547 public boolean isClassifierFacadeMetaType()
1548 {
1549 return true;
1550 }
1551
1552
1553
1554
1555
1556 public boolean isGeneralizableElementFacadeMetaType()
1557 {
1558 return true;
1559 }
1560
1561
1562
1563
1564
1565 public boolean isModelElementFacadeMetaType()
1566 {
1567 return true;
1568 }
1569
1570
1571
1572
1573
1574
1575 public AttributeFacade findAttribute(String name)
1576 {
1577 return this.getSuperService().findAttribute(name);
1578 }
1579
1580
1581
1582
1583
1584 public Collection<ClassifierFacade> getAbstractions()
1585 {
1586 return this.getSuperService().getAbstractions();
1587 }
1588
1589
1590
1591
1592
1593
1594 public Collection<ClassifierFacade> getAllAssociatedClasses()
1595 {
1596 return this.getSuperService().getAllAssociatedClasses();
1597 }
1598
1599
1600
1601
1602
1603
1604 public Collection<ModelElementFacade> getAllProperties()
1605 {
1606 return this.getSuperService().getAllProperties();
1607 }
1608
1609
1610
1611
1612
1613
1614 public Collection<ModelElementFacade> getAllRequiredConstructorParameters()
1615 {
1616 return this.getSuperService().getAllRequiredConstructorParameters();
1617 }
1618
1619
1620
1621
1622
1623
1624 public ClassifierFacade getArray()
1625 {
1626 return this.getSuperService().getArray();
1627 }
1628
1629
1630
1631
1632
1633 public String getArrayName()
1634 {
1635 return this.getSuperService().getArrayName();
1636 }
1637
1638
1639
1640
1641
1642
1643 public Collection<ClassifierFacade> getAssociatedClasses()
1644 {
1645 return this.getSuperService().getAssociatedClasses();
1646 }
1647
1648
1649
1650
1651
1652 public List<AssociationEndFacade> getAssociationEnds()
1653 {
1654 return this.getSuperService().getAssociationEnds();
1655 }
1656
1657
1658
1659
1660
1661 public List<AttributeFacade> getAttributes()
1662 {
1663 return this.getSuperService().getAttributes();
1664 }
1665
1666
1667
1668
1669
1670
1671 public List<AttributeFacade> getAttributes(boolean follow)
1672 {
1673 return this.getSuperService().getAttributes(follow);
1674 }
1675
1676
1677
1678
1679
1680 public String getFullyQualifiedArrayName()
1681 {
1682 return this.getSuperService().getFullyQualifiedArrayName();
1683 }
1684
1685
1686
1687
1688
1689
1690
1691
1692 public Collection<OperationFacade> getImplementationOperations()
1693 {
1694 return this.getSuperService().getImplementationOperations();
1695 }
1696
1697
1698
1699
1700
1701 public String getImplementedInterfaceList()
1702 {
1703 return this.getSuperService().getImplementedInterfaceList();
1704 }
1705
1706
1707
1708
1709
1710 public Collection<AttributeFacade> getInstanceAttributes()
1711 {
1712 return this.getSuperService().getInstanceAttributes();
1713 }
1714
1715
1716
1717
1718
1719 public List<OperationFacade> getInstanceOperations()
1720 {
1721 return this.getSuperService().getInstanceOperations();
1722 }
1723
1724
1725
1726
1727
1728
1729 public Collection<ClassifierFacade> getInterfaceAbstractions()
1730 {
1731 return this.getSuperService().getInterfaceAbstractions();
1732 }
1733
1734
1735
1736
1737
1738
1739 public String getJavaNewString()
1740 {
1741 return this.getSuperService().getJavaNewString();
1742 }
1743
1744
1745
1746
1747
1748
1749 public String getJavaNullString()
1750 {
1751 return this.getSuperService().getJavaNullString();
1752 }
1753
1754
1755
1756
1757
1758 public Collection<AssociationEndFacade> getNavigableConnectingEnds()
1759 {
1760 return this.getSuperService().getNavigableConnectingEnds();
1761 }
1762
1763
1764
1765
1766
1767
1768 public List<AssociationEndFacade> getNavigableConnectingEnds(boolean follow)
1769 {
1770 return this.getSuperService().getNavigableConnectingEnds(follow);
1771 }
1772
1773
1774
1775
1776
1777
1778
1779 public ClassifierFacade getNonArray()
1780 {
1781 return this.getSuperService().getNonArray();
1782 }
1783
1784
1785
1786
1787
1788
1789
1790 public String getOperationCallFromAttributes()
1791 {
1792 return this.getSuperService().getOperationCallFromAttributes();
1793 }
1794
1795
1796
1797
1798
1799 public List<OperationFacade> getOperations()
1800 {
1801 return this.getSuperService().getOperations();
1802 }
1803
1804
1805
1806
1807
1808
1809 public List<ModelElementFacade> getProperties()
1810 {
1811 return this.getSuperService().getProperties();
1812 }
1813
1814
1815
1816
1817
1818
1819
1820 public List getProperties(boolean follow)
1821 {
1822 return this.getSuperService().getProperties(follow);
1823 }
1824
1825
1826
1827
1828
1829
1830 public Collection<ModelElementFacade> getRequiredConstructorParameters()
1831 {
1832 return this.getSuperService().getRequiredConstructorParameters();
1833 }
1834
1835
1836
1837
1838
1839 public long getSerialVersionUID()
1840 {
1841 return this.getSuperService().getSerialVersionUID();
1842 }
1843
1844
1845
1846
1847
1848 public Collection<AttributeFacade> getStaticAttributes()
1849 {
1850 return this.getSuperService().getStaticAttributes();
1851 }
1852
1853
1854
1855
1856
1857 public List<OperationFacade> getStaticOperations()
1858 {
1859 return this.getSuperService().getStaticOperations();
1860 }
1861
1862
1863
1864
1865
1866
1867 public ClassifierFacade getSuperClass()
1868 {
1869 return this.getSuperService().getSuperClass();
1870 }
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880 public String getWrapperName()
1881 {
1882 return this.getSuperService().getWrapperName();
1883 }
1884
1885
1886
1887
1888
1889 public boolean isAbstract()
1890 {
1891 return this.getSuperService().isAbstract();
1892 }
1893
1894
1895
1896
1897
1898 public boolean isArrayType()
1899 {
1900 return this.getSuperService().isArrayType();
1901 }
1902
1903
1904
1905
1906
1907 public boolean isAssociationClass()
1908 {
1909 return this.getSuperService().isAssociationClass();
1910 }
1911
1912
1913
1914
1915
1916 public boolean isBlobType()
1917 {
1918 return this.getSuperService().isBlobType();
1919 }
1920
1921
1922
1923
1924
1925 public boolean isBooleanType()
1926 {
1927 return this.getSuperService().isBooleanType();
1928 }
1929
1930
1931
1932
1933
1934 public boolean isCharacterType()
1935 {
1936 return this.getSuperService().isCharacterType();
1937 }
1938
1939
1940
1941
1942
1943 public boolean isClobType()
1944 {
1945 return this.getSuperService().isClobType();
1946 }
1947
1948
1949
1950
1951
1952 public boolean isCollectionType()
1953 {
1954 return this.getSuperService().isCollectionType();
1955 }
1956
1957
1958
1959
1960
1961
1962
1963 public boolean isDataType()
1964 {
1965 return this.getSuperService().isDataType();
1966 }
1967
1968
1969
1970
1971
1972 public boolean isDateType()
1973 {
1974 return this.getSuperService().isDateType();
1975 }
1976
1977
1978
1979
1980
1981 public boolean isDoubleType()
1982 {
1983 return this.getSuperService().isDoubleType();
1984 }
1985
1986
1987
1988
1989
1990 public boolean isEmbeddedValue()
1991 {
1992 return this.getSuperService().isEmbeddedValue();
1993 }
1994
1995
1996
1997
1998
1999 public boolean isEnumeration()
2000 {
2001 return this.getSuperService().isEnumeration();
2002 }
2003
2004
2005
2006
2007
2008 public boolean isFileType()
2009 {
2010 return this.getSuperService().isFileType();
2011 }
2012
2013
2014
2015
2016
2017 public boolean isFloatType()
2018 {
2019 return this.getSuperService().isFloatType();
2020 }
2021
2022
2023
2024
2025
2026 public boolean isIntegerType()
2027 {
2028 return this.getSuperService().isIntegerType();
2029 }
2030
2031
2032
2033
2034
2035 public boolean isInterface()
2036 {
2037 return this.getSuperService().isInterface();
2038 }
2039
2040
2041
2042
2043
2044 public boolean isLeaf()
2045 {
2046 return this.getSuperService().isLeaf();
2047 }
2048
2049
2050
2051
2052
2053 public boolean isListType()
2054 {
2055 return this.getSuperService().isListType();
2056 }
2057
2058
2059
2060
2061
2062 public boolean isLongType()
2063 {
2064 return this.getSuperService().isLongType();
2065 }
2066
2067
2068
2069
2070
2071 public boolean isMapType()
2072 {
2073 return this.getSuperService().isMapType();
2074 }
2075
2076
2077
2078
2079
2080 public boolean isPrimitive()
2081 {
2082 return this.getSuperService().isPrimitive();
2083 }
2084
2085
2086
2087
2088
2089 public boolean isSetType()
2090 {
2091 return this.getSuperService().isSetType();
2092 }
2093
2094
2095
2096
2097
2098 public boolean isStringType()
2099 {
2100 return this.getSuperService().isStringType();
2101 }
2102
2103
2104
2105
2106
2107 public boolean isTimeType()
2108 {
2109 return this.getSuperService().isTimeType();
2110 }
2111
2112
2113
2114
2115
2116 public boolean isWrappedPrimitive()
2117 {
2118 return this.getSuperService().isWrappedPrimitive();
2119 }
2120
2121
2122
2123
2124
2125
2126 public Object findTaggedValue(String tagName, boolean follow)
2127 {
2128 return this.getSuperService().findTaggedValue(tagName, follow);
2129 }
2130
2131
2132
2133
2134
2135 public Collection<GeneralizableElementFacade> getAllGeneralizations()
2136 {
2137 return this.getSuperService().getAllGeneralizations();
2138 }
2139
2140
2141
2142
2143
2144 public Collection<GeneralizableElementFacade> getAllSpecializations()
2145 {
2146 return this.getSuperService().getAllSpecializations();
2147 }
2148
2149
2150
2151
2152
2153 public GeneralizableElementFacade getGeneralization()
2154 {
2155 return this.getSuperService().getGeneralization();
2156 }
2157
2158
2159
2160
2161
2162
2163 public Collection<GeneralizationFacade> getGeneralizationLinks()
2164 {
2165 return this.getSuperService().getGeneralizationLinks();
2166 }
2167
2168
2169
2170
2171
2172 public String getGeneralizationList()
2173 {
2174 return this.getSuperService().getGeneralizationList();
2175 }
2176
2177
2178
2179
2180
2181
2182 public GeneralizableElementFacade getGeneralizationRoot()
2183 {
2184 return this.getSuperService().getGeneralizationRoot();
2185 }
2186
2187
2188
2189
2190
2191 public Collection<GeneralizableElementFacade> getGeneralizations()
2192 {
2193 return this.getSuperService().getGeneralizations();
2194 }
2195
2196
2197
2198
2199
2200 public Collection<GeneralizableElementFacade> getSpecializations()
2201 {
2202 return this.getSuperService().getSpecializations();
2203 }
2204
2205
2206
2207
2208
2209 public void copyTaggedValues(ModelElementFacade element)
2210 {
2211 this.getSuperService().copyTaggedValues(element);
2212 }
2213
2214
2215
2216
2217
2218
2219 public Object findTaggedValue(String tagName)
2220 {
2221 return this.getSuperService().findTaggedValue(tagName);
2222 }
2223
2224
2225
2226
2227
2228
2229 public Collection<Object> findTaggedValues(String tagName)
2230 {
2231 return this.getSuperService().findTaggedValues(tagName);
2232 }
2233
2234
2235
2236
2237
2238
2239
2240 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
2241 {
2242 return this.getSuperService().getBindedFullyQualifiedName(bindedElement);
2243 }
2244
2245
2246
2247
2248
2249 public Collection<ConstraintFacade> getConstraints()
2250 {
2251 return this.getSuperService().getConstraints();
2252 }
2253
2254
2255
2256
2257
2258
2259 public Collection<ConstraintFacade> getConstraints(String kind)
2260 {
2261 return this.getSuperService().getConstraints(kind);
2262 }
2263
2264
2265
2266
2267
2268
2269
2270 public String getDocumentation(String indent)
2271 {
2272 return this.getSuperService().getDocumentation(indent);
2273 }
2274
2275
2276
2277
2278
2279
2280
2281
2282 public String getDocumentation(String indent, int lineLength)
2283 {
2284 return this.getSuperService().getDocumentation(indent, lineLength);
2285 }
2286
2287
2288
2289
2290
2291
2292
2293 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
2294 {
2295 return this.getSuperService().getDocumentation(indent, lineLength, htmlStyle);
2296 }
2297
2298
2299
2300
2301
2302 public String getFullyQualifiedName()
2303 {
2304 return this.getSuperService().getFullyQualifiedName();
2305 }
2306
2307
2308
2309
2310
2311
2312
2313
2314 public String getFullyQualifiedName(boolean modelName)
2315 {
2316 return this.getSuperService().getFullyQualifiedName(modelName);
2317 }
2318
2319
2320
2321
2322
2323
2324 public String getFullyQualifiedNamePath()
2325 {
2326 return this.getSuperService().getFullyQualifiedNamePath();
2327 }
2328
2329
2330
2331
2332
2333 public String getId()
2334 {
2335 return this.getSuperService().getId();
2336 }
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346 public Collection<String> getKeywords()
2347 {
2348 return this.getSuperService().getKeywords();
2349 }
2350
2351
2352
2353
2354
2355 public String getLabel()
2356 {
2357 return this.getSuperService().getLabel();
2358 }
2359
2360
2361
2362
2363
2364 public TypeMappings getLanguageMappings()
2365 {
2366 return this.getSuperService().getLanguageMappings();
2367 }
2368
2369
2370
2371
2372
2373
2374 public ModelFacade getModel()
2375 {
2376 return this.getSuperService().getModel();
2377 }
2378
2379
2380
2381
2382
2383 public String getName()
2384 {
2385 return this.getSuperService().getName();
2386 }
2387
2388
2389
2390
2391
2392 public ModelElementFacade getPackage()
2393 {
2394 return this.getSuperService().getPackage();
2395 }
2396
2397
2398
2399
2400
2401 public String getPackageName()
2402 {
2403 return this.getSuperService().getPackageName();
2404 }
2405
2406
2407
2408
2409
2410
2411 public String getPackageName(boolean modelName)
2412 {
2413 return this.getSuperService().getPackageName(modelName);
2414 }
2415
2416
2417
2418
2419
2420 public String getPackagePath()
2421 {
2422 return this.getSuperService().getPackagePath();
2423 }
2424
2425
2426
2427
2428
2429
2430
2431
2432 public String getQualifiedName()
2433 {
2434 return this.getSuperService().getQualifiedName();
2435 }
2436
2437
2438
2439
2440
2441 public PackageFacade getRootPackage()
2442 {
2443 return this.getSuperService().getRootPackage();
2444 }
2445
2446
2447
2448
2449
2450 public Collection<DependencyFacade> getSourceDependencies()
2451 {
2452 return this.getSuperService().getSourceDependencies();
2453 }
2454
2455
2456
2457
2458
2459
2460 public StateMachineFacade getStateMachineContext()
2461 {
2462 return this.getSuperService().getStateMachineContext();
2463 }
2464
2465
2466
2467
2468
2469 public Collection<String> getStereotypeNames()
2470 {
2471 return this.getSuperService().getStereotypeNames();
2472 }
2473
2474
2475
2476
2477
2478 public Collection<StereotypeFacade> getStereotypes()
2479 {
2480 return this.getSuperService().getStereotypes();
2481 }
2482
2483
2484
2485
2486
2487 public Collection<TaggedValueFacade> getTaggedValues()
2488 {
2489 return this.getSuperService().getTaggedValues();
2490 }
2491
2492
2493
2494
2495
2496 public Collection<DependencyFacade> getTargetDependencies()
2497 {
2498 return this.getSuperService().getTargetDependencies();
2499 }
2500
2501
2502
2503
2504
2505 public Object getTemplateParameter(String parameterName)
2506 {
2507 return this.getSuperService().getTemplateParameter(parameterName);
2508 }
2509
2510
2511
2512
2513
2514 public Collection<TemplateParameterFacade> getTemplateParameters()
2515 {
2516 return this.getSuperService().getTemplateParameters();
2517 }
2518
2519
2520
2521
2522
2523
2524 public String getVisibility()
2525 {
2526 return this.getSuperService().getVisibility();
2527 }
2528
2529
2530
2531
2532
2533
2534 public boolean hasExactStereotype(String stereotypeName)
2535 {
2536 return this.getSuperService().hasExactStereotype(stereotypeName);
2537 }
2538
2539
2540
2541
2542
2543
2544 public boolean hasKeyword(String keywordName)
2545 {
2546 return this.getSuperService().hasKeyword(keywordName);
2547 }
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561 public boolean hasStereotype(String stereotypeName)
2562 {
2563 return this.getSuperService().hasStereotype(stereotypeName);
2564 }
2565
2566
2567
2568
2569
2570
2571 public boolean isBindingDependenciesPresent()
2572 {
2573 return this.getSuperService().isBindingDependenciesPresent();
2574 }
2575
2576
2577
2578
2579
2580 public boolean isConstraintsPresent()
2581 {
2582 return this.getSuperService().isConstraintsPresent();
2583 }
2584
2585
2586
2587
2588
2589 public boolean isDocumentationPresent()
2590 {
2591 return this.getSuperService().isDocumentationPresent();
2592 }
2593
2594
2595
2596
2597
2598 public boolean isReservedWord()
2599 {
2600 return this.getSuperService().isReservedWord();
2601 }
2602
2603
2604
2605
2606
2607
2608 public boolean isTemplateParametersPresent()
2609 {
2610 return this.getSuperService().isTemplateParametersPresent();
2611 }
2612
2613
2614
2615
2616
2617
2618
2619 public boolean isValidIdentifierName()
2620 {
2621 return this.getSuperService().isValidIdentifierName();
2622 }
2623
2624
2625
2626
2627
2628
2629
2630 public String translateConstraint(String name, String translation)
2631 {
2632 return this.getSuperService().translateConstraint(name, translation);
2633 }
2634
2635
2636
2637
2638
2639 public String[] translateConstraints(String translation)
2640 {
2641 return this.getSuperService().translateConstraints(translation);
2642 }
2643
2644
2645
2646
2647
2648 public String[] translateConstraints(String kind, String translation)
2649 {
2650 return this.getSuperService().translateConstraints(kind, translation);
2651 }
2652
2653
2654
2655
2656
2657 public Collection<DependencyFacade> getAllEntityReferences()
2658 {
2659 return this.getSuperService().getAllEntityReferences();
2660 }
2661
2662
2663
2664
2665
2666 public Collection<Destination> getAllMessagingDestinations()
2667 {
2668 return this.getSuperService().getAllMessagingDestinations();
2669 }
2670
2671
2672
2673
2674
2675
2676 public Collection<Role> getAllRoles()
2677 {
2678 return this.getSuperService().getAllRoles();
2679 }
2680
2681
2682
2683
2684
2685 public Collection<DependencyFacade> getAllServiceReferences()
2686 {
2687 return this.getSuperService().getAllServiceReferences();
2688 }
2689
2690
2691
2692
2693
2694 public Collection<DependencyFacade> getEntityReferences()
2695 {
2696 return this.getSuperService().getEntityReferences();
2697 }
2698
2699
2700
2701
2702
2703 public Collection<Destination> getMessagingDestinations()
2704 {
2705 return this.getSuperService().getMessagingDestinations();
2706 }
2707
2708
2709
2710
2711
2712 public Collection<Role> getRoles()
2713 {
2714 return this.getSuperService().getRoles();
2715 }
2716
2717
2718
2719
2720
2721 public Collection<DependencyFacade> getServiceReferences()
2722 {
2723 return this.getSuperService().getServiceReferences();
2724 }
2725
2726
2727
2728
2729 @Override
2730 public void initialize()
2731 {
2732 this.getSuperService().initialize();
2733 }
2734
2735
2736
2737
2738
2739 @Override
2740 public Object getValidationOwner()
2741 {
2742 Object owner = this.getSuperService().getValidationOwner();
2743 return owner;
2744 }
2745
2746
2747
2748
2749
2750 @Override
2751 public String getValidationName()
2752 {
2753 String name = this.getSuperService().getValidationName();
2754 return name;
2755 }
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767 @Override
2768 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
2769 {
2770 this.getSuperService().validateInvariants(validationMessages);
2771 try
2772 {
2773 final Object contextElement = this.THIS();
2774 boolean constraintValid = OCLResultEnsurer.ensure(OCLExpressions.lessOrEqual(OCLCollections.size(OCLCollections.select(OCLIntrospector.invoke(contextElement,"operations"),new Predicate(){public boolean evaluate(Object object){return Boolean.valueOf(String.valueOf(OCLExpressions.equal(OCLIntrospector.invoke(object,"initMethod"),true))).booleanValue();}})),1));
2775 if (!constraintValid)
2776 {
2777 validationMessages.add(
2778 new ModelValidationMessage(
2779 (MetafacadeBase)contextElement ,
2780 "org::andromda::cartridges::spring::metafacades::SpringService::only one init-method pro service",
2781 "Only one operation of the Springervice may be an init-method operation."));
2782 }
2783 }
2784 catch (Throwable th)
2785 {
2786 Throwable cause = th.getCause();
2787 int depth = 0;
2788 while (cause != null && depth < 7)
2789 {
2790 th = cause;
2791 depth++;
2792 }
2793 logger.error("Error validating constraint 'org::andromda::cartridges::spring::metafacades::SpringService::only one init-method pro service' ON "
2794 + this.THIS().toString() + ": " + th.getMessage(), th);
2795 }
2796 try
2797 {
2798 final Object contextElement = this.THIS();
2799 boolean constraintValid = OCLResultEnsurer.ensure(OCLExpressions.lessOrEqual(OCLCollections.size(OCLCollections.select(OCLIntrospector.invoke(contextElement,"operations"),new Predicate(){public boolean evaluate(Object object){return Boolean.valueOf(String.valueOf(OCLExpressions.equal(OCLIntrospector.invoke(object,"destroyMethod"),true))).booleanValue();}})),1));
2800 if (!constraintValid)
2801 {
2802 validationMessages.add(
2803 new ModelValidationMessage(
2804 (MetafacadeBase)contextElement ,
2805 "org::andromda::cartridges::spring::metafacades::SpringService::only one destroy-method pro service",
2806 "Only one operation of a SpringService may be destroy-method operation."));
2807 }
2808 }
2809 catch (Throwable th)
2810 {
2811 Throwable cause = th.getCause();
2812 int depth = 0;
2813 while (cause != null && depth < 7)
2814 {
2815 th = cause;
2816 depth++;
2817 }
2818 logger.error("Error validating constraint 'org::andromda::cartridges::spring::metafacades::SpringService::only one destroy-method pro service' ON "
2819 + this.THIS().toString() + ": " + th.getMessage(), th);
2820 }
2821 }
2822
2823
2824
2825
2826 private static final String NAME_PROPERTY = "name";
2827 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
2828
2829
2830
2831
2832 @Override
2833 public String toString()
2834 {
2835 final StringBuilder toString = new StringBuilder(this.getClass().getName());
2836 toString.append("[");
2837 try
2838 {
2839 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
2840 }
2841 catch (final Throwable tryAgain)
2842 {
2843 try
2844 {
2845 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
2846 }
2847 catch (final Throwable ignore)
2848 {
2849
2850 }
2851 }
2852 toString.append("]");
2853 return toString.toString();
2854 }
2855 }