1
2
3
4
5 package org.andromda.cartridges.webservice.metafacades;
6
7 import java.util.Collection;
8 import org.andromda.core.common.Introspector;
9 import org.andromda.core.metafacade.MetafacadeBase;
10 import org.andromda.core.metafacade.MetafacadeFactory;
11 import org.andromda.core.metafacade.ModelValidationMessage;
12 import org.andromda.metafacades.uml.ClassifierFacade;
13 import org.andromda.metafacades.uml.ConstraintFacade;
14 import org.andromda.metafacades.uml.DependencyFacade;
15 import org.andromda.metafacades.uml.Destination;
16 import org.andromda.metafacades.uml.ModelElementFacade;
17 import org.andromda.metafacades.uml.ModelFacade;
18 import org.andromda.metafacades.uml.OperationFacade;
19 import org.andromda.metafacades.uml.PackageFacade;
20 import org.andromda.metafacades.uml.ParameterFacade;
21 import org.andromda.metafacades.uml.Role;
22 import org.andromda.metafacades.uml.Service;
23 import org.andromda.metafacades.uml.ServiceOperation;
24 import org.andromda.metafacades.uml.StateMachineFacade;
25 import org.andromda.metafacades.uml.StereotypeFacade;
26 import org.andromda.metafacades.uml.TaggedValueFacade;
27 import org.andromda.metafacades.uml.TemplateParameterFacade;
28 import org.andromda.metafacades.uml.TypeMappings;
29 import org.andromda.translation.ocl.validation.OCLExpressions;
30 import org.andromda.translation.ocl.validation.OCLIntrospector;
31 import org.andromda.translation.ocl.validation.OCLResultEnsurer;
32 import org.apache.log4j.Logger;
33
34
35
36
37
38
39
40 public abstract class WebServiceOperationLogic
41 extends MetafacadeBase
42 implements WebServiceOperation
43 {
44
45
46
47
48 protected Object metaObject;
49
50
51
52
53
54 protected WebServiceOperationLogic(Object metaObjectIn, String context)
55 {
56 super(metaObjectIn, getContext(context));
57 this.superServiceOperation =
58 (ServiceOperation)
59 MetafacadeFactory.getInstance().createFacadeImpl(
60 "org.andromda.metafacades.uml.ServiceOperation",
61 metaObjectIn,
62 getContext(context));
63 this.metaObject = metaObjectIn;
64 }
65
66
67
68
69 private static final Logger logger = Logger.getLogger(WebServiceOperationLogic.class);
70
71
72
73
74
75
76 private static String getContext(String context)
77 {
78 if (context == null)
79 {
80 context = "org.andromda.cartridges.webservice.metafacades.WebServiceOperation";
81 }
82 return context;
83 }
84
85 private ServiceOperation superServiceOperation;
86 private boolean superServiceOperationInitialized = false;
87
88
89
90
91
92 private ServiceOperation getSuperServiceOperation()
93 {
94 if (!this.superServiceOperationInitialized)
95 {
96 ((MetafacadeBase)this.superServiceOperation).setMetafacadeContext(this.getMetafacadeContext());
97 this.superServiceOperationInitialized = true;
98 }
99 return this.superServiceOperation;
100 }
101
102
103
104
105
106 @Override
107 public void resetMetafacadeContext(String context)
108 {
109 if (!this.contextRoot)
110 {
111 context = getContext(context);
112 setMetafacadeContext (context);
113 if (this.superServiceOperationInitialized)
114 {
115 ((MetafacadeBase)this.superServiceOperation).resetMetafacadeContext(context);
116 }
117 }
118 }
119
120
121
122
123
124 public boolean isWebServiceOperationMetaType()
125 {
126 return true;
127 }
128
129
130
131
132
133
134
135 protected abstract boolean handleIsExposed();
136
137 private boolean __exposed1a;
138 private boolean __exposed1aSet = false;
139
140
141
142
143
144 public final boolean isExposed()
145 {
146 boolean exposed1a = this.__exposed1a;
147 if (!this.__exposed1aSet)
148 {
149
150 exposed1a = handleIsExposed();
151
152 this.__exposed1a = exposed1a;
153 if (isMetafacadePropertyCachingEnabled())
154 {
155 this.__exposed1aSet = true;
156 }
157 }
158 return exposed1a;
159 }
160
161
162
163
164
165 protected abstract String handleGetTestImplementationName();
166
167 private String __testImplementationName2a;
168 private boolean __testImplementationName2aSet = false;
169
170
171
172
173
174 public final String getTestImplementationName()
175 {
176 String testImplementationName2a = this.__testImplementationName2a;
177 if (!this.__testImplementationName2aSet)
178 {
179
180 testImplementationName2a = handleGetTestImplementationName();
181
182 this.__testImplementationName2a = testImplementationName2a;
183 if (isMetafacadePropertyCachingEnabled())
184 {
185 this.__testImplementationName2aSet = true;
186 }
187 }
188 return testImplementationName2a;
189 }
190
191
192
193
194
195 protected abstract String handleGetTestImplementationCall();
196
197 private String __testImplementationCall3a;
198 private boolean __testImplementationCall3aSet = false;
199
200
201
202
203
204 public final String getTestImplementationCall()
205 {
206 String testImplementationCall3a = this.__testImplementationCall3a;
207 if (!this.__testImplementationCall3aSet)
208 {
209
210 testImplementationCall3a = handleGetTestImplementationCall();
211
212 this.__testImplementationCall3a = testImplementationCall3a;
213 if (isMetafacadePropertyCachingEnabled())
214 {
215 this.__testImplementationCall3aSet = true;
216 }
217 }
218 return testImplementationCall3a;
219 }
220
221
222
223
224
225 protected abstract String handleGetTestImplementationSignature();
226
227 private String __testImplementationSignature4a;
228 private boolean __testImplementationSignature4aSet = false;
229
230
231
232
233
234 public final String getTestImplementationSignature()
235 {
236 String testImplementationSignature4a = this.__testImplementationSignature4a;
237 if (!this.__testImplementationSignature4aSet)
238 {
239
240 testImplementationSignature4a = handleGetTestImplementationSignature();
241
242 this.__testImplementationSignature4a = testImplementationSignature4a;
243 if (isMetafacadePropertyCachingEnabled())
244 {
245 this.__testImplementationSignature4aSet = true;
246 }
247 }
248 return testImplementationSignature4a;
249 }
250
251
252
253
254
255 protected abstract String handleGetTestName();
256
257 private String __testName5a;
258 private boolean __testName5aSet = false;
259
260
261
262
263
264 public final String getTestName()
265 {
266 String testName5a = this.__testName5a;
267 if (!this.__testName5aSet)
268 {
269
270 testName5a = handleGetTestName();
271
272 this.__testName5a = testName5a;
273 if (isMetafacadePropertyCachingEnabled())
274 {
275 this.__testName5aSet = true;
276 }
277 }
278 return testName5a;
279 }
280
281
282
283
284
285 protected abstract String handleGetTestCall();
286
287 private String __testCall6a;
288 private boolean __testCall6aSet = false;
289
290
291
292
293
294 public final String getTestCall()
295 {
296 String testCall6a = this.__testCall6a;
297 if (!this.__testCall6aSet)
298 {
299
300 testCall6a = handleGetTestCall();
301
302 this.__testCall6a = testCall6a;
303 if (isMetafacadePropertyCachingEnabled())
304 {
305 this.__testCall6aSet = true;
306 }
307 }
308 return testCall6a;
309 }
310
311
312
313
314
315 protected abstract String handleGetTestSignature();
316
317 private String __testSignature7a;
318 private boolean __testSignature7aSet = false;
319
320
321
322
323
324 public final String getTestSignature()
325 {
326 String testSignature7a = this.__testSignature7a;
327 if (!this.__testSignature7aSet)
328 {
329
330 testSignature7a = handleGetTestSignature();
331
332 this.__testSignature7a = testSignature7a;
333 if (isMetafacadePropertyCachingEnabled())
334 {
335 this.__testSignature7aSet = true;
336 }
337 }
338 return testSignature7a;
339 }
340
341
342
343
344
345 protected abstract String handleGetParameterStyle();
346
347 private String __parameterStyle8a;
348 private boolean __parameterStyle8aSet = false;
349
350
351
352
353
354 public final String getParameterStyle()
355 {
356 String parameterStyle8a = this.__parameterStyle8a;
357 if (!this.__parameterStyle8aSet)
358 {
359
360 parameterStyle8a = handleGetParameterStyle();
361
362 this.__parameterStyle8a = parameterStyle8a;
363 if (isMetafacadePropertyCachingEnabled())
364 {
365 this.__parameterStyle8aSet = true;
366 }
367 }
368 return parameterStyle8a;
369 }
370
371
372
373
374
375 protected abstract String handleGetRestPath();
376
377 private String __restPath9a;
378 private boolean __restPath9aSet = false;
379
380
381
382
383
384
385 public final String getRestPath()
386 {
387 String restPath9a = this.__restPath9a;
388 if (!this.__restPath9aSet)
389 {
390
391 restPath9a = handleGetRestPath();
392
393 this.__restPath9a = restPath9a;
394 if (isMetafacadePropertyCachingEnabled())
395 {
396 this.__restPath9aSet = true;
397 }
398 }
399 return restPath9a;
400 }
401
402
403
404
405
406 protected abstract String handleGetRestRequestType();
407
408 private String __restRequestType10a;
409 private boolean __restRequestType10aSet = false;
410
411
412
413
414
415
416 public final String getRestRequestType()
417 {
418 String restRequestType10a = this.__restRequestType10a;
419 if (!this.__restRequestType10aSet)
420 {
421
422 restRequestType10a = handleGetRestRequestType();
423
424 this.__restRequestType10a = restRequestType10a;
425 if (isMetafacadePropertyCachingEnabled())
426 {
427 this.__restRequestType10aSet = true;
428 }
429 }
430 return restRequestType10a;
431 }
432
433
434
435
436
437 protected abstract String handleGetRestCacheType();
438
439 private String __restCacheType11a;
440 private boolean __restCacheType11aSet = false;
441
442
443
444
445
446
447 public final String getRestCacheType()
448 {
449 String restCacheType11a = this.__restCacheType11a;
450 if (!this.__restCacheType11aSet)
451 {
452
453 restCacheType11a = handleGetRestCacheType();
454
455 this.__restCacheType11a = restCacheType11a;
456 if (isMetafacadePropertyCachingEnabled())
457 {
458 this.__restCacheType11aSet = true;
459 }
460 }
461 return restCacheType11a;
462 }
463
464
465
466
467
468 protected abstract boolean handleIsRestEncoded();
469
470 private boolean __restEncoded12a;
471 private boolean __restEncoded12aSet = false;
472
473
474
475
476
477 public final boolean isRestEncoded()
478 {
479 boolean restEncoded12a = this.__restEncoded12a;
480 if (!this.__restEncoded12aSet)
481 {
482
483 restEncoded12a = handleIsRestEncoded();
484
485 this.__restEncoded12a = restEncoded12a;
486 if (isMetafacadePropertyCachingEnabled())
487 {
488 this.__restEncoded12aSet = true;
489 }
490 }
491 return restEncoded12a;
492 }
493
494
495
496
497
498 protected abstract String handleGetRestConsumes();
499
500 private String __restConsumes13a;
501 private boolean __restConsumes13aSet = false;
502
503
504
505
506
507 public final String getRestConsumes()
508 {
509 String restConsumes13a = this.__restConsumes13a;
510 if (!this.__restConsumes13aSet)
511 {
512
513 restConsumes13a = handleGetRestConsumes();
514
515 this.__restConsumes13a = restConsumes13a;
516 if (isMetafacadePropertyCachingEnabled())
517 {
518 this.__restConsumes13aSet = true;
519 }
520 }
521 return restConsumes13a;
522 }
523
524
525
526
527
528 protected abstract String handleGetRestProduces();
529
530 private String __restProduces14a;
531 private boolean __restProduces14aSet = false;
532
533
534
535
536
537 public final String getRestProduces()
538 {
539 String restProduces14a = this.__restProduces14a;
540 if (!this.__restProduces14aSet)
541 {
542
543 restProduces14a = handleGetRestProduces();
544
545 this.__restProduces14a = restProduces14a;
546 if (isMetafacadePropertyCachingEnabled())
547 {
548 this.__restProduces14aSet = true;
549 }
550 }
551 return restProduces14a;
552 }
553
554
555
556
557
558 protected abstract String handleGetRestProvider();
559
560 private String __restProvider15a;
561 private boolean __restProvider15aSet = false;
562
563
564
565
566
567 public final String getRestProvider()
568 {
569 String restProvider15a = this.__restProvider15a;
570 if (!this.__restProvider15aSet)
571 {
572
573 restProvider15a = handleGetRestProvider();
574
575 this.__restProvider15a = restProvider15a;
576 if (isMetafacadePropertyCachingEnabled())
577 {
578 this.__restProvider15aSet = true;
579 }
580 }
581 return restProvider15a;
582 }
583
584
585
586
587
588 protected abstract String handleGetRestPartType();
589
590 private String __restPartType16a;
591 private boolean __restPartType16aSet = false;
592
593
594
595
596
597 public final String getRestPartType()
598 {
599 String restPartType16a = this.__restPartType16a;
600 if (!this.__restPartType16aSet)
601 {
602
603 restPartType16a = handleGetRestPartType();
604
605 this.__restPartType16a = restPartType16a;
606 if (isMetafacadePropertyCachingEnabled())
607 {
608 this.__restPartType16aSet = true;
609 }
610 }
611 return restPartType16a;
612 }
613
614
615
616
617
618 protected abstract int handleGetRestSuspend();
619
620 private int __restSuspend17a;
621 private boolean __restSuspend17aSet = false;
622
623
624
625
626
627
628 public final int getRestSuspend()
629 {
630 int restSuspend17a = this.__restSuspend17a;
631 if (!this.__restSuspend17aSet)
632 {
633
634 restSuspend17a = handleGetRestSuspend();
635
636 this.__restSuspend17a = restSuspend17a;
637 if (isMetafacadePropertyCachingEnabled())
638 {
639 this.__restSuspend17aSet = true;
640 }
641 }
642 return restSuspend17a;
643 }
644
645
646
647
648
649 protected abstract String handleGetRolesAllowed();
650
651 private String __rolesAllowed18a;
652 private boolean __rolesAllowed18aSet = false;
653
654
655
656
657
658 public final String getRolesAllowed()
659 {
660 String rolesAllowed18a = this.__rolesAllowed18a;
661 if (!this.__rolesAllowed18aSet)
662 {
663
664 rolesAllowed18a = handleGetRolesAllowed();
665
666 this.__rolesAllowed18a = rolesAllowed18a;
667 if (isMetafacadePropertyCachingEnabled())
668 {
669 this.__rolesAllowed18aSet = true;
670 }
671 }
672 return rolesAllowed18a;
673 }
674
675
676
677
678
679 protected abstract boolean handleIsRestAtom();
680
681 private boolean __restAtom19a;
682 private boolean __restAtom19aSet = false;
683
684
685
686
687
688
689 public final boolean isRestAtom()
690 {
691 boolean restAtom19a = this.__restAtom19a;
692 if (!this.__restAtom19aSet)
693 {
694
695 restAtom19a = handleIsRestAtom();
696
697 this.__restAtom19a = restAtom19a;
698 if (isMetafacadePropertyCachingEnabled())
699 {
700 this.__restAtom19aSet = true;
701 }
702 }
703 return restAtom19a;
704 }
705
706
707
708
709
710 protected abstract boolean handleIsRest();
711
712 private boolean __rest20a;
713 private boolean __rest20aSet = false;
714
715
716
717
718
719
720 public final boolean isRest()
721 {
722 boolean rest20a = this.__rest20a;
723 if (!this.__rest20aSet)
724 {
725
726 rest20a = handleIsRest();
727
728 this.__rest20a = rest20a;
729 if (isMetafacadePropertyCachingEnabled())
730 {
731 this.__rest20aSet = true;
732 }
733 }
734 return rest20a;
735 }
736
737
738
739
740
741 protected abstract String handleGetRestTestPath();
742
743 private String __restTestPath21a;
744 private boolean __restTestPath21aSet = false;
745
746
747
748
749
750
751 public final String getRestTestPath()
752 {
753 String restTestPath21a = this.__restTestPath21a;
754 if (!this.__restTestPath21aSet)
755 {
756
757 restTestPath21a = handleGetRestTestPath();
758
759 this.__restTestPath21a = restTestPath21a;
760 if (isMetafacadePropertyCachingEnabled())
761 {
762 this.__restTestPath21aSet = true;
763 }
764 }
765 return restTestPath21a;
766 }
767
768
769
770
771
772 protected abstract String handleGetOperationName();
773
774 private String __operationName22a;
775 private boolean __operationName22aSet = false;
776
777
778
779
780
781
782
783 public final String getOperationName()
784 {
785 String operationName22a = this.__operationName22a;
786 if (!this.__operationName22aSet)
787 {
788
789 operationName22a = handleGetOperationName();
790
791 this.__operationName22a = operationName22a;
792 if (isMetafacadePropertyCachingEnabled())
793 {
794 this.__operationName22aSet = true;
795 }
796 }
797 return operationName22a;
798 }
799
800
801
802
803
804 protected abstract boolean handleIsWebFaultOnAllExceptions();
805
806 private boolean __webFaultOnAllExceptions23a;
807 private boolean __webFaultOnAllExceptions23aSet = false;
808
809
810
811
812
813
814 public final boolean isWebFaultOnAllExceptions()
815 {
816 boolean webFaultOnAllExceptions23a = this.__webFaultOnAllExceptions23a;
817 if (!this.__webFaultOnAllExceptions23aSet)
818 {
819
820 webFaultOnAllExceptions23a = handleIsWebFaultOnAllExceptions();
821
822 this.__webFaultOnAllExceptions23a = webFaultOnAllExceptions23a;
823 if (isMetafacadePropertyCachingEnabled())
824 {
825 this.__webFaultOnAllExceptions23aSet = true;
826 }
827 }
828 return webFaultOnAllExceptions23a;
829 }
830
831
832
833
834
835
836
837 public final WebServicePackage getWebServicePackage()
838 {
839 WebServicePackage getWebServicePackage1r = null;
840
841 Object result = handleGetWebServicePackage();
842 MetafacadeBase shieldedResult = this.shieldedElement(result);
843 try
844 {
845 getWebServicePackage1r = (WebServicePackage)shieldedResult;
846 }
847 catch (ClassCastException ex)
848 {
849
850 WebServiceOperationLogic.logger.warn("incorrect metafacade cast for WebServiceOperationLogic.getWebServicePackage WebServicePackage " + result + ": " + shieldedResult);
851 }
852
853 return getWebServicePackage1r;
854 }
855
856
857
858
859
860 protected abstract Object handleGetWebServicePackage();
861
862
863
864
865
866 public boolean isServiceOperationMetaType()
867 {
868 return true;
869 }
870
871
872
873
874
875 public boolean isOperationFacadeMetaType()
876 {
877 return true;
878 }
879
880
881
882
883
884 public boolean isModelElementFacadeMetaType()
885 {
886 return true;
887 }
888
889
890
891
892
893
894 public void copyTaggedValues(ModelElementFacade element)
895 {
896 this.getSuperServiceOperation().copyTaggedValues(element);
897 }
898
899
900
901
902
903
904 public Object findTaggedValue(String tagName)
905 {
906 return this.getSuperServiceOperation().findTaggedValue(tagName);
907 }
908
909
910
911
912
913
914 public Collection<Object> findTaggedValues(String tagName)
915 {
916 return this.getSuperServiceOperation().findTaggedValues(tagName);
917 }
918
919
920
921
922
923
924
925 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
926 {
927 return this.getSuperServiceOperation().getBindedFullyQualifiedName(bindedElement);
928 }
929
930
931
932
933
934 public Collection<ConstraintFacade> getConstraints()
935 {
936 return this.getSuperServiceOperation().getConstraints();
937 }
938
939
940
941
942
943
944 public Collection<ConstraintFacade> getConstraints(String kind)
945 {
946 return this.getSuperServiceOperation().getConstraints(kind);
947 }
948
949
950
951
952
953
954
955 public String getDocumentation(String indent)
956 {
957 return this.getSuperServiceOperation().getDocumentation(indent);
958 }
959
960
961
962
963
964
965
966
967 public String getDocumentation(String indent, int lineLength)
968 {
969 return this.getSuperServiceOperation().getDocumentation(indent, lineLength);
970 }
971
972
973
974
975
976
977
978 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
979 {
980 return this.getSuperServiceOperation().getDocumentation(indent, lineLength, htmlStyle);
981 }
982
983
984
985
986
987 public String getFullyQualifiedName()
988 {
989 return this.getSuperServiceOperation().getFullyQualifiedName();
990 }
991
992
993
994
995
996
997
998
999 public String getFullyQualifiedName(boolean modelName)
1000 {
1001 return this.getSuperServiceOperation().getFullyQualifiedName(modelName);
1002 }
1003
1004
1005
1006
1007
1008
1009 public String getFullyQualifiedNamePath()
1010 {
1011 return this.getSuperServiceOperation().getFullyQualifiedNamePath();
1012 }
1013
1014
1015
1016
1017
1018 public String getId()
1019 {
1020 return this.getSuperServiceOperation().getId();
1021 }
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031 public Collection<String> getKeywords()
1032 {
1033 return this.getSuperServiceOperation().getKeywords();
1034 }
1035
1036
1037
1038
1039
1040 public String getLabel()
1041 {
1042 return this.getSuperServiceOperation().getLabel();
1043 }
1044
1045
1046
1047
1048
1049 public TypeMappings getLanguageMappings()
1050 {
1051 return this.getSuperServiceOperation().getLanguageMappings();
1052 }
1053
1054
1055
1056
1057
1058
1059 public ModelFacade getModel()
1060 {
1061 return this.getSuperServiceOperation().getModel();
1062 }
1063
1064
1065
1066
1067
1068 public String getName()
1069 {
1070 return this.getSuperServiceOperation().getName();
1071 }
1072
1073
1074
1075
1076
1077 public ModelElementFacade getPackage()
1078 {
1079 return this.getSuperServiceOperation().getPackage();
1080 }
1081
1082
1083
1084
1085
1086 public String getPackageName()
1087 {
1088 return this.getSuperServiceOperation().getPackageName();
1089 }
1090
1091
1092
1093
1094
1095
1096 public String getPackageName(boolean modelName)
1097 {
1098 return this.getSuperServiceOperation().getPackageName(modelName);
1099 }
1100
1101
1102
1103
1104
1105 public String getPackagePath()
1106 {
1107 return this.getSuperServiceOperation().getPackagePath();
1108 }
1109
1110
1111
1112
1113
1114
1115
1116
1117 public String getQualifiedName()
1118 {
1119 return this.getSuperServiceOperation().getQualifiedName();
1120 }
1121
1122
1123
1124
1125
1126 public PackageFacade getRootPackage()
1127 {
1128 return this.getSuperServiceOperation().getRootPackage();
1129 }
1130
1131
1132
1133
1134
1135 public Collection<DependencyFacade> getSourceDependencies()
1136 {
1137 return this.getSuperServiceOperation().getSourceDependencies();
1138 }
1139
1140
1141
1142
1143
1144
1145 public StateMachineFacade getStateMachineContext()
1146 {
1147 return this.getSuperServiceOperation().getStateMachineContext();
1148 }
1149
1150
1151
1152
1153
1154 public Collection<String> getStereotypeNames()
1155 {
1156 return this.getSuperServiceOperation().getStereotypeNames();
1157 }
1158
1159
1160
1161
1162
1163 public Collection<StereotypeFacade> getStereotypes()
1164 {
1165 return this.getSuperServiceOperation().getStereotypes();
1166 }
1167
1168
1169
1170
1171
1172 public Collection<TaggedValueFacade> getTaggedValues()
1173 {
1174 return this.getSuperServiceOperation().getTaggedValues();
1175 }
1176
1177
1178
1179
1180
1181 public Collection<DependencyFacade> getTargetDependencies()
1182 {
1183 return this.getSuperServiceOperation().getTargetDependencies();
1184 }
1185
1186
1187
1188
1189
1190 public Object getTemplateParameter(String parameterName)
1191 {
1192 return this.getSuperServiceOperation().getTemplateParameter(parameterName);
1193 }
1194
1195
1196
1197
1198
1199 public Collection<TemplateParameterFacade> getTemplateParameters()
1200 {
1201 return this.getSuperServiceOperation().getTemplateParameters();
1202 }
1203
1204
1205
1206
1207
1208
1209 public String getVisibility()
1210 {
1211 return this.getSuperServiceOperation().getVisibility();
1212 }
1213
1214
1215
1216
1217
1218
1219 public boolean hasExactStereotype(String stereotypeName)
1220 {
1221 return this.getSuperServiceOperation().hasExactStereotype(stereotypeName);
1222 }
1223
1224
1225
1226
1227
1228
1229 public boolean hasKeyword(String keywordName)
1230 {
1231 return this.getSuperServiceOperation().hasKeyword(keywordName);
1232 }
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246 public boolean hasStereotype(String stereotypeName)
1247 {
1248 return this.getSuperServiceOperation().hasStereotype(stereotypeName);
1249 }
1250
1251
1252
1253
1254
1255
1256 public boolean isBindingDependenciesPresent()
1257 {
1258 return this.getSuperServiceOperation().isBindingDependenciesPresent();
1259 }
1260
1261
1262
1263
1264
1265 public boolean isConstraintsPresent()
1266 {
1267 return this.getSuperServiceOperation().isConstraintsPresent();
1268 }
1269
1270
1271
1272
1273
1274 public boolean isDocumentationPresent()
1275 {
1276 return this.getSuperServiceOperation().isDocumentationPresent();
1277 }
1278
1279
1280
1281
1282
1283 public boolean isReservedWord()
1284 {
1285 return this.getSuperServiceOperation().isReservedWord();
1286 }
1287
1288
1289
1290
1291
1292
1293 public boolean isTemplateParametersPresent()
1294 {
1295 return this.getSuperServiceOperation().isTemplateParametersPresent();
1296 }
1297
1298
1299
1300
1301
1302
1303
1304 public boolean isValidIdentifierName()
1305 {
1306 return this.getSuperServiceOperation().isValidIdentifierName();
1307 }
1308
1309
1310
1311
1312
1313
1314
1315 public String translateConstraint(String name, String translation)
1316 {
1317 return this.getSuperServiceOperation().translateConstraint(name, translation);
1318 }
1319
1320
1321
1322
1323
1324 public String[] translateConstraints(String translation)
1325 {
1326 return this.getSuperServiceOperation().translateConstraints(translation);
1327 }
1328
1329
1330
1331
1332
1333 public String[] translateConstraints(String kind, String translation)
1334 {
1335 return this.getSuperServiceOperation().translateConstraints(kind, translation);
1336 }
1337
1338
1339
1340
1341
1342
1343 public ParameterFacade findParameter(String name)
1344 {
1345 return this.getSuperServiceOperation().findParameter(name);
1346 }
1347
1348
1349
1350
1351
1352
1353
1354 public Object findTaggedValue(String name, boolean follow)
1355 {
1356 return this.getSuperServiceOperation().findTaggedValue(name, follow);
1357 }
1358
1359
1360
1361
1362
1363 public String getArgumentNames()
1364 {
1365 return this.getSuperServiceOperation().getArgumentNames();
1366 }
1367
1368
1369
1370
1371
1372 public String getArgumentTypeNames()
1373 {
1374 return this.getSuperServiceOperation().getArgumentTypeNames();
1375 }
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385 public Collection<ParameterFacade> getArguments()
1386 {
1387 return this.getSuperServiceOperation().getArguments();
1388 }
1389
1390
1391
1392
1393
1394 public String getCall()
1395 {
1396 return this.getSuperServiceOperation().getCall();
1397 }
1398
1399
1400
1401
1402
1403
1404
1405 public String getConcurrency()
1406 {
1407 return this.getSuperServiceOperation().getConcurrency();
1408 }
1409
1410
1411
1412
1413
1414
1415 public String getExceptionList()
1416 {
1417 return this.getSuperServiceOperation().getExceptionList();
1418 }
1419
1420
1421
1422
1423
1424
1425 public String getExceptionList(String initialExceptions)
1426 {
1427 return this.getSuperServiceOperation().getExceptionList(initialExceptions);
1428 }
1429
1430
1431
1432
1433
1434 public Collection<ModelElementFacade> getExceptions()
1435 {
1436 return this.getSuperServiceOperation().getExceptions();
1437 }
1438
1439
1440
1441
1442
1443 public String getGetterSetterReturnTypeName()
1444 {
1445 return this.getSuperServiceOperation().getGetterSetterReturnTypeName();
1446 }
1447
1448
1449
1450
1451
1452
1453 public int getLower()
1454 {
1455 return this.getSuperServiceOperation().getLower();
1456 }
1457
1458
1459
1460
1461
1462 public String getMethodBody()
1463 {
1464 return this.getSuperServiceOperation().getMethodBody();
1465 }
1466
1467
1468
1469
1470
1471 public OperationFacade getOverriddenOperation()
1472 {
1473 return this.getSuperServiceOperation().getOverriddenOperation();
1474 }
1475
1476
1477
1478
1479
1480 public ClassifierFacade getOwner()
1481 {
1482 return this.getSuperServiceOperation().getOwner();
1483 }
1484
1485
1486
1487
1488
1489 public Collection<ParameterFacade> getParameters()
1490 {
1491 return this.getSuperServiceOperation().getParameters();
1492 }
1493
1494
1495
1496
1497
1498 public String getPostconditionName()
1499 {
1500 return this.getSuperServiceOperation().getPostconditionName();
1501 }
1502
1503
1504
1505
1506
1507 public Collection<ConstraintFacade> getPostconditions()
1508 {
1509 return this.getSuperServiceOperation().getPostconditions();
1510 }
1511
1512
1513
1514
1515
1516 public String getPreconditionCall()
1517 {
1518 return this.getSuperServiceOperation().getPreconditionCall();
1519 }
1520
1521
1522
1523
1524
1525 public String getPreconditionName()
1526 {
1527 return this.getSuperServiceOperation().getPreconditionName();
1528 }
1529
1530
1531
1532
1533
1534 public String getPreconditionSignature()
1535 {
1536 return this.getSuperServiceOperation().getPreconditionSignature();
1537 }
1538
1539
1540
1541
1542
1543 public Collection<ConstraintFacade> getPreconditions()
1544 {
1545 return this.getSuperServiceOperation().getPreconditions();
1546 }
1547
1548
1549
1550
1551
1552 public ParameterFacade getReturnParameter()
1553 {
1554 return this.getSuperServiceOperation().getReturnParameter();
1555 }
1556
1557
1558
1559
1560
1561 public ClassifierFacade getReturnType()
1562 {
1563 return this.getSuperServiceOperation().getReturnType();
1564 }
1565
1566
1567
1568
1569
1570
1571 public String getSignature()
1572 {
1573 return this.getSuperServiceOperation().getSignature();
1574 }
1575
1576
1577
1578
1579
1580
1581
1582 public String getSignature(boolean withArgumentNames)
1583 {
1584 return this.getSuperServiceOperation().getSignature(withArgumentNames);
1585 }
1586
1587
1588
1589
1590
1591
1592 public String getSignature(String argumentModifier)
1593 {
1594 return this.getSuperServiceOperation().getSignature(argumentModifier);
1595 }
1596
1597
1598
1599
1600
1601 public String getTypedArgumentList()
1602 {
1603 return this.getSuperServiceOperation().getTypedArgumentList();
1604 }
1605
1606
1607
1608
1609
1610
1611 public String getTypedArgumentList(String modifier)
1612 {
1613 return this.getSuperServiceOperation().getTypedArgumentList(modifier);
1614 }
1615
1616
1617
1618
1619
1620
1621 public int getUpper()
1622 {
1623 return this.getSuperServiceOperation().getUpper();
1624 }
1625
1626
1627
1628
1629
1630 public boolean isAbstract()
1631 {
1632 return this.getSuperServiceOperation().isAbstract();
1633 }
1634
1635
1636
1637
1638
1639 public boolean isExceptionsPresent()
1640 {
1641 return this.getSuperServiceOperation().isExceptionsPresent();
1642 }
1643
1644
1645
1646
1647
1648
1649 public boolean isLeaf()
1650 {
1651 return this.getSuperServiceOperation().isLeaf();
1652 }
1653
1654
1655
1656
1657
1658
1659 public boolean isMany()
1660 {
1661 return this.getSuperServiceOperation().isMany();
1662 }
1663
1664
1665
1666
1667
1668
1669 public boolean isOrdered()
1670 {
1671 return this.getSuperServiceOperation().isOrdered();
1672 }
1673
1674
1675
1676
1677
1678
1679
1680 public boolean isOverriding()
1681 {
1682 return this.getSuperServiceOperation().isOverriding();
1683 }
1684
1685
1686
1687
1688
1689 public boolean isPostconditionsPresent()
1690 {
1691 return this.getSuperServiceOperation().isPostconditionsPresent();
1692 }
1693
1694
1695
1696
1697
1698 public boolean isPreconditionsPresent()
1699 {
1700 return this.getSuperServiceOperation().isPreconditionsPresent();
1701 }
1702
1703
1704
1705
1706
1707 public boolean isQuery()
1708 {
1709 return this.getSuperServiceOperation().isQuery();
1710 }
1711
1712
1713
1714
1715
1716
1717 public boolean isReturnTypePresent()
1718 {
1719 return this.getSuperServiceOperation().isReturnTypePresent();
1720 }
1721
1722
1723
1724
1725
1726 public boolean isStatic()
1727 {
1728 return this.getSuperServiceOperation().isStatic();
1729 }
1730
1731
1732
1733
1734
1735
1736 public boolean isUnique()
1737 {
1738 return this.getSuperServiceOperation().isUnique();
1739 }
1740
1741
1742
1743
1744
1745 public Destination getIncomingDestination()
1746 {
1747 return this.getSuperServiceOperation().getIncomingDestination();
1748 }
1749
1750
1751
1752
1753
1754 public Destination getOutgoingDestination()
1755 {
1756 return this.getSuperServiceOperation().getOutgoingDestination();
1757 }
1758
1759
1760
1761
1762
1763 public Collection<Role> getRoles()
1764 {
1765 return this.getSuperServiceOperation().getRoles();
1766 }
1767
1768
1769
1770
1771
1772 public Service getService()
1773 {
1774 return this.getSuperServiceOperation().getService();
1775 }
1776
1777
1778
1779
1780
1781
1782 public boolean isIncomingMessageOperation()
1783 {
1784 return this.getSuperServiceOperation().isIncomingMessageOperation();
1785 }
1786
1787
1788
1789
1790
1791 public boolean isMessageOperation()
1792 {
1793 return this.getSuperServiceOperation().isMessageOperation();
1794 }
1795
1796
1797
1798
1799
1800
1801 public boolean isOutgoingMessageOperation()
1802 {
1803 return this.getSuperServiceOperation().isOutgoingMessageOperation();
1804 }
1805
1806
1807
1808
1809 @Override
1810 public void initialize()
1811 {
1812 this.getSuperServiceOperation().initialize();
1813 }
1814
1815
1816
1817
1818
1819 @Override
1820 public Object getValidationOwner()
1821 {
1822 Object owner = this.getSuperServiceOperation().getValidationOwner();
1823 return owner;
1824 }
1825
1826
1827
1828
1829
1830 @Override
1831 public String getValidationName()
1832 {
1833 String name = this.getSuperServiceOperation().getValidationName();
1834 return name;
1835 }
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847 @Override
1848 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
1849 {
1850 this.getSuperServiceOperation().validateInvariants(validationMessages);
1851 try
1852 {
1853 final Object contextElement = this.THIS();
1854 boolean constraintValid = OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(contextElement,"exposed"))).booleanValue()?OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"returnType.collectionType"),false):true));
1855 if (!constraintValid)
1856 {
1857 validationMessages.add(
1858 new ModelValidationMessage(
1859 (MetafacadeBase)contextElement ,
1860 "org::andromda::cartridges::webservice::metafacades::WebServiceOperation::a web service operation return type can not be a collection type",
1861 "A web service operation's return type can NOT be a collection type, you'll need to model an array instead."));
1862 }
1863 }
1864 catch (Throwable th)
1865 {
1866 Throwable cause = th.getCause();
1867 int depth = 0;
1868 while (cause != null && depth < 7)
1869 {
1870 th = cause;
1871 depth++;
1872 }
1873 logger.error("Error validating constraint 'org::andromda::cartridges::webservice::metafacades::WebServiceOperation::a web service operation return type can not be a collection type' ON "
1874 + this.THIS().toString() + ": " + th.getMessage(), th);
1875 }
1876 try
1877 {
1878 final Object contextElement = this.THIS();
1879 boolean constraintValid = OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(contextElement,"exposed"))).booleanValue()?OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"webFaultOnAllExceptions"),true):true));
1880 if (!constraintValid)
1881 {
1882 validationMessages.add(
1883 new ModelValidationMessage(
1884 (MetafacadeBase)contextElement ,
1885 "org::andromda::cartridges::webservice::metafacades::WebServiceOperation::a web service operation exception must be a web fault",
1886 "Each web service operation exception must have the web fault stereotype."));
1887 }
1888 }
1889 catch (Throwable th)
1890 {
1891 Throwable cause = th.getCause();
1892 int depth = 0;
1893 while (cause != null && depth < 7)
1894 {
1895 th = cause;
1896 depth++;
1897 }
1898 logger.error("Error validating constraint 'org::andromda::cartridges::webservice::metafacades::WebServiceOperation::a web service operation exception must be a web fault' ON "
1899 + this.THIS().toString() + ": " + th.getMessage(), th);
1900 }
1901 }
1902
1903
1904
1905
1906 private static final String NAME_PROPERTY = "name";
1907 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
1908
1909
1910
1911
1912 @Override
1913 public String toString()
1914 {
1915 final StringBuilder toString = new StringBuilder(this.getClass().getName());
1916 toString.append("[");
1917 try
1918 {
1919 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
1920 }
1921 catch (final Throwable tryAgain)
1922 {
1923 try
1924 {
1925 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
1926 }
1927 catch (final Throwable ignore)
1928 {
1929
1930 }
1931 }
1932 toString.append("]");
1933 return toString.toString();
1934 }
1935 }