1
2
3
4
5 package org.andromda.cartridges.ejb3.metafacades;
6
7 import java.util.Collection;
8 import org.andromda.core.metafacade.ModelValidationMessage;
9
10
11
12
13
14
15
16 public abstract class EJB3WebServiceFacadeLogic
17 extends EJB3SessionFacadeLogicImpl
18 implements EJB3WebServiceFacade
19 {
20
21
22
23
24 protected Object metaObject;
25
26
27
28
29
30 protected EJB3WebServiceFacadeLogic(Object metaObjectIn, String context)
31 {
32 super(metaObjectIn, getContext(context));
33 this.metaObject = metaObjectIn;
34 }
35
36
37
38
39
40
41 private static String getContext(String context)
42 {
43 if (context == null)
44 {
45 context = "org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade";
46 }
47 return context;
48 }
49
50
51
52
53 @Override
54 public void resetMetafacadeContext(String context)
55 {
56 if (!this.contextRoot)
57 {
58 context = getContext(context);
59 setMetafacadeContext (context);
60 }
61 }
62
63
64
65
66
67 public boolean isEJB3WebServiceFacadeMetaType()
68 {
69 return true;
70 }
71
72
73
74
75
76
77
78 protected abstract String handleGetFullyQualifiedWebServiceInterfaceName();
79
80 private String __fullyQualifiedWebServiceInterfaceName1a;
81 private boolean __fullyQualifiedWebServiceInterfaceName1aSet = false;
82
83
84
85
86
87 public final String getFullyQualifiedWebServiceInterfaceName()
88 {
89 String fullyQualifiedWebServiceInterfaceName1a = this.__fullyQualifiedWebServiceInterfaceName1a;
90 if (!this.__fullyQualifiedWebServiceInterfaceName1aSet)
91 {
92
93 fullyQualifiedWebServiceInterfaceName1a = handleGetFullyQualifiedWebServiceInterfaceName();
94
95 this.__fullyQualifiedWebServiceInterfaceName1a = fullyQualifiedWebServiceInterfaceName1a;
96 if (isMetafacadePropertyCachingEnabled())
97 {
98 this.__fullyQualifiedWebServiceInterfaceName1aSet = true;
99 }
100 }
101 return fullyQualifiedWebServiceInterfaceName1a;
102 }
103
104
105
106
107
108 protected abstract String handleGetWebServiceInterfaceName();
109
110 private String __webServiceInterfaceName2a;
111 private boolean __webServiceInterfaceName2aSet = false;
112
113
114
115
116
117 public final String getWebServiceInterfaceName()
118 {
119 String webServiceInterfaceName2a = this.__webServiceInterfaceName2a;
120 if (!this.__webServiceInterfaceName2aSet)
121 {
122
123 webServiceInterfaceName2a = handleGetWebServiceInterfaceName();
124
125 this.__webServiceInterfaceName2a = webServiceInterfaceName2a;
126 if (isMetafacadePropertyCachingEnabled())
127 {
128 this.__webServiceInterfaceName2aSet = true;
129 }
130 }
131 return webServiceInterfaceName2a;
132 }
133
134
135
136
137
138 protected abstract String handleGetStyle();
139
140 private String __style3a;
141 private boolean __style3aSet = false;
142
143
144
145
146
147
148 public final String getStyle()
149 {
150 String style3a = this.__style3a;
151 if (!this.__style3aSet)
152 {
153
154 style3a = handleGetStyle();
155
156 this.__style3a = style3a;
157 if (isMetafacadePropertyCachingEnabled())
158 {
159 this.__style3aSet = true;
160 }
161 }
162 return style3a;
163 }
164
165
166
167
168
169 protected abstract String handleGetUse();
170
171 private String __use4a;
172 private boolean __use4aSet = false;
173
174
175
176
177
178
179 public final String getUse()
180 {
181 String use4a = this.__use4a;
182 if (!this.__use4aSet)
183 {
184
185 use4a = handleGetUse();
186
187 this.__use4a = use4a;
188 if (isMetafacadePropertyCachingEnabled())
189 {
190 this.__use4aSet = true;
191 }
192 }
193 return use4a;
194 }
195
196
197
198
199
200 protected abstract boolean handleIsRpcStyle();
201
202 private boolean __rpcStyle5a;
203 private boolean __rpcStyle5aSet = false;
204
205
206
207
208
209 public final boolean isRpcStyle()
210 {
211 boolean rpcStyle5a = this.__rpcStyle5a;
212 if (!this.__rpcStyle5aSet)
213 {
214
215 rpcStyle5a = handleIsRpcStyle();
216
217 this.__rpcStyle5a = rpcStyle5a;
218 if (isMetafacadePropertyCachingEnabled())
219 {
220 this.__rpcStyle5aSet = true;
221 }
222 }
223 return rpcStyle5a;
224 }
225
226
227
228
229
230 protected abstract boolean handleIsDocumentStyle();
231
232 private boolean __documentStyle6a;
233 private boolean __documentStyle6aSet = false;
234
235
236
237
238
239 public final boolean isDocumentStyle()
240 {
241 boolean documentStyle6a = this.__documentStyle6a;
242 if (!this.__documentStyle6aSet)
243 {
244
245 documentStyle6a = handleIsDocumentStyle();
246
247 this.__documentStyle6a = documentStyle6a;
248 if (isMetafacadePropertyCachingEnabled())
249 {
250 this.__documentStyle6aSet = true;
251 }
252 }
253 return documentStyle6a;
254 }
255
256
257
258
259
260 protected abstract boolean handleIsEncodedUse();
261
262 private boolean __encodedUse7a;
263 private boolean __encodedUse7aSet = false;
264
265
266
267
268
269 public final boolean isEncodedUse()
270 {
271 boolean encodedUse7a = this.__encodedUse7a;
272 if (!this.__encodedUse7aSet)
273 {
274
275 encodedUse7a = handleIsEncodedUse();
276
277 this.__encodedUse7a = encodedUse7a;
278 if (isMetafacadePropertyCachingEnabled())
279 {
280 this.__encodedUse7aSet = true;
281 }
282 }
283 return encodedUse7a;
284 }
285
286
287
288
289
290 protected abstract boolean handleIsLiteralUse();
291
292 private boolean __literalUse8a;
293 private boolean __literalUse8aSet = false;
294
295
296
297
298
299 public final boolean isLiteralUse()
300 {
301 boolean literalUse8a = this.__literalUse8a;
302 if (!this.__literalUse8aSet)
303 {
304
305 literalUse8a = handleIsLiteralUse();
306
307 this.__literalUse8a = literalUse8a;
308 if (isMetafacadePropertyCachingEnabled())
309 {
310 this.__literalUse8aSet = true;
311 }
312 }
313 return literalUse8a;
314 }
315
316
317
318
319
320 protected abstract boolean handleIsWebServiceOperationsExist();
321
322 private boolean __webServiceOperationsExist9a;
323 private boolean __webServiceOperationsExist9aSet = false;
324
325
326
327
328
329
330 public final boolean isWebServiceOperationsExist()
331 {
332 boolean webServiceOperationsExist9a = this.__webServiceOperationsExist9a;
333 if (!this.__webServiceOperationsExist9aSet)
334 {
335
336 webServiceOperationsExist9a = handleIsWebServiceOperationsExist();
337
338 this.__webServiceOperationsExist9a = webServiceOperationsExist9a;
339 if (isMetafacadePropertyCachingEnabled())
340 {
341 this.__webServiceOperationsExist9aSet = true;
342 }
343 }
344 return webServiceOperationsExist9a;
345 }
346
347
348
349
350
351 protected abstract boolean handleIsWrappedParameterStyle();
352
353 private boolean __wrappedParameterStyle10a;
354 private boolean __wrappedParameterStyle10aSet = false;
355
356
357
358
359
360 public final boolean isWrappedParameterStyle()
361 {
362 boolean wrappedParameterStyle10a = this.__wrappedParameterStyle10a;
363 if (!this.__wrappedParameterStyle10aSet)
364 {
365
366 wrappedParameterStyle10a = handleIsWrappedParameterStyle();
367
368 this.__wrappedParameterStyle10a = wrappedParameterStyle10a;
369 if (isMetafacadePropertyCachingEnabled())
370 {
371 this.__wrappedParameterStyle10aSet = true;
372 }
373 }
374 return wrappedParameterStyle10a;
375 }
376
377
378
379
380
381 protected abstract boolean handleIsBareParameterStyle();
382
383 private boolean __bareParameterStyle11a;
384 private boolean __bareParameterStyle11aSet = false;
385
386
387
388
389
390 public final boolean isBareParameterStyle()
391 {
392 boolean bareParameterStyle11a = this.__bareParameterStyle11a;
393 if (!this.__bareParameterStyle11aSet)
394 {
395
396 bareParameterStyle11a = handleIsBareParameterStyle();
397
398 this.__bareParameterStyle11a = bareParameterStyle11a;
399 if (isMetafacadePropertyCachingEnabled())
400 {
401 this.__bareParameterStyle11aSet = true;
402 }
403 }
404 return bareParameterStyle11a;
405 }
406
407
408
409
410
411 protected abstract String handleGetParameterStyle();
412
413 private String __parameterStyle12a;
414 private boolean __parameterStyle12aSet = false;
415
416
417
418
419
420
421
422 public final String getParameterStyle()
423 {
424 String parameterStyle12a = this.__parameterStyle12a;
425 if (!this.__parameterStyle12aSet)
426 {
427
428 parameterStyle12a = handleGetParameterStyle();
429
430 this.__parameterStyle12a = parameterStyle12a;
431 if (isMetafacadePropertyCachingEnabled())
432 {
433 this.__parameterStyle12aSet = true;
434 }
435 }
436 return parameterStyle12a;
437 }
438
439
440
441
442
443 protected abstract String handleGetQName();
444
445 private String __qName13a;
446 private boolean __qName13aSet = false;
447
448
449
450
451
452
453 public final String getQName()
454 {
455 String qName13a = this.__qName13a;
456 if (!this.__qName13aSet)
457 {
458
459 qName13a = handleGetQName();
460
461 this.__qName13a = qName13a;
462 if (isMetafacadePropertyCachingEnabled())
463 {
464 this.__qName13aSet = true;
465 }
466 }
467 return qName13a;
468 }
469
470
471
472
473
474 protected abstract String handleGetNamespace();
475
476 private String __namespace14a;
477 private boolean __namespace14aSet = false;
478
479
480
481
482
483 public final String getNamespace()
484 {
485 String namespace14a = this.__namespace14a;
486 if (!this.__namespace14aSet)
487 {
488
489 namespace14a = handleGetNamespace();
490
491 this.__namespace14a = namespace14a;
492 if (isMetafacadePropertyCachingEnabled())
493 {
494 this.__namespace14aSet = true;
495 }
496 }
497 return namespace14a;
498 }
499
500
501
502
503
504 @Override
505 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
506 {
507 super.validateInvariants(validationMessages);
508 }
509 }