1
2
3
4 package org.andromda.metafacades.uml14;
5
6 /***
7 * MetafacadeLogic for org.andromda.metafacades.uml.FrontEndForward
8 *
9 * @see org.andromda.metafacades.uml.FrontEndForward
10 */
11 public abstract class FrontEndForwardLogic
12 extends org.andromda.metafacades.uml14.TransitionFacadeLogicImpl
13 implements org.andromda.metafacades.uml.FrontEndForward
14 {
15
16 protected Object metaObject;
17
18 public FrontEndForwardLogic(Object metaObject, String context)
19 {
20 super((org.omg.uml.behavioralelements.statemachines.Transition)metaObject, getContext(context));
21 this.metaObject = metaObject;
22 }
23
24 /***
25 * Gets the context for this metafacade logic instance.
26 */
27 private static String getContext(String context)
28 {
29 if (context == null)
30 {
31 context = "org.andromda.metafacades.uml.FrontEndForward";
32 }
33 return context;
34 }
35
36 /***
37 * @see org.andromda.core.metafacade.MetafacadeBase
38 */
39 public void resetMetafacadeContext(String context)
40 {
41 if (!this.contextRoot)
42 {
43 context = getContext(context);
44 setMetafacadeContext (context);
45 }
46 }
47
48 /***
49 * @see org.andromda.metafacades.uml.FrontEndForward
50 */
51 public boolean isFrontEndForwardMetaType()
52 {
53 return true;
54 }
55
56
57
58 /***
59 * @see org.andromda.metafacades.uml.FrontEndForward#isContainedInFrontEndUseCase()
60 */
61 protected abstract boolean handleIsContainedInFrontEndUseCase();
62
63 private void handleIsContainedInFrontEndUseCase1aPreCondition()
64 {
65 }
66
67 private void handleIsContainedInFrontEndUseCase1aPostCondition()
68 {
69 }
70
71 private boolean __containedInFrontEndUseCase1a;
72 private boolean __containedInFrontEndUseCase1aSet = false;
73
74 public final boolean isContainedInFrontEndUseCase()
75 {
76 boolean containedInFrontEndUseCase1a = this.__containedInFrontEndUseCase1a;
77 if (!this.__containedInFrontEndUseCase1aSet)
78 {
79 handleIsContainedInFrontEndUseCase1aPreCondition();
80 containedInFrontEndUseCase1a = handleIsContainedInFrontEndUseCase();
81 handleIsContainedInFrontEndUseCase1aPostCondition();
82 this.__containedInFrontEndUseCase1a = containedInFrontEndUseCase1a;
83 if (isMetafacadePropertyCachingEnabled())
84 {
85 this.__containedInFrontEndUseCase1aSet = true;
86 }
87 }
88 return containedInFrontEndUseCase1a;
89 }
90
91 /***
92 * @see org.andromda.metafacades.uml.FrontEndForward#getActionMethodName()
93 */
94 protected abstract java.lang.String handleGetActionMethodName();
95
96 private void handleGetActionMethodName2aPreCondition()
97 {
98 }
99
100 private void handleGetActionMethodName2aPostCondition()
101 {
102 }
103
104 private java.lang.String __actionMethodName2a;
105 private boolean __actionMethodName2aSet = false;
106
107 public final java.lang.String getActionMethodName()
108 {
109 java.lang.String actionMethodName2a = this.__actionMethodName2a;
110 if (!this.__actionMethodName2aSet)
111 {
112 handleGetActionMethodName2aPreCondition();
113 actionMethodName2a = handleGetActionMethodName();
114 handleGetActionMethodName2aPostCondition();
115 this.__actionMethodName2a = actionMethodName2a;
116 if (isMetafacadePropertyCachingEnabled())
117 {
118 this.__actionMethodName2aSet = true;
119 }
120 }
121 return actionMethodName2a;
122 }
123
124 /***
125 * @see org.andromda.metafacades.uml.FrontEndForward#isEnteringView()
126 */
127 protected abstract boolean handleIsEnteringView();
128
129 private void handleIsEnteringView3aPreCondition()
130 {
131 }
132
133 private void handleIsEnteringView3aPostCondition()
134 {
135 }
136
137 private boolean __enteringView3a;
138 private boolean __enteringView3aSet = false;
139
140 public final boolean isEnteringView()
141 {
142 boolean enteringView3a = this.__enteringView3a;
143 if (!this.__enteringView3aSet)
144 {
145 handleIsEnteringView3aPreCondition();
146 enteringView3a = handleIsEnteringView();
147 handleIsEnteringView3aPostCondition();
148 this.__enteringView3a = enteringView3a;
149 if (isMetafacadePropertyCachingEnabled())
150 {
151 this.__enteringView3aSet = true;
152 }
153 }
154 return enteringView3a;
155 }
156
157 /***
158 * @see org.andromda.metafacades.uml.FrontEndForward#isExitingView()
159 */
160 protected abstract boolean handleIsExitingView();
161
162 private void handleIsExitingView4aPreCondition()
163 {
164 }
165
166 private void handleIsExitingView4aPostCondition()
167 {
168 }
169
170 private boolean __exitingView4a;
171 private boolean __exitingView4aSet = false;
172
173 public final boolean isExitingView()
174 {
175 boolean exitingView4a = this.__exitingView4a;
176 if (!this.__exitingView4aSet)
177 {
178 handleIsExitingView4aPreCondition();
179 exitingView4a = handleIsExitingView();
180 handleIsExitingView4aPostCondition();
181 this.__exitingView4a = exitingView4a;
182 if (isMetafacadePropertyCachingEnabled())
183 {
184 this.__exitingView4aSet = true;
185 }
186 }
187 return exitingView4a;
188 }
189
190
191
192 private void handleGetFrontEndActivityGraph2rPreCondition()
193 {
194 }
195
196 private void handleGetFrontEndActivityGraph2rPostCondition()
197 {
198 }
199
200 private org.andromda.metafacades.uml.FrontEndActivityGraph __getFrontEndActivityGraph2r;
201 private boolean __getFrontEndActivityGraph2rSet = false;
202
203 public final org.andromda.metafacades.uml.FrontEndActivityGraph getFrontEndActivityGraph()
204 {
205 org.andromda.metafacades.uml.FrontEndActivityGraph getFrontEndActivityGraph2r = this.__getFrontEndActivityGraph2r;
206 if (!this.__getFrontEndActivityGraph2rSet)
207 {
208 handleGetFrontEndActivityGraph2rPreCondition();
209 Object result = this.shieldedElement(handleGetFrontEndActivityGraph());
210 try
211 {
212 getFrontEndActivityGraph2r = (org.andromda.metafacades.uml.FrontEndActivityGraph)result;
213 }
214 catch (ClassCastException ex)
215 {
216
217
218 }
219 handleGetFrontEndActivityGraph2rPostCondition();
220 this.__getFrontEndActivityGraph2r = getFrontEndActivityGraph2r;
221 if (isMetafacadePropertyCachingEnabled())
222 {
223 this.__getFrontEndActivityGraph2rSet = true;
224 }
225 }
226 return getFrontEndActivityGraph2r;
227 }
228
229 protected abstract java.lang.Object handleGetFrontEndActivityGraph();
230
231 private void handleGetUseCase3rPreCondition()
232 {
233 }
234
235 private void handleGetUseCase3rPostCondition()
236 {
237 }
238
239 private org.andromda.metafacades.uml.FrontEndUseCase __getUseCase3r;
240 private boolean __getUseCase3rSet = false;
241
242 public final org.andromda.metafacades.uml.FrontEndUseCase getUseCase()
243 {
244 org.andromda.metafacades.uml.FrontEndUseCase getUseCase3r = this.__getUseCase3r;
245 if (!this.__getUseCase3rSet)
246 {
247 handleGetUseCase3rPreCondition();
248 Object result = this.shieldedElement(handleGetUseCase());
249 try
250 {
251 getUseCase3r = (org.andromda.metafacades.uml.FrontEndUseCase)result;
252 }
253 catch (ClassCastException ex)
254 {
255
256
257 }
258 handleGetUseCase3rPostCondition();
259 this.__getUseCase3r = getUseCase3r;
260 if (isMetafacadePropertyCachingEnabled())
261 {
262 this.__getUseCase3rSet = true;
263 }
264 }
265 return getUseCase3r;
266 }
267
268 protected abstract java.lang.Object handleGetUseCase();
269
270 private void handleGetDecisionTrigger5rPreCondition()
271 {
272 }
273
274 private void handleGetDecisionTrigger5rPostCondition()
275 {
276 }
277
278 private org.andromda.metafacades.uml.FrontEndEvent __getDecisionTrigger5r;
279 private boolean __getDecisionTrigger5rSet = false;
280
281 public final org.andromda.metafacades.uml.FrontEndEvent getDecisionTrigger()
282 {
283 org.andromda.metafacades.uml.FrontEndEvent getDecisionTrigger5r = this.__getDecisionTrigger5r;
284 if (!this.__getDecisionTrigger5rSet)
285 {
286 handleGetDecisionTrigger5rPreCondition();
287 Object result = this.shieldedElement(handleGetDecisionTrigger());
288 try
289 {
290 getDecisionTrigger5r = (org.andromda.metafacades.uml.FrontEndEvent)result;
291 }
292 catch (ClassCastException ex)
293 {
294
295
296 }
297 handleGetDecisionTrigger5rPostCondition();
298 this.__getDecisionTrigger5r = getDecisionTrigger5r;
299 if (isMetafacadePropertyCachingEnabled())
300 {
301 this.__getDecisionTrigger5rSet = true;
302 }
303 }
304 return getDecisionTrigger5r;
305 }
306
307 protected abstract java.lang.Object handleGetDecisionTrigger();
308
309 private void handleGetActions6rPreCondition()
310 {
311 }
312
313 private void handleGetActions6rPostCondition()
314 {
315 }
316
317 private java.util.List __getActions6r;
318 private boolean __getActions6rSet = false;
319
320 public final java.util.List getActions()
321 {
322 java.util.List getActions6r = this.__getActions6r;
323 if (!this.__getActions6rSet)
324 {
325 handleGetActions6rPreCondition();
326 Object result = this.shieldedElements(handleGetActions());
327 try
328 {
329 getActions6r = (java.util.List)result;
330 }
331 catch (ClassCastException ex)
332 {
333
334
335 }
336 handleGetActions6rPostCondition();
337 this.__getActions6r = getActions6r;
338 if (isMetafacadePropertyCachingEnabled())
339 {
340 this.__getActions6rSet = true;
341 }
342 }
343 return getActions6r;
344 }
345
346 protected abstract java.util.List handleGetActions();
347
348 private void handleGetForwardParameters7rPreCondition()
349 {
350 }
351
352 private void handleGetForwardParameters7rPostCondition()
353 {
354 }
355
356 private java.util.List __getForwardParameters7r;
357 private boolean __getForwardParameters7rSet = false;
358
359 public final java.util.List getForwardParameters()
360 {
361 java.util.List getForwardParameters7r = this.__getForwardParameters7r;
362 if (!this.__getForwardParameters7rSet)
363 {
364 handleGetForwardParameters7rPreCondition();
365 Object result = this.shieldedElements(handleGetForwardParameters());
366 try
367 {
368 getForwardParameters7r = (java.util.List)result;
369 }
370 catch (ClassCastException ex)
371 {
372
373
374 }
375 handleGetForwardParameters7rPostCondition();
376 this.__getForwardParameters7r = getForwardParameters7r;
377 if (isMetafacadePropertyCachingEnabled())
378 {
379 this.__getForwardParameters7rSet = true;
380 }
381 }
382 return getForwardParameters7r;
383 }
384
385 protected abstract java.util.List handleGetForwardParameters();
386
387 private void handleGetOperationCall9rPreCondition()
388 {
389 }
390
391 private void handleGetOperationCall9rPostCondition()
392 {
393 }
394
395 private org.andromda.metafacades.uml.FrontEndControllerOperation __getOperationCall9r;
396 private boolean __getOperationCall9rSet = false;
397
398 public final org.andromda.metafacades.uml.FrontEndControllerOperation getOperationCall()
399 {
400 org.andromda.metafacades.uml.FrontEndControllerOperation getOperationCall9r = this.__getOperationCall9r;
401 if (!this.__getOperationCall9rSet)
402 {
403 handleGetOperationCall9rPreCondition();
404 Object result = this.shieldedElement(handleGetOperationCall());
405 try
406 {
407 getOperationCall9r = (org.andromda.metafacades.uml.FrontEndControllerOperation)result;
408 }
409 catch (ClassCastException ex)
410 {
411
412
413 }
414 handleGetOperationCall9rPostCondition();
415 this.__getOperationCall9r = getOperationCall9r;
416 if (isMetafacadePropertyCachingEnabled())
417 {
418 this.__getOperationCall9rSet = true;
419 }
420 }
421 return getOperationCall9r;
422 }
423
424 protected abstract java.lang.Object handleGetOperationCall();
425
426 /***
427 * @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(java.util.Collection)
428 */
429 public void validateInvariants(java.util.Collection validationMessages)
430 {
431 super.validateInvariants(validationMessages);
432 }
433
434 /***
435 * The property that stores the name of the metafacade.
436 */
437 private static final String NAME_PROPERTY = "name";
438
439 /***
440 * @see java.lang.Object#toString()
441 */
442 public String toString()
443 {
444 final StringBuffer toString = new StringBuffer(this.getClass().getName());
445 toString.append("[");
446 try
447 {
448 toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
449 }
450 catch (final Throwable throwable)
451 {
452
453 }
454 toString.append("]");
455 return toString.toString();
456 }
457 }