1
2
3
4 package org.andromda.metafacades.uml14;
5
6 /***
7 * MetafacadeLogic for org.andromda.metafacades.uml.FrontEndParameter
8 *
9 * @see org.andromda.metafacades.uml.FrontEndParameter
10 */
11 public abstract class FrontEndParameterLogic
12 extends org.andromda.metafacades.uml14.ParameterFacadeLogicImpl
13 implements org.andromda.metafacades.uml.FrontEndParameter
14 {
15
16 protected Object metaObject;
17
18 public FrontEndParameterLogic(Object metaObject, String context)
19 {
20 super((org.omg.uml.foundation.core.Parameter)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.FrontEndParameter";
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.FrontEndParameter
50 */
51 public boolean isFrontEndParameterMetaType()
52 {
53 return true;
54 }
55
56
57
58 /***
59 * @see org.andromda.metafacades.uml.FrontEndParameter#isControllerOperationArgument()
60 */
61 protected abstract boolean handleIsControllerOperationArgument();
62
63 private void handleIsControllerOperationArgument1aPreCondition()
64 {
65 }
66
67 private void handleIsControllerOperationArgument1aPostCondition()
68 {
69 }
70
71 private boolean __controllerOperationArgument1a;
72 private boolean __controllerOperationArgument1aSet = false;
73
74 public final boolean isControllerOperationArgument()
75 {
76 boolean controllerOperationArgument1a = this.__controllerOperationArgument1a;
77 if (!this.__controllerOperationArgument1aSet)
78 {
79 handleIsControllerOperationArgument1aPreCondition();
80 controllerOperationArgument1a = handleIsControllerOperationArgument();
81 handleIsControllerOperationArgument1aPostCondition();
82 this.__controllerOperationArgument1a = controllerOperationArgument1a;
83 if (isMetafacadePropertyCachingEnabled())
84 {
85 this.__controllerOperationArgument1aSet = true;
86 }
87 }
88 return controllerOperationArgument1a;
89 }
90
91 /***
92 * @see org.andromda.metafacades.uml.FrontEndParameter#isContainedInFrontEndUseCase()
93 */
94 protected abstract boolean handleIsContainedInFrontEndUseCase();
95
96 private void handleIsContainedInFrontEndUseCase2aPreCondition()
97 {
98 }
99
100 private void handleIsContainedInFrontEndUseCase2aPostCondition()
101 {
102 }
103
104 private boolean __containedInFrontEndUseCase2a;
105 private boolean __containedInFrontEndUseCase2aSet = false;
106
107 public final boolean isContainedInFrontEndUseCase()
108 {
109 boolean containedInFrontEndUseCase2a = this.__containedInFrontEndUseCase2a;
110 if (!this.__containedInFrontEndUseCase2aSet)
111 {
112 handleIsContainedInFrontEndUseCase2aPreCondition();
113 containedInFrontEndUseCase2a = handleIsContainedInFrontEndUseCase();
114 handleIsContainedInFrontEndUseCase2aPostCondition();
115 this.__containedInFrontEndUseCase2a = containedInFrontEndUseCase2a;
116 if (isMetafacadePropertyCachingEnabled())
117 {
118 this.__containedInFrontEndUseCase2aSet = true;
119 }
120 }
121 return containedInFrontEndUseCase2a;
122 }
123
124 /***
125 * @see org.andromda.metafacades.uml.FrontEndParameter#isActionParameter()
126 */
127 protected abstract boolean handleIsActionParameter();
128
129 private void handleIsActionParameter3aPreCondition()
130 {
131 }
132
133 private void handleIsActionParameter3aPostCondition()
134 {
135 }
136
137 private boolean __actionParameter3a;
138 private boolean __actionParameter3aSet = false;
139
140 public final boolean isActionParameter()
141 {
142 boolean actionParameter3a = this.__actionParameter3a;
143 if (!this.__actionParameter3aSet)
144 {
145 handleIsActionParameter3aPreCondition();
146 actionParameter3a = handleIsActionParameter();
147 handleIsActionParameter3aPostCondition();
148 this.__actionParameter3a = actionParameter3a;
149 if (isMetafacadePropertyCachingEnabled())
150 {
151 this.__actionParameter3aSet = true;
152 }
153 }
154 return actionParameter3a;
155 }
156
157 /***
158 * @see org.andromda.metafacades.uml.FrontEndParameter#isTable()
159 */
160 protected abstract boolean handleIsTable();
161
162 private void handleIsTable4aPreCondition()
163 {
164 }
165
166 private void handleIsTable4aPostCondition()
167 {
168 }
169
170 private boolean __table4a;
171 private boolean __table4aSet = false;
172
173 public final boolean isTable()
174 {
175 boolean table4a = this.__table4a;
176 if (!this.__table4aSet)
177 {
178 handleIsTable4aPreCondition();
179 table4a = handleIsTable();
180 handleIsTable4aPostCondition();
181 this.__table4a = table4a;
182 if (isMetafacadePropertyCachingEnabled())
183 {
184 this.__table4aSet = true;
185 }
186 }
187 return table4a;
188 }
189
190 /***
191 * @see org.andromda.metafacades.uml.FrontEndParameter#getTableColumnNames()
192 */
193 protected abstract java.util.Collection handleGetTableColumnNames();
194
195 private void handleGetTableColumnNames5aPreCondition()
196 {
197 }
198
199 private void handleGetTableColumnNames5aPostCondition()
200 {
201 }
202
203 private java.util.Collection __tableColumnNames5a;
204 private boolean __tableColumnNames5aSet = false;
205
206 public final java.util.Collection getTableColumnNames()
207 {
208 java.util.Collection tableColumnNames5a = this.__tableColumnNames5a;
209 if (!this.__tableColumnNames5aSet)
210 {
211 handleGetTableColumnNames5aPreCondition();
212 tableColumnNames5a = handleGetTableColumnNames();
213 handleGetTableColumnNames5aPostCondition();
214 this.__tableColumnNames5a = tableColumnNames5a;
215 if (isMetafacadePropertyCachingEnabled())
216 {
217 this.__tableColumnNames5aSet = true;
218 }
219 }
220 return tableColumnNames5a;
221 }
222
223 /***
224 * @see org.andromda.metafacades.uml.FrontEndParameter#getTableColumns()
225 */
226 protected abstract java.util.Collection handleGetTableColumns();
227
228 private void handleGetTableColumns6aPreCondition()
229 {
230 }
231
232 private void handleGetTableColumns6aPostCondition()
233 {
234 }
235
236 private java.util.Collection __tableColumns6a;
237 private boolean __tableColumns6aSet = false;
238
239 public final java.util.Collection getTableColumns()
240 {
241 java.util.Collection tableColumns6a = this.__tableColumns6a;
242 if (!this.__tableColumns6aSet)
243 {
244 handleGetTableColumns6aPreCondition();
245 tableColumns6a = handleGetTableColumns();
246 handleGetTableColumns6aPostCondition();
247 this.__tableColumns6a = tableColumns6a;
248 if (isMetafacadePropertyCachingEnabled())
249 {
250 this.__tableColumns6aSet = true;
251 }
252 }
253 return tableColumns6a;
254 }
255
256 /***
257 * @see org.andromda.metafacades.uml.FrontEndParameter#getTableAttributeNames()
258 */
259 protected abstract java.util.Collection handleGetTableAttributeNames();
260
261 private void handleGetTableAttributeNames7aPreCondition()
262 {
263 }
264
265 private void handleGetTableAttributeNames7aPostCondition()
266 {
267 }
268
269 private java.util.Collection __tableAttributeNames7a;
270 private boolean __tableAttributeNames7aSet = false;
271
272 public final java.util.Collection getTableAttributeNames()
273 {
274 java.util.Collection tableAttributeNames7a = this.__tableAttributeNames7a;
275 if (!this.__tableAttributeNames7aSet)
276 {
277 handleGetTableAttributeNames7aPreCondition();
278 tableAttributeNames7a = handleGetTableAttributeNames();
279 handleGetTableAttributeNames7aPostCondition();
280 this.__tableAttributeNames7a = tableAttributeNames7a;
281 if (isMetafacadePropertyCachingEnabled())
282 {
283 this.__tableAttributeNames7aSet = true;
284 }
285 }
286 return tableAttributeNames7a;
287 }
288
289
290
291 private void handleGetControllerOperation1rPreCondition()
292 {
293 }
294
295 private void handleGetControllerOperation1rPostCondition()
296 {
297 }
298
299 private org.andromda.metafacades.uml.FrontEndControllerOperation __getControllerOperation1r;
300 private boolean __getControllerOperation1rSet = false;
301
302 public final org.andromda.metafacades.uml.FrontEndControllerOperation getControllerOperation()
303 {
304 org.andromda.metafacades.uml.FrontEndControllerOperation getControllerOperation1r = this.__getControllerOperation1r;
305 if (!this.__getControllerOperation1rSet)
306 {
307 handleGetControllerOperation1rPreCondition();
308 Object result = this.shieldedElement(handleGetControllerOperation());
309 try
310 {
311 getControllerOperation1r = (org.andromda.metafacades.uml.FrontEndControllerOperation)result;
312 }
313 catch (ClassCastException ex)
314 {
315
316
317 }
318 handleGetControllerOperation1rPostCondition();
319 this.__getControllerOperation1r = getControllerOperation1r;
320 if (isMetafacadePropertyCachingEnabled())
321 {
322 this.__getControllerOperation1rSet = true;
323 }
324 }
325 return getControllerOperation1r;
326 }
327
328 protected abstract java.lang.Object handleGetControllerOperation();
329
330 private void handleGetView2rPreCondition()
331 {
332 }
333
334 private void handleGetView2rPostCondition()
335 {
336 }
337
338 private org.andromda.metafacades.uml.FrontEndView __getView2r;
339 private boolean __getView2rSet = false;
340
341 public final org.andromda.metafacades.uml.FrontEndView getView()
342 {
343 org.andromda.metafacades.uml.FrontEndView getView2r = this.__getView2r;
344 if (!this.__getView2rSet)
345 {
346 handleGetView2rPreCondition();
347 Object result = this.shieldedElement(handleGetView());
348 try
349 {
350 getView2r = (org.andromda.metafacades.uml.FrontEndView)result;
351 }
352 catch (ClassCastException ex)
353 {
354
355
356 }
357 handleGetView2rPostCondition();
358 this.__getView2r = getView2r;
359 if (isMetafacadePropertyCachingEnabled())
360 {
361 this.__getView2rSet = true;
362 }
363 }
364 return getView2r;
365 }
366
367 protected abstract java.lang.Object handleGetView();
368
369 private void handleGetAction3rPreCondition()
370 {
371 }
372
373 private void handleGetAction3rPostCondition()
374 {
375 }
376
377 private org.andromda.metafacades.uml.FrontEndAction __getAction3r;
378 private boolean __getAction3rSet = false;
379
380 public final org.andromda.metafacades.uml.FrontEndAction getAction()
381 {
382 org.andromda.metafacades.uml.FrontEndAction getAction3r = this.__getAction3r;
383 if (!this.__getAction3rSet)
384 {
385 handleGetAction3rPreCondition();
386 Object result = this.shieldedElement(handleGetAction());
387 try
388 {
389 getAction3r = (org.andromda.metafacades.uml.FrontEndAction)result;
390 }
391 catch (ClassCastException ex)
392 {
393
394
395 }
396 handleGetAction3rPostCondition();
397 this.__getAction3r = getAction3r;
398 if (isMetafacadePropertyCachingEnabled())
399 {
400 this.__getAction3rSet = true;
401 }
402 }
403 return getAction3r;
404 }
405
406 protected abstract java.lang.Object handleGetAction();
407
408 /***
409 * @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(java.util.Collection)
410 */
411 public void validateInvariants(java.util.Collection validationMessages)
412 {
413 super.validateInvariants(validationMessages);
414 }
415
416 /***
417 * The property that stores the name of the metafacade.
418 */
419 private static final String NAME_PROPERTY = "name";
420
421 /***
422 * @see java.lang.Object#toString()
423 */
424 public String toString()
425 {
426 final StringBuffer toString = new StringBuffer(this.getClass().getName());
427 toString.append("[");
428 try
429 {
430 toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
431 }
432 catch (final Throwable throwable)
433 {
434
435 }
436 toString.append("]");
437 return toString.toString();
438 }
439 }