1
2
3
4 package org.andromda.cartridges.spring.metafacades;
5
6 /***
7 * MetafacadeLogic for org.andromda.cartridges.spring.metafacades.SpringManageableEntityAttribute
8 *
9 * @see org.andromda.cartridges.spring.metafacades.SpringManageableEntityAttribute
10 */
11 public abstract class SpringManageableEntityAttributeLogic
12 extends org.andromda.core.metafacade.MetafacadeBase
13 implements org.andromda.cartridges.spring.metafacades.SpringManageableEntityAttribute
14 {
15
16 protected Object metaObject;
17
18 public SpringManageableEntityAttributeLogic(Object metaObject, String context)
19 {
20 super(metaObject, getContext(context));
21 this.superManageableEntityAttribute =
22 (org.andromda.metafacades.uml.ManageableEntityAttribute)
23 org.andromda.core.metafacade.MetafacadeFactory.getInstance().createFacadeImpl(
24 "org.andromda.metafacades.uml.ManageableEntityAttribute",
25 metaObject,
26 getContext(context));
27 this.metaObject = metaObject;
28 }
29
30 /***
31 * Gets the context for this metafacade logic instance.
32 */
33 private static String getContext(String context)
34 {
35 if (context == null)
36 {
37 context = "org.andromda.cartridges.spring.metafacades.SpringManageableEntityAttribute";
38 }
39 return context;
40 }
41
42 private org.andromda.metafacades.uml.ManageableEntityAttribute superManageableEntityAttribute;
43 private boolean superManageableEntityAttributeInitialized = false;
44
45 /***
46 * Gets the org.andromda.metafacades.uml.ManageableEntityAttribute parent instance.
47 */
48 private org.andromda.metafacades.uml.ManageableEntityAttribute getSuperManageableEntityAttribute()
49 {
50 if (!this.superManageableEntityAttributeInitialized)
51 {
52 ((org.andromda.core.metafacade.MetafacadeBase)superManageableEntityAttribute).setMetafacadeContext(this.getMetafacadeContext());
53 this.superManageableEntityAttributeInitialized = true;
54 }
55 return superManageableEntityAttribute;
56 }
57
58 /***
59 * @see org.andromda.core.metafacade.MetafacadeBase
60 */
61 public void resetMetafacadeContext(String context)
62 {
63 if (!this.contextRoot)
64 {
65 context = getContext(context);
66 setMetafacadeContext (context);
67 if (this.superManageableEntityAttributeInitialized)
68 {
69 ((org.andromda.core.metafacade.MetafacadeBase)superManageableEntityAttribute).resetMetafacadeContext(context);
70 }
71 }
72 }
73
74 /***
75 * @see org.andromda.cartridges.spring.metafacades.SpringManageableEntityAttribute
76 */
77 public boolean isSpringManageableEntityAttributeMetaType()
78 {
79 return true;
80 }
81
82 /***
83 * @see org.andromda.metafacades.uml.ManageableEntityAttribute
84 */
85 public boolean isManageableEntityAttributeMetaType()
86 {
87 return true;
88 }
89
90 /***
91 * @see org.andromda.metafacades.uml.EntityAttribute
92 */
93 public boolean isEntityAttributeMetaType()
94 {
95 return true;
96 }
97
98 /***
99 * @see org.andromda.metafacades.uml.AttributeFacade
100 */
101 public boolean isAttributeFacadeMetaType()
102 {
103 return true;
104 }
105
106 /***
107 * @see org.andromda.metafacades.uml.ModelElementFacade
108 */
109 public boolean isModelElementFacadeMetaType()
110 {
111 return true;
112 }
113
114
115
116 public java.lang.Object findTaggedValue(java.lang.String name, boolean follow)
117 {
118 return this.getSuperManageableEntityAttribute().findTaggedValue(name, follow);
119 }
120
121
122 public java.lang.String getDefaultValue()
123 {
124 return this.getSuperManageableEntityAttribute().getDefaultValue();
125 }
126
127
128 public org.andromda.metafacades.uml.EnumerationFacade getEnumeration()
129 {
130 return this.getSuperManageableEntityAttribute().getEnumeration();
131 }
132
133
134 public java.lang.String getEnumerationLiteralParameters()
135 {
136 return this.getSuperManageableEntityAttribute().getEnumerationLiteralParameters();
137 }
138
139
140 public java.lang.String getEnumerationValue()
141 {
142 return this.getSuperManageableEntityAttribute().getEnumerationValue();
143 }
144
145
146 public java.lang.String getGetterName()
147 {
148 return this.getSuperManageableEntityAttribute().getGetterName();
149 }
150
151
152 public java.lang.String getGetterSetterTypeName()
153 {
154 return this.getSuperManageableEntityAttribute().getGetterSetterTypeName();
155 }
156
157
158 public int getLower()
159 {
160 return this.getSuperManageableEntityAttribute().getLower();
161 }
162
163
164 public org.andromda.metafacades.uml.ClassifierFacade getOwner()
165 {
166 return this.getSuperManageableEntityAttribute().getOwner();
167 }
168
169
170 public java.lang.String getSetterName()
171 {
172 return this.getSuperManageableEntityAttribute().getSetterName();
173 }
174
175
176 public org.andromda.metafacades.uml.ClassifierFacade getType()
177 {
178 return this.getSuperManageableEntityAttribute().getType();
179 }
180
181
182 public int getUpper()
183 {
184 return this.getSuperManageableEntityAttribute().getUpper();
185 }
186
187
188 public boolean isAddOnly()
189 {
190 return this.getSuperManageableEntityAttribute().isAddOnly();
191 }
192
193
194 public boolean isChangeable()
195 {
196 return this.getSuperManageableEntityAttribute().isChangeable();
197 }
198
199
200 public boolean isDefaultValuePresent()
201 {
202 return this.getSuperManageableEntityAttribute().isDefaultValuePresent();
203 }
204
205
206 public boolean isEnumerationLiteral()
207 {
208 return this.getSuperManageableEntityAttribute().isEnumerationLiteral();
209 }
210
211
212 public boolean isEnumerationLiteralParametersExist()
213 {
214 return this.getSuperManageableEntityAttribute().isEnumerationLiteralParametersExist();
215 }
216
217
218 public boolean isEnumerationMember()
219 {
220 return this.getSuperManageableEntityAttribute().isEnumerationMember();
221 }
222
223
224 public boolean isMany()
225 {
226 return this.getSuperManageableEntityAttribute().isMany();
227 }
228
229
230 public boolean isOrdered()
231 {
232 return this.getSuperManageableEntityAttribute().isOrdered();
233 }
234
235
236 public boolean isReadOnly()
237 {
238 return this.getSuperManageableEntityAttribute().isReadOnly();
239 }
240
241
242 public boolean isRequired()
243 {
244 return this.getSuperManageableEntityAttribute().isRequired();
245 }
246
247
248 public boolean isStatic()
249 {
250 return this.getSuperManageableEntityAttribute().isStatic();
251 }
252
253
254 public java.lang.String getColumnIndex()
255 {
256 return this.getSuperManageableEntityAttribute().getColumnIndex();
257 }
258
259
260 public java.lang.String getColumnLength()
261 {
262 return this.getSuperManageableEntityAttribute().getColumnLength();
263 }
264
265
266 public java.lang.String getColumnName()
267 {
268 return this.getSuperManageableEntityAttribute().getColumnName();
269 }
270
271
272 public org.andromda.metafacades.uml.TypeMappings getJdbcMappings()
273 {
274 return this.getSuperManageableEntityAttribute().getJdbcMappings();
275 }
276
277
278 public java.lang.String getJdbcType()
279 {
280 return this.getSuperManageableEntityAttribute().getJdbcType();
281 }
282
283
284 public org.andromda.metafacades.uml.TypeMappings getSqlMappings()
285 {
286 return this.getSuperManageableEntityAttribute().getSqlMappings();
287 }
288
289
290 public java.lang.String getSqlType()
291 {
292 return this.getSuperManageableEntityAttribute().getSqlType();
293 }
294
295
296 public java.lang.String getUniqueGroup()
297 {
298 return this.getSuperManageableEntityAttribute().getUniqueGroup();
299 }
300
301
302 public boolean isIdentifier()
303 {
304 return this.getSuperManageableEntityAttribute().isIdentifier();
305 }
306
307
308 public boolean isTransient()
309 {
310 return this.getSuperManageableEntityAttribute().isTransient();
311 }
312
313
314 public boolean isUnique()
315 {
316 return this.getSuperManageableEntityAttribute().isUnique();
317 }
318
319
320 public boolean isDisplay()
321 {
322 return this.getSuperManageableEntityAttribute().isDisplay();
323 }
324
325
326 public boolean isManageableGetterAvailable()
327 {
328 return this.getSuperManageableEntityAttribute().isManageableGetterAvailable();
329 }
330
331
332 public void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
333 {
334 this.getSuperManageableEntityAttribute().copyTaggedValues(element);
335 }
336
337
338 public java.lang.Object findTaggedValue(java.lang.String tagName)
339 {
340 return this.getSuperManageableEntityAttribute().findTaggedValue(tagName);
341 }
342
343
344 public java.util.Collection findTaggedValues(java.lang.String tagName)
345 {
346 return this.getSuperManageableEntityAttribute().findTaggedValues(tagName);
347 }
348
349
350 public java.util.Collection getConstraints()
351 {
352 return this.getSuperManageableEntityAttribute().getConstraints();
353 }
354
355
356 public java.util.Collection getConstraints(java.lang.String kind)
357 {
358 return this.getSuperManageableEntityAttribute().getConstraints(kind);
359 }
360
361
362 public java.lang.String getDocumentation(java.lang.String indent, int lineLength)
363 {
364 return this.getSuperManageableEntityAttribute().getDocumentation(indent, lineLength);
365 }
366
367
368 public java.lang.String getDocumentation(java.lang.String indent, int lineLength, boolean htmlStyle)
369 {
370 return this.getSuperManageableEntityAttribute().getDocumentation(indent, lineLength, htmlStyle);
371 }
372
373
374 public java.lang.String getDocumentation(java.lang.String indent)
375 {
376 return this.getSuperManageableEntityAttribute().getDocumentation(indent);
377 }
378
379
380 public java.lang.String getFullyQualifiedName(boolean modelName)
381 {
382 return this.getSuperManageableEntityAttribute().getFullyQualifiedName(modelName);
383 }
384
385
386 public java.lang.String getFullyQualifiedName()
387 {
388 return this.getSuperManageableEntityAttribute().getFullyQualifiedName();
389 }
390
391
392 public java.lang.String getFullyQualifiedNamePath()
393 {
394 return this.getSuperManageableEntityAttribute().getFullyQualifiedNamePath();
395 }
396
397
398 public java.lang.String getId()
399 {
400 return this.getSuperManageableEntityAttribute().getId();
401 }
402
403
404 public org.andromda.metafacades.uml.TypeMappings getLanguageMappings()
405 {
406 return this.getSuperManageableEntityAttribute().getLanguageMappings();
407 }
408
409
410 public org.andromda.metafacades.uml.ModelFacade getModel()
411 {
412 return this.getSuperManageableEntityAttribute().getModel();
413 }
414
415
416 public java.lang.String getName()
417 {
418 return this.getSuperManageableEntityAttribute().getName();
419 }
420
421
422 public org.andromda.metafacades.uml.ModelElementFacade getPackage()
423 {
424 return this.getSuperManageableEntityAttribute().getPackage();
425 }
426
427
428 public java.lang.String getPackageName(boolean modelName)
429 {
430 return this.getSuperManageableEntityAttribute().getPackageName(modelName);
431 }
432
433
434 public java.lang.String getPackageName()
435 {
436 return this.getSuperManageableEntityAttribute().getPackageName();
437 }
438
439
440 public java.lang.String getPackagePath()
441 {
442 return this.getSuperManageableEntityAttribute().getPackagePath();
443 }
444
445
446 public org.andromda.metafacades.uml.PackageFacade getRootPackage()
447 {
448 return this.getSuperManageableEntityAttribute().getRootPackage();
449 }
450
451
452 public java.util.Collection getSourceDependencies()
453 {
454 return this.getSuperManageableEntityAttribute().getSourceDependencies();
455 }
456
457
458 public org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext()
459 {
460 return this.getSuperManageableEntityAttribute().getStateMachineContext();
461 }
462
463
464 public java.util.Collection getStereotypeNames()
465 {
466 return this.getSuperManageableEntityAttribute().getStereotypeNames();
467 }
468
469
470 public java.util.Collection getStereotypes()
471 {
472 return this.getSuperManageableEntityAttribute().getStereotypes();
473 }
474
475
476 public java.util.Collection getTaggedValues()
477 {
478 return this.getSuperManageableEntityAttribute().getTaggedValues();
479 }
480
481
482 public java.util.Collection getTargetDependencies()
483 {
484 return this.getSuperManageableEntityAttribute().getTargetDependencies();
485 }
486
487
488 public java.lang.Object getTemplateParameter(java.lang.String parameterName)
489 {
490 return this.getSuperManageableEntityAttribute().getTemplateParameter(parameterName);
491 }
492
493
494 public java.util.Collection getTemplateParameters()
495 {
496 return this.getSuperManageableEntityAttribute().getTemplateParameters();
497 }
498
499
500 public java.lang.String getVisibility()
501 {
502 return this.getSuperManageableEntityAttribute().getVisibility();
503 }
504
505
506 public boolean hasExactStereotype(java.lang.String stereotypeName)
507 {
508 return this.getSuperManageableEntityAttribute().hasExactStereotype(stereotypeName);
509 }
510
511
512 public boolean hasStereotype(java.lang.String stereotypeName)
513 {
514 return this.getSuperManageableEntityAttribute().hasStereotype(stereotypeName);
515 }
516
517
518 public boolean isBindingDependenciesPresent()
519 {
520 return this.getSuperManageableEntityAttribute().isBindingDependenciesPresent();
521 }
522
523
524 public boolean isConstraintsPresent()
525 {
526 return this.getSuperManageableEntityAttribute().isConstraintsPresent();
527 }
528
529
530 public boolean isTemplateParametersPresent()
531 {
532 return this.getSuperManageableEntityAttribute().isTemplateParametersPresent();
533 }
534
535
536 public java.lang.String translateConstraint(java.lang.String name, java.lang.String translation)
537 {
538 return this.getSuperManageableEntityAttribute().translateConstraint(name, translation);
539 }
540
541
542 public java.lang.String[] translateConstraints(java.lang.String translation)
543 {
544 return this.getSuperManageableEntityAttribute().translateConstraints(translation);
545 }
546
547
548 public java.lang.String[] translateConstraints(java.lang.String kind, java.lang.String translation)
549 {
550 return this.getSuperManageableEntityAttribute().translateConstraints(kind, translation);
551 }
552
553 /***
554 * @see org.andromda.core.metafacade.MetafacadeBase#initialize()
555 */
556 public void initialize()
557 {
558 this.getSuperManageableEntityAttribute().initialize();
559 }
560
561 /***
562 * @see org.andromda.core.metafacade.MetafacadeBase#getValidationOwner()
563 */
564 public Object getValidationOwner()
565 {
566 Object owner = this.getSuperManageableEntityAttribute().getValidationOwner();
567 return owner;
568 }
569
570 /***
571 * @see org.andromda.core.metafacade.MetafacadeBase#getValidationName()
572 */
573 public String getValidationName()
574 {
575 String name = this.getSuperManageableEntityAttribute().getValidationName();
576 return name;
577 }
578
579 /***
580 * @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(java.util.Collection)
581 */
582 public void validateInvariants(java.util.Collection validationMessages)
583 {
584 this.getSuperManageableEntityAttribute().validateInvariants(validationMessages);
585 }
586
587 /***
588 * The property that stores the name of the metafacade.
589 */
590 private static final String NAME_PROPERTY = "name";
591
592 /***
593 * @see java.lang.Object#toString()
594 */
595 public String toString()
596 {
597 final StringBuffer toString = new StringBuffer(this.getClass().getName());
598 toString.append("[");
599 try
600 {
601 toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
602 }
603 catch (final Throwable throwable)
604 {
605
606 }
607 toString.append("]");
608 return toString.toString();
609 }
610 }