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