1
2
3
4 package org.andromda.metafacades.uml14;
5
6 /***
7 * MetafacadeLogic for org.andromda.metafacades.uml.PseudostateFacade
8 *
9 * @see org.andromda.metafacades.uml.PseudostateFacade
10 */
11 public abstract class PseudostateFacadeLogic
12 extends org.andromda.metafacades.uml14.StateVertexFacadeLogicImpl
13 implements org.andromda.metafacades.uml.PseudostateFacade
14 {
15
16 protected org.omg.uml.behavioralelements.statemachines.Pseudostate metaObject;
17
18 public PseudostateFacadeLogic(org.omg.uml.behavioralelements.statemachines.Pseudostate metaObject, String context)
19 {
20 super(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.PseudostateFacade";
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.PseudostateFacade
50 */
51 public boolean isPseudostateFacadeMetaType()
52 {
53 return true;
54 }
55
56
57
58 /***
59 * @see org.andromda.metafacades.uml.PseudostateFacade#isChoice()
60 */
61 protected abstract boolean handleIsChoice();
62
63 private void handleIsChoice1aPreCondition()
64 {
65 }
66
67 private void handleIsChoice1aPostCondition()
68 {
69 }
70
71 private boolean __choice1a;
72 private boolean __choice1aSet = false;
73
74 public final boolean isChoice()
75 {
76 boolean choice1a = this.__choice1a;
77 if (!this.__choice1aSet)
78 {
79 handleIsChoice1aPreCondition();
80 choice1a = handleIsChoice();
81 handleIsChoice1aPostCondition();
82 this.__choice1a = choice1a;
83 if (isMetafacadePropertyCachingEnabled())
84 {
85 this.__choice1aSet = true;
86 }
87 }
88 return choice1a;
89 }
90
91 /***
92 * @see org.andromda.metafacades.uml.PseudostateFacade#isDecisionPoint()
93 */
94 protected abstract boolean handleIsDecisionPoint();
95
96 private void handleIsDecisionPoint2aPreCondition()
97 {
98 }
99
100 private void handleIsDecisionPoint2aPostCondition()
101 {
102 }
103
104 private boolean __decisionPoint2a;
105 private boolean __decisionPoint2aSet = false;
106
107 public final boolean isDecisionPoint()
108 {
109 boolean decisionPoint2a = this.__decisionPoint2a;
110 if (!this.__decisionPoint2aSet)
111 {
112 handleIsDecisionPoint2aPreCondition();
113 decisionPoint2a = handleIsDecisionPoint();
114 handleIsDecisionPoint2aPostCondition();
115 this.__decisionPoint2a = decisionPoint2a;
116 if (isMetafacadePropertyCachingEnabled())
117 {
118 this.__decisionPoint2aSet = true;
119 }
120 }
121 return decisionPoint2a;
122 }
123
124 /***
125 * @see org.andromda.metafacades.uml.PseudostateFacade#isDeepHistory()
126 */
127 protected abstract boolean handleIsDeepHistory();
128
129 private void handleIsDeepHistory3aPreCondition()
130 {
131 }
132
133 private void handleIsDeepHistory3aPostCondition()
134 {
135 }
136
137 private boolean __deepHistory3a;
138 private boolean __deepHistory3aSet = false;
139
140 public final boolean isDeepHistory()
141 {
142 boolean deepHistory3a = this.__deepHistory3a;
143 if (!this.__deepHistory3aSet)
144 {
145 handleIsDeepHistory3aPreCondition();
146 deepHistory3a = handleIsDeepHistory();
147 handleIsDeepHistory3aPostCondition();
148 this.__deepHistory3a = deepHistory3a;
149 if (isMetafacadePropertyCachingEnabled())
150 {
151 this.__deepHistory3aSet = true;
152 }
153 }
154 return deepHistory3a;
155 }
156
157 /***
158 * @see org.andromda.metafacades.uml.PseudostateFacade#isFork()
159 */
160 protected abstract boolean handleIsFork();
161
162 private void handleIsFork4aPreCondition()
163 {
164 }
165
166 private void handleIsFork4aPostCondition()
167 {
168 }
169
170 private boolean __fork4a;
171 private boolean __fork4aSet = false;
172
173 public final boolean isFork()
174 {
175 boolean fork4a = this.__fork4a;
176 if (!this.__fork4aSet)
177 {
178 handleIsFork4aPreCondition();
179 fork4a = handleIsFork();
180 handleIsFork4aPostCondition();
181 this.__fork4a = fork4a;
182 if (isMetafacadePropertyCachingEnabled())
183 {
184 this.__fork4aSet = true;
185 }
186 }
187 return fork4a;
188 }
189
190 /***
191 * @see org.andromda.metafacades.uml.PseudostateFacade#isInitialState()
192 */
193 protected abstract boolean handleIsInitialState();
194
195 private void handleIsInitialState5aPreCondition()
196 {
197 }
198
199 private void handleIsInitialState5aPostCondition()
200 {
201 }
202
203 private boolean __initialState5a;
204 private boolean __initialState5aSet = false;
205
206 public final boolean isInitialState()
207 {
208 boolean initialState5a = this.__initialState5a;
209 if (!this.__initialState5aSet)
210 {
211 handleIsInitialState5aPreCondition();
212 initialState5a = handleIsInitialState();
213 handleIsInitialState5aPostCondition();
214 this.__initialState5a = initialState5a;
215 if (isMetafacadePropertyCachingEnabled())
216 {
217 this.__initialState5aSet = true;
218 }
219 }
220 return initialState5a;
221 }
222
223 /***
224 * @see org.andromda.metafacades.uml.PseudostateFacade#isJoin()
225 */
226 protected abstract boolean handleIsJoin();
227
228 private void handleIsJoin6aPreCondition()
229 {
230 }
231
232 private void handleIsJoin6aPostCondition()
233 {
234 }
235
236 private boolean __join6a;
237 private boolean __join6aSet = false;
238
239 public final boolean isJoin()
240 {
241 boolean join6a = this.__join6a;
242 if (!this.__join6aSet)
243 {
244 handleIsJoin6aPreCondition();
245 join6a = handleIsJoin();
246 handleIsJoin6aPostCondition();
247 this.__join6a = join6a;
248 if (isMetafacadePropertyCachingEnabled())
249 {
250 this.__join6aSet = true;
251 }
252 }
253 return join6a;
254 }
255
256 /***
257 * @see org.andromda.metafacades.uml.PseudostateFacade#isJunction()
258 */
259 protected abstract boolean handleIsJunction();
260
261 private void handleIsJunction7aPreCondition()
262 {
263 }
264
265 private void handleIsJunction7aPostCondition()
266 {
267 }
268
269 private boolean __junction7a;
270 private boolean __junction7aSet = false;
271
272 public final boolean isJunction()
273 {
274 boolean junction7a = this.__junction7a;
275 if (!this.__junction7aSet)
276 {
277 handleIsJunction7aPreCondition();
278 junction7a = handleIsJunction();
279 handleIsJunction7aPostCondition();
280 this.__junction7a = junction7a;
281 if (isMetafacadePropertyCachingEnabled())
282 {
283 this.__junction7aSet = true;
284 }
285 }
286 return junction7a;
287 }
288
289 /***
290 * @see org.andromda.metafacades.uml.PseudostateFacade#isMergePoint()
291 */
292 protected abstract boolean handleIsMergePoint();
293
294 private void handleIsMergePoint8aPreCondition()
295 {
296 }
297
298 private void handleIsMergePoint8aPostCondition()
299 {
300 }
301
302 private boolean __mergePoint8a;
303 private boolean __mergePoint8aSet = false;
304
305 public final boolean isMergePoint()
306 {
307 boolean mergePoint8a = this.__mergePoint8a;
308 if (!this.__mergePoint8aSet)
309 {
310 handleIsMergePoint8aPreCondition();
311 mergePoint8a = handleIsMergePoint();
312 handleIsMergePoint8aPostCondition();
313 this.__mergePoint8a = mergePoint8a;
314 if (isMetafacadePropertyCachingEnabled())
315 {
316 this.__mergePoint8aSet = true;
317 }
318 }
319 return mergePoint8a;
320 }
321
322 /***
323 * @see org.andromda.metafacades.uml.PseudostateFacade#isShallowHistory()
324 */
325 protected abstract boolean handleIsShallowHistory();
326
327 private void handleIsShallowHistory9aPreCondition()
328 {
329 }
330
331 private void handleIsShallowHistory9aPostCondition()
332 {
333 }
334
335 private boolean __shallowHistory9a;
336 private boolean __shallowHistory9aSet = false;
337
338 public final boolean isShallowHistory()
339 {
340 boolean shallowHistory9a = this.__shallowHistory9a;
341 if (!this.__shallowHistory9aSet)
342 {
343 handleIsShallowHistory9aPreCondition();
344 shallowHistory9a = handleIsShallowHistory();
345 handleIsShallowHistory9aPostCondition();
346 this.__shallowHistory9a = shallowHistory9a;
347 if (isMetafacadePropertyCachingEnabled())
348 {
349 this.__shallowHistory9aSet = true;
350 }
351 }
352 return shallowHistory9a;
353 }
354
355 /***
356 * @see org.andromda.metafacades.uml.PseudostateFacade#isSplit()
357 */
358 protected abstract boolean handleIsSplit();
359
360 private void handleIsSplit10aPreCondition()
361 {
362 }
363
364 private void handleIsSplit10aPostCondition()
365 {
366 }
367
368 private boolean __split10a;
369 private boolean __split10aSet = false;
370
371 public final boolean isSplit()
372 {
373 boolean split10a = this.__split10a;
374 if (!this.__split10aSet)
375 {
376 handleIsSplit10aPreCondition();
377 split10a = handleIsSplit();
378 handleIsSplit10aPostCondition();
379 this.__split10a = split10a;
380 if (isMetafacadePropertyCachingEnabled())
381 {
382 this.__split10aSet = true;
383 }
384 }
385 return split10a;
386 }
387
388 /***
389 * @see org.andromda.metafacades.uml.PseudostateFacade#isCollect()
390 */
391 protected abstract boolean handleIsCollect();
392
393 private void handleIsCollect11aPreCondition()
394 {
395 }
396
397 private void handleIsCollect11aPostCondition()
398 {
399 }
400
401 private boolean __collect11a;
402 private boolean __collect11aSet = false;
403
404 public final boolean isCollect()
405 {
406 boolean collect11a = this.__collect11a;
407 if (!this.__collect11aSet)
408 {
409 handleIsCollect11aPreCondition();
410 collect11a = handleIsCollect();
411 handleIsCollect11aPostCondition();
412 this.__collect11a = collect11a;
413 if (isMetafacadePropertyCachingEnabled())
414 {
415 this.__collect11aSet = true;
416 }
417 }
418 return collect11a;
419 }
420
421
422
423 /***
424 * @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(java.util.Collection)
425 */
426 public void validateInvariants(java.util.Collection validationMessages)
427 {
428 super.validateInvariants(validationMessages);
429 }
430
431 /***
432 * The property that stores the name of the metafacade.
433 */
434 private static final String NAME_PROPERTY = "name";
435
436 /***
437 * @see java.lang.Object#toString()
438 */
439 public String toString()
440 {
441 final StringBuffer toString = new StringBuffer(this.getClass().getName());
442 toString.append("[");
443 try
444 {
445 toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
446 }
447 catch (final Throwable throwable)
448 {
449
450 }
451 toString.append("]");
452 return toString.toString();
453 }
454 }