1
2
3
4 package org.andromda.cartridges.bpm4struts.metafacades;
5
6 /***
7 * MetafacadeLogic for org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute
8 *
9 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute
10 */
11 public abstract class StrutsManageableEntityAttributeLogic
12 extends org.andromda.core.metafacade.MetafacadeBase
13 implements org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute
14 {
15
16 protected Object metaObject;
17
18 public StrutsManageableEntityAttributeLogic(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.bpm4struts.metafacades.StrutsManageableEntityAttribute";
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.bpm4struts.metafacades.StrutsManageableEntityAttribute
76 */
77 public boolean isStrutsManageableEntityAttributeMetaType()
78 {
79 return true;
80 }
81
82
83
84 /***
85 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute#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.StrutsManageableEntityAttribute#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.StrutsManageableEntityAttribute#getDateFormat()
152 */
153 protected abstract java.lang.String handleGetDateFormat();
154
155 private void handleGetDateFormat3aPreCondition()
156 {
157 }
158
159 private void handleGetDateFormat3aPostCondition()
160 {
161 }
162
163 private java.lang.String __dateFormat3a;
164 private boolean __dateFormat3aSet = false;
165
166 public final java.lang.String getDateFormat()
167 {
168 java.lang.String dateFormat3a = this.__dateFormat3a;
169 if (!this.__dateFormat3aSet)
170 {
171 handleGetDateFormat3aPreCondition();
172 dateFormat3a = handleGetDateFormat();
173 handleGetDateFormat3aPostCondition();
174 this.__dateFormat3a = dateFormat3a;
175 if (isMetafacadePropertyCachingEnabled())
176 {
177 this.__dateFormat3aSet = true;
178 }
179 }
180 return dateFormat3a;
181 }
182
183 /***
184 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute#isNeedsFileUpload()
185 */
186 protected abstract boolean handleIsNeedsFileUpload();
187
188 private void handleIsNeedsFileUpload4aPreCondition()
189 {
190 }
191
192 private void handleIsNeedsFileUpload4aPostCondition()
193 {
194 }
195
196 private boolean __needsFileUpload4a;
197 private boolean __needsFileUpload4aSet = false;
198
199 public final boolean isNeedsFileUpload()
200 {
201 boolean needsFileUpload4a = this.__needsFileUpload4a;
202 if (!this.__needsFileUpload4aSet)
203 {
204 handleIsNeedsFileUpload4aPreCondition();
205 needsFileUpload4a = handleIsNeedsFileUpload();
206 handleIsNeedsFileUpload4aPostCondition();
207 this.__needsFileUpload4a = needsFileUpload4a;
208 if (isMetafacadePropertyCachingEnabled())
209 {
210 this.__needsFileUpload4aSet = true;
211 }
212 }
213 return needsFileUpload4a;
214 }
215
216 /***
217 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute#isHidden()
218 */
219 protected abstract boolean handleIsHidden();
220
221 private void handleIsHidden5aPreCondition()
222 {
223 }
224
225 private void handleIsHidden5aPostCondition()
226 {
227 }
228
229 private boolean __hidden5a;
230 private boolean __hidden5aSet = false;
231
232 public final boolean isHidden()
233 {
234 boolean hidden5a = this.__hidden5a;
235 if (!this.__hidden5aSet)
236 {
237 handleIsHidden5aPreCondition();
238 hidden5a = handleIsHidden();
239 handleIsHidden5aPostCondition();
240 this.__hidden5a = hidden5a;
241 if (isMetafacadePropertyCachingEnabled())
242 {
243 this.__hidden5aSet = true;
244 }
245 }
246 return hidden5a;
247 }
248
249 /***
250 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute#getWidgetType()
251 */
252 protected abstract java.lang.String handleGetWidgetType();
253
254 private void handleGetWidgetType6aPreCondition()
255 {
256 }
257
258 private void handleGetWidgetType6aPostCondition()
259 {
260 }
261
262 private java.lang.String __widgetType6a;
263 private boolean __widgetType6aSet = false;
264
265 public final java.lang.String getWidgetType()
266 {
267 java.lang.String widgetType6a = this.__widgetType6a;
268 if (!this.__widgetType6aSet)
269 {
270 handleGetWidgetType6aPreCondition();
271 widgetType6a = handleGetWidgetType();
272 handleGetWidgetType6aPostCondition();
273 this.__widgetType6a = widgetType6a;
274 if (isMetafacadePropertyCachingEnabled())
275 {
276 this.__widgetType6aSet = true;
277 }
278 }
279 return widgetType6a;
280 }
281
282 /***
283 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute#isStrictDateFormat()
284 */
285 protected abstract boolean handleIsStrictDateFormat();
286
287 private void handleIsStrictDateFormat7aPreCondition()
288 {
289 }
290
291 private void handleIsStrictDateFormat7aPostCondition()
292 {
293 }
294
295 private boolean __strictDateFormat7a;
296 private boolean __strictDateFormat7aSet = false;
297
298 public final boolean isStrictDateFormat()
299 {
300 boolean strictDateFormat7a = this.__strictDateFormat7a;
301 if (!this.__strictDateFormat7aSet)
302 {
303 handleIsStrictDateFormat7aPreCondition();
304 strictDateFormat7a = handleIsStrictDateFormat();
305 handleIsStrictDateFormat7aPostCondition();
306 this.__strictDateFormat7a = strictDateFormat7a;
307 if (isMetafacadePropertyCachingEnabled())
308 {
309 this.__strictDateFormat7aSet = true;
310 }
311 }
312 return strictDateFormat7a;
313 }
314
315 /***
316 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute#getFieldRowCount()
317 */
318 protected abstract java.lang.Integer handleGetFieldRowCount();
319
320 private void handleGetFieldRowCount8aPreCondition()
321 {
322 }
323
324 private void handleGetFieldRowCount8aPostCondition()
325 {
326 }
327
328 private java.lang.Integer __fieldRowCount8a;
329 private boolean __fieldRowCount8aSet = false;
330
331 public final java.lang.Integer getFieldRowCount()
332 {
333 java.lang.Integer fieldRowCount8a = this.__fieldRowCount8a;
334 if (!this.__fieldRowCount8aSet)
335 {
336 handleGetFieldRowCount8aPreCondition();
337 fieldRowCount8a = handleGetFieldRowCount();
338 handleGetFieldRowCount8aPostCondition();
339 this.__fieldRowCount8a = fieldRowCount8a;
340 if (isMetafacadePropertyCachingEnabled())
341 {
342 this.__fieldRowCount8aSet = true;
343 }
344 }
345 return fieldRowCount8a;
346 }
347
348 /***
349 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute#getFieldColumnCount()
350 */
351 protected abstract java.lang.Integer handleGetFieldColumnCount();
352
353 private void handleGetFieldColumnCount9aPreCondition()
354 {
355 }
356
357 private void handleGetFieldColumnCount9aPostCondition()
358 {
359 }
360
361 private java.lang.Integer __fieldColumnCount9a;
362 private boolean __fieldColumnCount9aSet = false;
363
364 public final java.lang.Integer getFieldColumnCount()
365 {
366 java.lang.Integer fieldColumnCount9a = this.__fieldColumnCount9a;
367 if (!this.__fieldColumnCount9aSet)
368 {
369 handleGetFieldColumnCount9aPreCondition();
370 fieldColumnCount9a = handleGetFieldColumnCount();
371 handleGetFieldColumnCount9aPostCondition();
372 this.__fieldColumnCount9a = fieldColumnCount9a;
373 if (isMetafacadePropertyCachingEnabled())
374 {
375 this.__fieldColumnCount9aSet = true;
376 }
377 }
378 return fieldColumnCount9a;
379 }
380
381 /***
382 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute#isSafeNamePresent()
383 */
384 protected abstract boolean handleIsSafeNamePresent();
385
386 private void handleIsSafeNamePresent10aPreCondition()
387 {
388 }
389
390 private void handleIsSafeNamePresent10aPostCondition()
391 {
392 }
393
394 private boolean __safeNamePresent10a;
395 private boolean __safeNamePresent10aSet = false;
396
397 public final boolean isSafeNamePresent()
398 {
399 boolean safeNamePresent10a = this.__safeNamePresent10a;
400 if (!this.__safeNamePresent10aSet)
401 {
402 handleIsSafeNamePresent10aPreCondition();
403 safeNamePresent10a = handleIsSafeNamePresent();
404 handleIsSafeNamePresent10aPostCondition();
405 this.__safeNamePresent10a = safeNamePresent10a;
406 if (isMetafacadePropertyCachingEnabled())
407 {
408 this.__safeNamePresent10aSet = true;
409 }
410 }
411 return safeNamePresent10a;
412 }
413
414 /***
415 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute#getOnlineHelpKey()
416 */
417 protected abstract java.lang.String handleGetOnlineHelpKey();
418
419 private void handleGetOnlineHelpKey11aPreCondition()
420 {
421 }
422
423 private void handleGetOnlineHelpKey11aPostCondition()
424 {
425 }
426
427 private java.lang.String __onlineHelpKey11a;
428 private boolean __onlineHelpKey11aSet = false;
429
430 public final java.lang.String getOnlineHelpKey()
431 {
432 java.lang.String onlineHelpKey11a = this.__onlineHelpKey11a;
433 if (!this.__onlineHelpKey11aSet)
434 {
435 handleGetOnlineHelpKey11aPreCondition();
436 onlineHelpKey11a = handleGetOnlineHelpKey();
437 handleGetOnlineHelpKey11aPostCondition();
438 this.__onlineHelpKey11a = onlineHelpKey11a;
439 if (isMetafacadePropertyCachingEnabled())
440 {
441 this.__onlineHelpKey11aSet = true;
442 }
443 }
444 return onlineHelpKey11a;
445 }
446
447 /***
448 * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsManageableEntityAttribute#getOnlineHelpValue()
449 */
450 protected abstract java.lang.String handleGetOnlineHelpValue();
451
452 private void handleGetOnlineHelpValue12aPreCondition()
453 {
454 }
455
456 private void handleGetOnlineHelpValue12aPostCondition()
457 {
458 }
459
460 private java.lang.String __onlineHelpValue12a;
461 private boolean __onlineHelpValue12aSet = false;
462
463 public final java.lang.String getOnlineHelpValue()
464 {
465 java.lang.String onlineHelpValue12a = this.__onlineHelpValue12a;
466 if (!this.__onlineHelpValue12aSet)
467 {
468 handleGetOnlineHelpValue12aPreCondition();
469 onlineHelpValue12a = handleGetOnlineHelpValue();
470 handleGetOnlineHelpValue12aPostCondition();
471 this.__onlineHelpValue12a = onlineHelpValue12a;
472 if (isMetafacadePropertyCachingEnabled())
473 {
474 this.__onlineHelpValue12aSet = true;
475 }
476 }
477 return onlineHelpValue12a;
478 }
479
480 /***
481 * @see org.andromda.metafacades.uml.ManageableEntityAttribute
482 */
483 public boolean isManageableEntityAttributeMetaType()
484 {
485 return true;
486 }
487
488 /***
489 * @see org.andromda.metafacades.uml.EntityAttribute
490 */
491 public boolean isEntityAttributeMetaType()
492 {
493 return true;
494 }
495
496 /***
497 * @see org.andromda.metafacades.uml.AttributeFacade
498 */
499 public boolean isAttributeFacadeMetaType()
500 {
501 return true;
502 }
503
504 /***
505 * @see org.andromda.metafacades.uml.ModelElementFacade
506 */
507 public boolean isModelElementFacadeMetaType()
508 {
509 return true;
510 }
511
512
513
514 public java.lang.Object findTaggedValue(java.lang.String name, boolean follow)
515 {
516 return this.getSuperManageableEntityAttribute().findTaggedValue(name, follow);
517 }
518
519
520 public java.lang.String getDefaultValue()
521 {
522 return this.getSuperManageableEntityAttribute().getDefaultValue();
523 }
524
525
526 public org.andromda.metafacades.uml.EnumerationFacade getEnumeration()
527 {
528 return this.getSuperManageableEntityAttribute().getEnumeration();
529 }
530
531
532 public java.lang.String getEnumerationLiteralParameters()
533 {
534 return this.getSuperManageableEntityAttribute().getEnumerationLiteralParameters();
535 }
536
537
538 public java.lang.String getEnumerationValue()
539 {
540 return this.getSuperManageableEntityAttribute().getEnumerationValue();
541 }
542
543
544 public java.lang.String getGetterName()
545 {
546 return this.getSuperManageableEntityAttribute().getGetterName();
547 }
548
549
550 public java.lang.String getGetterSetterTypeName()
551 {
552 return this.getSuperManageableEntityAttribute().getGetterSetterTypeName();
553 }
554
555
556 public int getLower()
557 {
558 return this.getSuperManageableEntityAttribute().getLower();
559 }
560
561
562 public org.andromda.metafacades.uml.ClassifierFacade getOwner()
563 {
564 return this.getSuperManageableEntityAttribute().getOwner();
565 }
566
567
568 public java.lang.String getSetterName()
569 {
570 return this.getSuperManageableEntityAttribute().getSetterName();
571 }
572
573
574 public org.andromda.metafacades.uml.ClassifierFacade getType()
575 {
576 return this.getSuperManageableEntityAttribute().getType();
577 }
578
579
580 public int getUpper()
581 {
582 return this.getSuperManageableEntityAttribute().getUpper();
583 }
584
585
586 public boolean isAddOnly()
587 {
588 return this.getSuperManageableEntityAttribute().isAddOnly();
589 }
590
591
592 public boolean isChangeable()
593 {
594 return this.getSuperManageableEntityAttribute().isChangeable();
595 }
596
597
598 public boolean isDefaultValuePresent()
599 {
600 return this.getSuperManageableEntityAttribute().isDefaultValuePresent();
601 }
602
603
604 public boolean isEnumerationLiteral()
605 {
606 return this.getSuperManageableEntityAttribute().isEnumerationLiteral();
607 }
608
609
610 public boolean isEnumerationLiteralParametersExist()
611 {
612 return this.getSuperManageableEntityAttribute().isEnumerationLiteralParametersExist();
613 }
614
615
616 public boolean isEnumerationMember()
617 {
618 return this.getSuperManageableEntityAttribute().isEnumerationMember();
619 }
620
621
622 public boolean isMany()
623 {
624 return this.getSuperManageableEntityAttribute().isMany();
625 }
626
627
628 public boolean isOrdered()
629 {
630 return this.getSuperManageableEntityAttribute().isOrdered();
631 }
632
633
634 public boolean isReadOnly()
635 {
636 return this.getSuperManageableEntityAttribute().isReadOnly();
637 }
638
639
640 public boolean isRequired()
641 {
642 return this.getSuperManageableEntityAttribute().isRequired();
643 }
644
645
646 public boolean isStatic()
647 {
648 return this.getSuperManageableEntityAttribute().isStatic();
649 }
650
651
652 public java.lang.String getColumnIndex()
653 {
654 return this.getSuperManageableEntityAttribute().getColumnIndex();
655 }
656
657
658 public java.lang.String getColumnLength()
659 {
660 return this.getSuperManageableEntityAttribute().getColumnLength();
661 }
662
663
664 public java.lang.String getColumnName()
665 {
666 return this.getSuperManageableEntityAttribute().getColumnName();
667 }
668
669
670 public org.andromda.metafacades.uml.TypeMappings getJdbcMappings()
671 {
672 return this.getSuperManageableEntityAttribute().getJdbcMappings();
673 }
674
675
676 public java.lang.String getJdbcType()
677 {
678 return this.getSuperManageableEntityAttribute().getJdbcType();
679 }
680
681
682 public org.andromda.metafacades.uml.TypeMappings getSqlMappings()
683 {
684 return this.getSuperManageableEntityAttribute().getSqlMappings();
685 }
686
687
688 public java.lang.String getSqlType()
689 {
690 return this.getSuperManageableEntityAttribute().getSqlType();
691 }
692
693
694 public java.lang.String getUniqueGroup()
695 {
696 return this.getSuperManageableEntityAttribute().getUniqueGroup();
697 }
698
699
700 public boolean isIdentifier()
701 {
702 return this.getSuperManageableEntityAttribute().isIdentifier();
703 }
704
705
706 public boolean isTransient()
707 {
708 return this.getSuperManageableEntityAttribute().isTransient();
709 }
710
711
712 public boolean isUnique()
713 {
714 return this.getSuperManageableEntityAttribute().isUnique();
715 }
716
717
718 public boolean isDisplay()
719 {
720 return this.getSuperManageableEntityAttribute().isDisplay();
721 }
722
723
724 public boolean isManageableGetterAvailable()
725 {
726 return this.getSuperManageableEntityAttribute().isManageableGetterAvailable();
727 }
728
729
730 public void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
731 {
732 this.getSuperManageableEntityAttribute().copyTaggedValues(element);
733 }
734
735
736 public java.lang.Object findTaggedValue(java.lang.String tagName)
737 {
738 return this.getSuperManageableEntityAttribute().findTaggedValue(tagName);
739 }
740
741
742 public java.util.Collection findTaggedValues(java.lang.String tagName)
743 {
744 return this.getSuperManageableEntityAttribute().findTaggedValues(tagName);
745 }
746
747
748 public java.util.Collection getConstraints()
749 {
750 return this.getSuperManageableEntityAttribute().getConstraints();
751 }
752
753
754 public java.util.Collection getConstraints(java.lang.String kind)
755 {
756 return this.getSuperManageableEntityAttribute().getConstraints(kind);
757 }
758
759
760 public java.lang.String getDocumentation(java.lang.String indent, int lineLength)
761 {
762 return this.getSuperManageableEntityAttribute().getDocumentation(indent, lineLength);
763 }
764
765
766 public java.lang.String getDocumentation(java.lang.String indent, int lineLength, boolean htmlStyle)
767 {
768 return this.getSuperManageableEntityAttribute().getDocumentation(indent, lineLength, htmlStyle);
769 }
770
771
772 public java.lang.String getDocumentation(java.lang.String indent)
773 {
774 return this.getSuperManageableEntityAttribute().getDocumentation(indent);
775 }
776
777
778 public java.lang.String getFullyQualifiedName(boolean modelName)
779 {
780 return this.getSuperManageableEntityAttribute().getFullyQualifiedName(modelName);
781 }
782
783
784 public java.lang.String getFullyQualifiedName()
785 {
786 return this.getSuperManageableEntityAttribute().getFullyQualifiedName();
787 }
788
789
790 public java.lang.String getFullyQualifiedNamePath()
791 {
792 return this.getSuperManageableEntityAttribute().getFullyQualifiedNamePath();
793 }
794
795
796 public java.lang.String getId()
797 {
798 return this.getSuperManageableEntityAttribute().getId();
799 }
800
801
802 public org.andromda.metafacades.uml.TypeMappings getLanguageMappings()
803 {
804 return this.getSuperManageableEntityAttribute().getLanguageMappings();
805 }
806
807
808 public org.andromda.metafacades.uml.ModelFacade getModel()
809 {
810 return this.getSuperManageableEntityAttribute().getModel();
811 }
812
813
814 public java.lang.String getName()
815 {
816 return this.getSuperManageableEntityAttribute().getName();
817 }
818
819
820 public org.andromda.metafacades.uml.ModelElementFacade getPackage()
821 {
822 return this.getSuperManageableEntityAttribute().getPackage();
823 }
824
825
826 public java.lang.String getPackageName(boolean modelName)
827 {
828 return this.getSuperManageableEntityAttribute().getPackageName(modelName);
829 }
830
831
832 public java.lang.String getPackageName()
833 {
834 return this.getSuperManageableEntityAttribute().getPackageName();
835 }
836
837
838 public java.lang.String getPackagePath()
839 {
840 return this.getSuperManageableEntityAttribute().getPackagePath();
841 }
842
843
844 public org.andromda.metafacades.uml.PackageFacade getRootPackage()
845 {
846 return this.getSuperManageableEntityAttribute().getRootPackage();
847 }
848
849
850 public java.util.Collection getSourceDependencies()
851 {
852 return this.getSuperManageableEntityAttribute().getSourceDependencies();
853 }
854
855
856 public org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext()
857 {
858 return this.getSuperManageableEntityAttribute().getStateMachineContext();
859 }
860
861
862 public java.util.Collection getStereotypeNames()
863 {
864 return this.getSuperManageableEntityAttribute().getStereotypeNames();
865 }
866
867
868 public java.util.Collection getStereotypes()
869 {
870 return this.getSuperManageableEntityAttribute().getStereotypes();
871 }
872
873
874 public java.util.Collection getTaggedValues()
875 {
876 return this.getSuperManageableEntityAttribute().getTaggedValues();
877 }
878
879
880 public java.util.Collection getTargetDependencies()
881 {
882 return this.getSuperManageableEntityAttribute().getTargetDependencies();
883 }
884
885
886 public java.lang.Object getTemplateParameter(java.lang.String parameterName)
887 {
888 return this.getSuperManageableEntityAttribute().getTemplateParameter(parameterName);
889 }
890
891
892 public java.util.Collection getTemplateParameters()
893 {
894 return this.getSuperManageableEntityAttribute().getTemplateParameters();
895 }
896
897
898 public java.lang.String getVisibility()
899 {
900 return this.getSuperManageableEntityAttribute().getVisibility();
901 }
902
903
904 public boolean hasExactStereotype(java.lang.String stereotypeName)
905 {
906 return this.getSuperManageableEntityAttribute().hasExactStereotype(stereotypeName);
907 }
908
909
910 public boolean hasStereotype(java.lang.String stereotypeName)
911 {
912 return this.getSuperManageableEntityAttribute().hasStereotype(stereotypeName);
913 }
914
915
916 public boolean isBindingDependenciesPresent()
917 {
918 return this.getSuperManageableEntityAttribute().isBindingDependenciesPresent();
919 }
920
921
922 public boolean isConstraintsPresent()
923 {
924 return this.getSuperManageableEntityAttribute().isConstraintsPresent();
925 }
926
927
928 public boolean isTemplateParametersPresent()
929 {
930 return this.getSuperManageableEntityAttribute().isTemplateParametersPresent();
931 }
932
933
934 public java.lang.String translateConstraint(java.lang.String name, java.lang.String translation)
935 {
936 return this.getSuperManageableEntityAttribute().translateConstraint(name, translation);
937 }
938
939
940 public java.lang.String[] translateConstraints(java.lang.String translation)
941 {
942 return this.getSuperManageableEntityAttribute().translateConstraints(translation);
943 }
944
945
946 public java.lang.String[] translateConstraints(java.lang.String kind, java.lang.String translation)
947 {
948 return this.getSuperManageableEntityAttribute().translateConstraints(kind, translation);
949 }
950
951 /***
952 * @see org.andromda.core.metafacade.MetafacadeBase#initialize()
953 */
954 public void initialize()
955 {
956 this.getSuperManageableEntityAttribute().initialize();
957 }
958
959 /***
960 * @see org.andromda.core.metafacade.MetafacadeBase#getValidationOwner()
961 */
962 public Object getValidationOwner()
963 {
964 Object owner = this.getSuperManageableEntityAttribute().getValidationOwner();
965 return owner;
966 }
967
968 /***
969 * @see org.andromda.core.metafacade.MetafacadeBase#getValidationName()
970 */
971 public String getValidationName()
972 {
973 String name = this.getSuperManageableEntityAttribute().getValidationName();
974 return name;
975 }
976
977 /***
978 * @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(java.util.Collection)
979 */
980 public void validateInvariants(java.util.Collection validationMessages)
981 {
982 this.getSuperManageableEntityAttribute().validateInvariants(validationMessages);
983 {
984 final java.lang.Object contextElement = this.THIS(); boolean constraintValid = org.andromda.translation.ocl.validation.OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf((Boolean.valueOf(String.valueOf(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"required"))).booleanValue()&&!(Boolean.valueOf(String.valueOf(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"identifier"))).booleanValue()&&Boolean.valueOf(String.valueOf(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"owner.dynamicIdentifiersPresent"))).booleanValue())))).booleanValue()?Boolean.valueOf(String.valueOf(!Boolean.valueOf(String.valueOf(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"hidden"))).booleanValue())).booleanValue():true));
985 if (!constraintValid)
986 validationMessages.add(
987 new org.andromda.core.metafacade.ModelValidationMessage(
988 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
989 "org::andromda::cartridges::bpm4struts::metafacades::StrutsManageableEntityAttribute::required fields may not be hidden",
990 "Required fields may not be hidden, unless they are auto-generated identifiers."));
991 }
992 {
993 final java.lang.Object contextElement = this.THIS(); boolean constraintValid = org.andromda.translation.ocl.validation.OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(org.andromda.translation.ocl.validation.OCLCollections.notEmpty(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"widgetType")))).booleanValue()?(org.andromda.translation.ocl.validation.OCLExpressions.equal(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"widgetType"),"text")||org.andromda.translation.ocl.validation.OCLExpressions.equal(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"widgetType"),"textarea")||org.andromda.translation.ocl.validation.OCLExpressions.equal(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"widgetType"),"hidden")):true));
994 if (!constraintValid)
995 validationMessages.add(
996 new org.andromda.core.metafacade.ModelValidationMessage(
997 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
998 "org::andromda::cartridges::bpm4struts::metafacades::StrutsManageableEntityAttribute::widget type cannot be arbitrary",
999 "Only text, textarea and hidden widgets are supported, please select another one or let the cartridge decide by not specifying anything."));
1000 }
1001 {
1002 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"));
1003 if (!constraintValid)
1004 validationMessages.add(
1005 new org.andromda.core.metafacade.ModelValidationMessage(
1006 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
1007 "org::andromda::cartridges::bpm4struts::metafacades::StrutsManageableEntityAssociationEnd::SAFE NAME - TO BE REMOVED LATER",
1008 "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."));
1009 }
1010 }
1011
1012 /***
1013 * The property that stores the name of the metafacade.
1014 */
1015 private static final String NAME_PROPERTY = "name";
1016
1017 /***
1018 * @see java.lang.Object#toString()
1019 */
1020 public String toString()
1021 {
1022 final StringBuffer toString = new StringBuffer(this.getClass().getName());
1023 toString.append("[");
1024 try
1025 {
1026 toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
1027 }
1028 catch (final Throwable throwable)
1029 {
1030
1031 }
1032 toString.append("]");
1033 return toString.toString();
1034 }
1035 }