1
2
3
4 package org.andromda.cartridges.bpm4struts.metafacades;
5
6 /***
7 * MetafacadeLogic for org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAssociationEnd
8 *
9 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAssociationEnd
10 */
11 public abstract class StrutsManageableEntityAssociationEndLogic
12 extends org.andromda.core.metafacade.MetafacadeBase
13 implements org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAssociationEnd
14 {
15
16 protected Object metaObject;
17
18 public StrutsManageableEntityAssociationEndLogic(Object metaObject, String context)
19 {
20 super(metaObject, getContext(context));
21 this.superManageableEntityAssociationEnd =
22 (org.andromda.metafacades.uml.ManageableEntityAssociationEnd)
23 org.andromda.core.metafacade.MetafacadeFactory.getInstance().createFacadeImpl(
24 "org.andromda.metafacades.uml.ManageableEntityAssociationEnd",
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.bpm4struts.metafacades.StrutsManageableEntityAssociationEnd";
38 }
39 return context;
40 }
41
42 private org.andromda.metafacades.uml.ManageableEntityAssociationEnd superManageableEntityAssociationEnd;
43 private boolean superManageableEntityAssociationEndInitialized = false;
44
45 /***
46 * Gets the org.andromda.metafacades.uml.ManageableEntityAssociationEnd parent instance.
47 */
48 private org.andromda.metafacades.uml.ManageableEntityAssociationEnd getSuperManageableEntityAssociationEnd()
49 {
50 if (!this.superManageableEntityAssociationEndInitialized)
51 {
52 ((org.andromda.core.metafacade.MetafacadeBase)superManageableEntityAssociationEnd).setMetafacadeContext(this.getMetafacadeContext());
53 this.superManageableEntityAssociationEndInitialized = true;
54 }
55 return superManageableEntityAssociationEnd;
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.superManageableEntityAssociationEndInitialized)
68 {
69 ((org.andromda.core.metafacade.MetafacadeBase)superManageableEntityAssociationEnd).resetMetafacadeContext(context);
70 }
71 }
72 }
73
74 /***
75 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAssociationEnd
76 */
77 public boolean isStrutsManageableEntityAssociationEndMetaType()
78 {
79 return true;
80 }
81
82
83
84 /***
85 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAssociationEnd#getMessageKey()
86 */
87 protected abstract java.lang.String handleGetMessageKey();
88
89 private void handleGetMessageKey1aPreCondition()
90 {
91 }
92
93 private void handleGetMessageKey1aPostCondition()
94 {
95 }
96
97 private java.lang.String __messageKey1a;
98 private boolean __messageKey1aSet = false;
99
100 public final java.lang.String getMessageKey()
101 {
102 java.lang.String messageKey1a = this.__messageKey1a;
103 if (!this.__messageKey1aSet)
104 {
105 handleGetMessageKey1aPreCondition();
106 messageKey1a = handleGetMessageKey();
107 handleGetMessageKey1aPostCondition();
108 this.__messageKey1a = messageKey1a;
109 if (isMetafacadePropertyCachingEnabled())
110 {
111 this.__messageKey1aSet = true;
112 }
113 }
114 return messageKey1a;
115 }
116
117 /***
118 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAssociationEnd#getMessageValue()
119 */
120 protected abstract java.lang.String handleGetMessageValue();
121
122 private void handleGetMessageValue2aPreCondition()
123 {
124 }
125
126 private void handleGetMessageValue2aPostCondition()
127 {
128 }
129
130 private java.lang.String __messageValue2a;
131 private boolean __messageValue2aSet = false;
132
133 public final java.lang.String getMessageValue()
134 {
135 java.lang.String messageValue2a = this.__messageValue2a;
136 if (!this.__messageValue2aSet)
137 {
138 handleGetMessageValue2aPreCondition();
139 messageValue2a = handleGetMessageValue();
140 handleGetMessageValue2aPostCondition();
141 this.__messageValue2a = messageValue2a;
142 if (isMetafacadePropertyCachingEnabled())
143 {
144 this.__messageValue2aSet = true;
145 }
146 }
147 return messageValue2a;
148 }
149
150 /***
151 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAssociationEnd#isSafeNamePresent()
152 */
153 protected abstract boolean handleIsSafeNamePresent();
154
155 private void handleIsSafeNamePresent3aPreCondition()
156 {
157 }
158
159 private void handleIsSafeNamePresent3aPostCondition()
160 {
161 }
162
163 private boolean __safeNamePresent3a;
164 private boolean __safeNamePresent3aSet = false;
165
166 public final boolean isSafeNamePresent()
167 {
168 boolean safeNamePresent3a = this.__safeNamePresent3a;
169 if (!this.__safeNamePresent3aSet)
170 {
171 handleIsSafeNamePresent3aPreCondition();
172 safeNamePresent3a = handleIsSafeNamePresent();
173 handleIsSafeNamePresent3aPostCondition();
174 this.__safeNamePresent3a = safeNamePresent3a;
175 if (isMetafacadePropertyCachingEnabled())
176 {
177 this.__safeNamePresent3aSet = true;
178 }
179 }
180 return safeNamePresent3a;
181 }
182
183 /***
184 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAssociationEnd#getOnlineHelpKey()
185 */
186 protected abstract java.lang.String handleGetOnlineHelpKey();
187
188 private void handleGetOnlineHelpKey4aPreCondition()
189 {
190 }
191
192 private void handleGetOnlineHelpKey4aPostCondition()
193 {
194 }
195
196 private java.lang.String __onlineHelpKey4a;
197 private boolean __onlineHelpKey4aSet = false;
198
199 public final java.lang.String getOnlineHelpKey()
200 {
201 java.lang.String onlineHelpKey4a = this.__onlineHelpKey4a;
202 if (!this.__onlineHelpKey4aSet)
203 {
204 handleGetOnlineHelpKey4aPreCondition();
205 onlineHelpKey4a = handleGetOnlineHelpKey();
206 handleGetOnlineHelpKey4aPostCondition();
207 this.__onlineHelpKey4a = onlineHelpKey4a;
208 if (isMetafacadePropertyCachingEnabled())
209 {
210 this.__onlineHelpKey4aSet = true;
211 }
212 }
213 return onlineHelpKey4a;
214 }
215
216 /***
217 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAssociationEnd#getOnlineHelpValue()
218 */
219 protected abstract java.lang.String handleGetOnlineHelpValue();
220
221 private void handleGetOnlineHelpValue5aPreCondition()
222 {
223 }
224
225 private void handleGetOnlineHelpValue5aPostCondition()
226 {
227 }
228
229 private java.lang.String __onlineHelpValue5a;
230 private boolean __onlineHelpValue5aSet = false;
231
232 public final java.lang.String getOnlineHelpValue()
233 {
234 java.lang.String onlineHelpValue5a = this.__onlineHelpValue5a;
235 if (!this.__onlineHelpValue5aSet)
236 {
237 handleGetOnlineHelpValue5aPreCondition();
238 onlineHelpValue5a = handleGetOnlineHelpValue();
239 handleGetOnlineHelpValue5aPostCondition();
240 this.__onlineHelpValue5a = onlineHelpValue5a;
241 if (isMetafacadePropertyCachingEnabled())
242 {
243 this.__onlineHelpValue5aSet = true;
244 }
245 }
246 return onlineHelpValue5a;
247 }
248
249 /***
250 * @see org.andromda.metafacades.uml.ManageableEntityAssociationEnd
251 */
252 public boolean isManageableEntityAssociationEndMetaType()
253 {
254 return true;
255 }
256
257 /***
258 * @see org.andromda.metafacades.uml.EntityAssociationEnd
259 */
260 public boolean isEntityAssociationEndMetaType()
261 {
262 return true;
263 }
264
265 /***
266 * @see org.andromda.metafacades.uml.AssociationEndFacade
267 */
268 public boolean isAssociationEndFacadeMetaType()
269 {
270 return true;
271 }
272
273 /***
274 * @see org.andromda.metafacades.uml.ModelElementFacade
275 */
276 public boolean isModelElementFacadeMetaType()
277 {
278 return true;
279 }
280
281
282
283 public org.andromda.metafacades.uml.AssociationFacade getAssociation()
284 {
285 return this.getSuperManageableEntityAssociationEnd().getAssociation();
286 }
287
288
289 public java.lang.String getGetterName()
290 {
291 return this.getSuperManageableEntityAssociationEnd().getGetterName();
292 }
293
294
295 public java.lang.String getGetterSetterTypeName()
296 {
297 return this.getSuperManageableEntityAssociationEnd().getGetterSetterTypeName();
298 }
299
300
301 public int getLower()
302 {
303 return this.getSuperManageableEntityAssociationEnd().getLower();
304 }
305
306
307 public org.andromda.metafacades.uml.AssociationEndFacade getOtherEnd()
308 {
309 return this.getSuperManageableEntityAssociationEnd().getOtherEnd();
310 }
311
312
313 public java.lang.String getSetterName()
314 {
315 return this.getSuperManageableEntityAssociationEnd().getSetterName();
316 }
317
318
319 public org.andromda.metafacades.uml.ClassifierFacade getType()
320 {
321 return this.getSuperManageableEntityAssociationEnd().getType();
322 }
323
324
325 public int getUpper()
326 {
327 return this.getSuperManageableEntityAssociationEnd().getUpper();
328 }
329
330
331 public boolean isAggregation()
332 {
333 return this.getSuperManageableEntityAssociationEnd().isAggregation();
334 }
335
336
337 public boolean isChild()
338 {
339 return this.getSuperManageableEntityAssociationEnd().isChild();
340 }
341
342
343 public boolean isComposition()
344 {
345 return this.getSuperManageableEntityAssociationEnd().isComposition();
346 }
347
348
349 public boolean isMany()
350 {
351 return this.getSuperManageableEntityAssociationEnd().isMany();
352 }
353
354
355 public boolean isMany2Many()
356 {
357 return this.getSuperManageableEntityAssociationEnd().isMany2Many();
358 }
359
360
361 public boolean isMany2One()
362 {
363 return this.getSuperManageableEntityAssociationEnd().isMany2One();
364 }
365
366
367 public boolean isNavigable()
368 {
369 return this.getSuperManageableEntityAssociationEnd().isNavigable();
370 }
371
372
373 public boolean isOne2Many()
374 {
375 return this.getSuperManageableEntityAssociationEnd().isOne2Many();
376 }
377
378
379 public boolean isOne2One()
380 {
381 return this.getSuperManageableEntityAssociationEnd().isOne2One();
382 }
383
384
385 public boolean isOrdered()
386 {
387 return this.getSuperManageableEntityAssociationEnd().isOrdered();
388 }
389
390
391 public boolean isReadOnly()
392 {
393 return this.getSuperManageableEntityAssociationEnd().isReadOnly();
394 }
395
396
397 public boolean isRequired()
398 {
399 return this.getSuperManageableEntityAssociationEnd().isRequired();
400 }
401
402
403 public java.lang.String getColumnIndex()
404 {
405 return this.getSuperManageableEntityAssociationEnd().getColumnIndex();
406 }
407
408
409 public java.lang.String getColumnName()
410 {
411 return this.getSuperManageableEntityAssociationEnd().getColumnName();
412 }
413
414
415 public java.lang.String getForeignKeyConstraintName()
416 {
417 return this.getSuperManageableEntityAssociationEnd().getForeignKeyConstraintName();
418 }
419
420
421 public java.lang.String getForeignKeySuffix()
422 {
423 return this.getSuperManageableEntityAssociationEnd().getForeignKeySuffix();
424 }
425
426
427 public java.lang.String getSqlType()
428 {
429 return this.getSuperManageableEntityAssociationEnd().getSqlType();
430 }
431
432
433 public boolean isForeignIdentifier()
434 {
435 return this.getSuperManageableEntityAssociationEnd().isForeignIdentifier();
436 }
437
438
439 public boolean isIdentifiersPresent()
440 {
441 return this.getSuperManageableEntityAssociationEnd().isIdentifiersPresent();
442 }
443
444
445 public boolean isTransient()
446 {
447 return this.getSuperManageableEntityAssociationEnd().isTransient();
448 }
449
450
451 public org.andromda.metafacades.uml.EntityAttribute getManageableIdentifier()
452 {
453 return this.getSuperManageableEntityAssociationEnd().getManageableIdentifier();
454 }
455
456
457 public boolean isDisplay()
458 {
459 return this.getSuperManageableEntityAssociationEnd().isDisplay();
460 }
461
462
463 public void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
464 {
465 this.getSuperManageableEntityAssociationEnd().copyTaggedValues(element);
466 }
467
468
469 public java.lang.Object findTaggedValue(java.lang.String tagName)
470 {
471 return this.getSuperManageableEntityAssociationEnd().findTaggedValue(tagName);
472 }
473
474
475 public java.util.Collection findTaggedValues(java.lang.String tagName)
476 {
477 return this.getSuperManageableEntityAssociationEnd().findTaggedValues(tagName);
478 }
479
480
481 public java.util.Collection getConstraints()
482 {
483 return this.getSuperManageableEntityAssociationEnd().getConstraints();
484 }
485
486
487 public java.util.Collection getConstraints(java.lang.String kind)
488 {
489 return this.getSuperManageableEntityAssociationEnd().getConstraints(kind);
490 }
491
492
493 public java.lang.String getDocumentation(java.lang.String indent, int lineLength)
494 {
495 return this.getSuperManageableEntityAssociationEnd().getDocumentation(indent, lineLength);
496 }
497
498
499 public java.lang.String getDocumentation(java.lang.String indent, int lineLength, boolean htmlStyle)
500 {
501 return this.getSuperManageableEntityAssociationEnd().getDocumentation(indent, lineLength, htmlStyle);
502 }
503
504
505 public java.lang.String getDocumentation(java.lang.String indent)
506 {
507 return this.getSuperManageableEntityAssociationEnd().getDocumentation(indent);
508 }
509
510
511 public java.lang.String getFullyQualifiedName(boolean modelName)
512 {
513 return this.getSuperManageableEntityAssociationEnd().getFullyQualifiedName(modelName);
514 }
515
516
517 public java.lang.String getFullyQualifiedName()
518 {
519 return this.getSuperManageableEntityAssociationEnd().getFullyQualifiedName();
520 }
521
522
523 public java.lang.String getFullyQualifiedNamePath()
524 {
525 return this.getSuperManageableEntityAssociationEnd().getFullyQualifiedNamePath();
526 }
527
528
529 public java.lang.String getId()
530 {
531 return this.getSuperManageableEntityAssociationEnd().getId();
532 }
533
534
535 public org.andromda.metafacades.uml.TypeMappings getLanguageMappings()
536 {
537 return this.getSuperManageableEntityAssociationEnd().getLanguageMappings();
538 }
539
540
541 public org.andromda.metafacades.uml.ModelFacade getModel()
542 {
543 return this.getSuperManageableEntityAssociationEnd().getModel();
544 }
545
546
547 public java.lang.String getName()
548 {
549 return this.getSuperManageableEntityAssociationEnd().getName();
550 }
551
552
553 public org.andromda.metafacades.uml.ModelElementFacade getPackage()
554 {
555 return this.getSuperManageableEntityAssociationEnd().getPackage();
556 }
557
558
559 public java.lang.String getPackageName(boolean modelName)
560 {
561 return this.getSuperManageableEntityAssociationEnd().getPackageName(modelName);
562 }
563
564
565 public java.lang.String getPackageName()
566 {
567 return this.getSuperManageableEntityAssociationEnd().getPackageName();
568 }
569
570
571 public java.lang.String getPackagePath()
572 {
573 return this.getSuperManageableEntityAssociationEnd().getPackagePath();
574 }
575
576
577 public org.andromda.metafacades.uml.PackageFacade getRootPackage()
578 {
579 return this.getSuperManageableEntityAssociationEnd().getRootPackage();
580 }
581
582
583 public java.util.Collection getSourceDependencies()
584 {
585 return this.getSuperManageableEntityAssociationEnd().getSourceDependencies();
586 }
587
588
589 public org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext()
590 {
591 return this.getSuperManageableEntityAssociationEnd().getStateMachineContext();
592 }
593
594
595 public java.util.Collection getStereotypeNames()
596 {
597 return this.getSuperManageableEntityAssociationEnd().getStereotypeNames();
598 }
599
600
601 public java.util.Collection getStereotypes()
602 {
603 return this.getSuperManageableEntityAssociationEnd().getStereotypes();
604 }
605
606
607 public java.util.Collection getTaggedValues()
608 {
609 return this.getSuperManageableEntityAssociationEnd().getTaggedValues();
610 }
611
612
613 public java.util.Collection getTargetDependencies()
614 {
615 return this.getSuperManageableEntityAssociationEnd().getTargetDependencies();
616 }
617
618
619 public java.lang.Object getTemplateParameter(java.lang.String parameterName)
620 {
621 return this.getSuperManageableEntityAssociationEnd().getTemplateParameter(parameterName);
622 }
623
624
625 public java.util.Collection getTemplateParameters()
626 {
627 return this.getSuperManageableEntityAssociationEnd().getTemplateParameters();
628 }
629
630
631 public java.lang.String getVisibility()
632 {
633 return this.getSuperManageableEntityAssociationEnd().getVisibility();
634 }
635
636
637 public boolean hasExactStereotype(java.lang.String stereotypeName)
638 {
639 return this.getSuperManageableEntityAssociationEnd().hasExactStereotype(stereotypeName);
640 }
641
642
643 public boolean hasStereotype(java.lang.String stereotypeName)
644 {
645 return this.getSuperManageableEntityAssociationEnd().hasStereotype(stereotypeName);
646 }
647
648
649 public boolean isBindingDependenciesPresent()
650 {
651 return this.getSuperManageableEntityAssociationEnd().isBindingDependenciesPresent();
652 }
653
654
655 public boolean isConstraintsPresent()
656 {
657 return this.getSuperManageableEntityAssociationEnd().isConstraintsPresent();
658 }
659
660
661 public boolean isTemplateParametersPresent()
662 {
663 return this.getSuperManageableEntityAssociationEnd().isTemplateParametersPresent();
664 }
665
666
667 public java.lang.String translateConstraint(java.lang.String name, java.lang.String translation)
668 {
669 return this.getSuperManageableEntityAssociationEnd().translateConstraint(name, translation);
670 }
671
672
673 public java.lang.String[] translateConstraints(java.lang.String translation)
674 {
675 return this.getSuperManageableEntityAssociationEnd().translateConstraints(translation);
676 }
677
678
679 public java.lang.String[] translateConstraints(java.lang.String kind, java.lang.String translation)
680 {
681 return this.getSuperManageableEntityAssociationEnd().translateConstraints(kind, translation);
682 }
683
684 /***
685 * @see org.andromda.core.metafacade.MetafacadeBase#initialize()
686 */
687 public void initialize()
688 {
689 this.getSuperManageableEntityAssociationEnd().initialize();
690 }
691
692 /***
693 * @see org.andromda.core.metafacade.MetafacadeBase#getValidationOwner()
694 */
695 public Object getValidationOwner()
696 {
697 Object owner = this.getSuperManageableEntityAssociationEnd().getValidationOwner();
698 return owner;
699 }
700
701 /***
702 * @see org.andromda.core.metafacade.MetafacadeBase#getValidationName()
703 */
704 public String getValidationName()
705 {
706 String name = this.getSuperManageableEntityAssociationEnd().getValidationName();
707 return name;
708 }
709
710 /***
711 * @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(java.util.Collection)
712 */
713 public void validateInvariants(java.util.Collection validationMessages)
714 {
715 this.getSuperManageableEntityAssociationEnd().validateInvariants(validationMessages);
716 {
717 final java.lang.Object contextElement = this.THIS(); boolean constraintValid = org.andromda.translation.ocl.validation.OCLResultEnsurer.ensure(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"safeNamePresent"));
718 if (!constraintValid)
719 validationMessages.add(
720 new org.andromda.core.metafacade.ModelValidationMessage(
721 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
722 "org::andromda::cartridges::bpm4struts::metafacades::StrutsManageableEntityAssociationEnd::SAFE NAME - TO BE REMOVED LATER",
723 "The names you give to fields cannot start with a lowercase character directly followed by a character in uppercase. This is due to a bug in the Jakarta commons library which is used by Struts. The behavior of that library is inconsistent with the reflection API provided by the JDK. Please rename this field or you'll get exceptions when running your web application."));
724 }
725 }
726
727 /***
728 * The property that stores the name of the metafacade.
729 */
730 private static final String NAME_PROPERTY = "name";
731
732 /***
733 * @see java.lang.Object#toString()
734 */
735 public String toString()
736 {
737 final StringBuffer toString = new StringBuffer(this.getClass().getName());
738 toString.append("[");
739 try
740 {
741 toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
742 }
743 catch (final Throwable throwable)
744 {
745
746 }
747 toString.append("]");
748 return toString.toString();
749 }
750 }