1
2
3
4 package org.andromda.metafacades.uml14;
5
6 /***
7 * MetafacadeLogic for org.andromda.metafacades.uml.ClassifierFacade
8 *
9 * @see org.andromda.metafacades.uml.ClassifierFacade
10 */
11 public abstract class ClassifierFacadeLogic
12 extends org.andromda.metafacades.uml14.GeneralizableElementFacadeLogicImpl
13 implements org.andromda.metafacades.uml.ClassifierFacade
14 {
15
16 protected org.omg.uml.foundation.core.Classifier metaObject;
17
18 public ClassifierFacadeLogic(org.omg.uml.foundation.core.Classifier 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.ClassifierFacade";
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.ClassifierFacade
50 */
51 public boolean isClassifierFacadeMetaType()
52 {
53 return true;
54 }
55
56
57
58 /***
59 * @see org.andromda.metafacades.uml.ClassifierFacade#isPrimitive()
60 */
61 protected abstract boolean handleIsPrimitive();
62
63 private void handleIsPrimitive1aPreCondition()
64 {
65 }
66
67 private void handleIsPrimitive1aPostCondition()
68 {
69 }
70
71 private boolean __primitive1a;
72 private boolean __primitive1aSet = false;
73
74 public final boolean isPrimitive()
75 {
76 boolean primitive1a = this.__primitive1a;
77 if (!this.__primitive1aSet)
78 {
79 handleIsPrimitive1aPreCondition();
80 primitive1a = handleIsPrimitive();
81 handleIsPrimitive1aPostCondition();
82 this.__primitive1a = primitive1a;
83 if (isMetafacadePropertyCachingEnabled())
84 {
85 this.__primitive1aSet = true;
86 }
87 }
88 return primitive1a;
89 }
90
91 /***
92 * @see org.andromda.metafacades.uml.ClassifierFacade#getOperationCallFromAttributes()
93 */
94 protected abstract java.lang.String handleGetOperationCallFromAttributes();
95
96 private void handleGetOperationCallFromAttributes2aPreCondition()
97 {
98 }
99
100 private void handleGetOperationCallFromAttributes2aPostCondition()
101 {
102 }
103
104 private java.lang.String __operationCallFromAttributes2a;
105 private boolean __operationCallFromAttributes2aSet = false;
106
107 public final java.lang.String getOperationCallFromAttributes()
108 {
109 java.lang.String operationCallFromAttributes2a = this.__operationCallFromAttributes2a;
110 if (!this.__operationCallFromAttributes2aSet)
111 {
112 handleGetOperationCallFromAttributes2aPreCondition();
113 operationCallFromAttributes2a = handleGetOperationCallFromAttributes();
114 handleGetOperationCallFromAttributes2aPostCondition();
115 this.__operationCallFromAttributes2a = operationCallFromAttributes2a;
116 if (isMetafacadePropertyCachingEnabled())
117 {
118 this.__operationCallFromAttributes2aSet = true;
119 }
120 }
121 return operationCallFromAttributes2a;
122 }
123
124 /***
125 * @see org.andromda.metafacades.uml.ClassifierFacade#isAbstract()
126 */
127 protected abstract boolean handleIsAbstract();
128
129 private void handleIsAbstract3aPreCondition()
130 {
131 }
132
133 private void handleIsAbstract3aPostCondition()
134 {
135 }
136
137 private boolean __abstract3a;
138 private boolean __abstract3aSet = false;
139
140 public final boolean isAbstract()
141 {
142 boolean abstract3a = this.__abstract3a;
143 if (!this.__abstract3aSet)
144 {
145 handleIsAbstract3aPreCondition();
146 abstract3a = handleIsAbstract();
147 handleIsAbstract3aPostCondition();
148 this.__abstract3a = abstract3a;
149 if (isMetafacadePropertyCachingEnabled())
150 {
151 this.__abstract3aSet = true;
152 }
153 }
154 return abstract3a;
155 }
156
157 /***
158 * @see org.andromda.metafacades.uml.ClassifierFacade#isDataType()
159 */
160 protected abstract boolean handleIsDataType();
161
162 private void handleIsDataType4aPreCondition()
163 {
164 }
165
166 private void handleIsDataType4aPostCondition()
167 {
168 }
169
170 private boolean __dataType4a;
171 private boolean __dataType4aSet = false;
172
173 public final boolean isDataType()
174 {
175 boolean dataType4a = this.__dataType4a;
176 if (!this.__dataType4aSet)
177 {
178 handleIsDataType4aPreCondition();
179 dataType4a = handleIsDataType();
180 handleIsDataType4aPostCondition();
181 this.__dataType4a = dataType4a;
182 if (isMetafacadePropertyCachingEnabled())
183 {
184 this.__dataType4aSet = true;
185 }
186 }
187 return dataType4a;
188 }
189
190 /***
191 * @see org.andromda.metafacades.uml.ClassifierFacade#isArrayType()
192 */
193 protected abstract boolean handleIsArrayType();
194
195 private void handleIsArrayType5aPreCondition()
196 {
197 }
198
199 private void handleIsArrayType5aPostCondition()
200 {
201 }
202
203 private boolean __arrayType5a;
204 private boolean __arrayType5aSet = false;
205
206 public final boolean isArrayType()
207 {
208 boolean arrayType5a = this.__arrayType5a;
209 if (!this.__arrayType5aSet)
210 {
211 handleIsArrayType5aPreCondition();
212 arrayType5a = handleIsArrayType();
213 handleIsArrayType5aPostCondition();
214 this.__arrayType5a = arrayType5a;
215 if (isMetafacadePropertyCachingEnabled())
216 {
217 this.__arrayType5aSet = true;
218 }
219 }
220 return arrayType5a;
221 }
222
223 /***
224 * @see org.andromda.metafacades.uml.ClassifierFacade#isCollectionType()
225 */
226 protected abstract boolean handleIsCollectionType();
227
228 private void handleIsCollectionType6aPreCondition()
229 {
230 }
231
232 private void handleIsCollectionType6aPostCondition()
233 {
234 }
235
236 private boolean __collectionType6a;
237 private boolean __collectionType6aSet = false;
238
239 public final boolean isCollectionType()
240 {
241 boolean collectionType6a = this.__collectionType6a;
242 if (!this.__collectionType6aSet)
243 {
244 handleIsCollectionType6aPreCondition();
245 collectionType6a = handleIsCollectionType();
246 handleIsCollectionType6aPostCondition();
247 this.__collectionType6a = collectionType6a;
248 if (isMetafacadePropertyCachingEnabled())
249 {
250 this.__collectionType6aSet = true;
251 }
252 }
253 return collectionType6a;
254 }
255
256 /***
257 * @see org.andromda.metafacades.uml.ClassifierFacade#getWrapperName()
258 */
259 protected abstract java.lang.String handleGetWrapperName();
260
261 private void handleGetWrapperName7aPreCondition()
262 {
263 }
264
265 private void handleGetWrapperName7aPostCondition()
266 {
267 }
268
269 private java.lang.String __wrapperName7a;
270 private boolean __wrapperName7aSet = false;
271
272 public final java.lang.String getWrapperName()
273 {
274 java.lang.String wrapperName7a = this.__wrapperName7a;
275 if (!this.__wrapperName7aSet)
276 {
277 handleGetWrapperName7aPreCondition();
278 wrapperName7a = handleGetWrapperName();
279 handleGetWrapperName7aPostCondition();
280 this.__wrapperName7a = wrapperName7a;
281 if (isMetafacadePropertyCachingEnabled())
282 {
283 this.__wrapperName7aSet = true;
284 }
285 }
286 return wrapperName7a;
287 }
288
289 /***
290 * @see org.andromda.metafacades.uml.ClassifierFacade#isDateType()
291 */
292 protected abstract boolean handleIsDateType();
293
294 private void handleIsDateType8aPreCondition()
295 {
296 }
297
298 private void handleIsDateType8aPostCondition()
299 {
300 }
301
302 private boolean __dateType8a;
303 private boolean __dateType8aSet = false;
304
305 public final boolean isDateType()
306 {
307 boolean dateType8a = this.__dateType8a;
308 if (!this.__dateType8aSet)
309 {
310 handleIsDateType8aPreCondition();
311 dateType8a = handleIsDateType();
312 handleIsDateType8aPostCondition();
313 this.__dateType8a = dateType8a;
314 if (isMetafacadePropertyCachingEnabled())
315 {
316 this.__dateType8aSet = true;
317 }
318 }
319 return dateType8a;
320 }
321
322 /***
323 * @see org.andromda.metafacades.uml.ClassifierFacade#isInterface()
324 */
325 protected abstract boolean handleIsInterface();
326
327 private void handleIsInterface9aPreCondition()
328 {
329 }
330
331 private void handleIsInterface9aPostCondition()
332 {
333 }
334
335 private boolean __interface9a;
336 private boolean __interface9aSet = false;
337
338 public final boolean isInterface()
339 {
340 boolean interface9a = this.__interface9a;
341 if (!this.__interface9aSet)
342 {
343 handleIsInterface9aPreCondition();
344 interface9a = handleIsInterface();
345 handleIsInterface9aPostCondition();
346 this.__interface9a = interface9a;
347 if (isMetafacadePropertyCachingEnabled())
348 {
349 this.__interface9aSet = true;
350 }
351 }
352 return interface9a;
353 }
354
355 /***
356 * @see org.andromda.metafacades.uml.ClassifierFacade#getJavaNullString()
357 */
358 protected abstract java.lang.String handleGetJavaNullString();
359
360 private void handleGetJavaNullString10aPreCondition()
361 {
362 }
363
364 private void handleGetJavaNullString10aPostCondition()
365 {
366 }
367
368 private java.lang.String __javaNullString10a;
369 private boolean __javaNullString10aSet = false;
370
371 public final java.lang.String getJavaNullString()
372 {
373 java.lang.String javaNullString10a = this.__javaNullString10a;
374 if (!this.__javaNullString10aSet)
375 {
376 handleGetJavaNullString10aPreCondition();
377 javaNullString10a = handleGetJavaNullString();
378 handleGetJavaNullString10aPostCondition();
379 this.__javaNullString10a = javaNullString10a;
380 if (isMetafacadePropertyCachingEnabled())
381 {
382 this.__javaNullString10aSet = true;
383 }
384 }
385 return javaNullString10a;
386 }
387
388 /***
389 * @see org.andromda.metafacades.uml.ClassifierFacade#isListType()
390 */
391 protected abstract boolean handleIsListType();
392
393 private void handleIsListType11aPreCondition()
394 {
395 }
396
397 private void handleIsListType11aPostCondition()
398 {
399 }
400
401 private boolean __listType11a;
402 private boolean __listType11aSet = false;
403
404 public final boolean isListType()
405 {
406 boolean listType11a = this.__listType11a;
407 if (!this.__listType11aSet)
408 {
409 handleIsListType11aPreCondition();
410 listType11a = handleIsListType();
411 handleIsListType11aPostCondition();
412 this.__listType11a = listType11a;
413 if (isMetafacadePropertyCachingEnabled())
414 {
415 this.__listType11aSet = true;
416 }
417 }
418 return listType11a;
419 }
420
421 /***
422 * @see org.andromda.metafacades.uml.ClassifierFacade#isSetType()
423 */
424 protected abstract boolean handleIsSetType();
425
426 private void handleIsSetType12aPreCondition()
427 {
428 }
429
430 private void handleIsSetType12aPostCondition()
431 {
432 }
433
434 private boolean __setType12a;
435 private boolean __setType12aSet = false;
436
437 public final boolean isSetType()
438 {
439 boolean setType12a = this.__setType12a;
440 if (!this.__setType12aSet)
441 {
442 handleIsSetType12aPreCondition();
443 setType12a = handleIsSetType();
444 handleIsSetType12aPostCondition();
445 this.__setType12a = setType12a;
446 if (isMetafacadePropertyCachingEnabled())
447 {
448 this.__setType12aSet = true;
449 }
450 }
451 return setType12a;
452 }
453
454 /***
455 * @see org.andromda.metafacades.uml.ClassifierFacade#isFileType()
456 */
457 protected abstract boolean handleIsFileType();
458
459 private void handleIsFileType13aPreCondition()
460 {
461 }
462
463 private void handleIsFileType13aPostCondition()
464 {
465 }
466
467 private boolean __fileType13a;
468 private boolean __fileType13aSet = false;
469
470 public final boolean isFileType()
471 {
472 boolean fileType13a = this.__fileType13a;
473 if (!this.__fileType13aSet)
474 {
475 handleIsFileType13aPreCondition();
476 fileType13a = handleIsFileType();
477 handleIsFileType13aPostCondition();
478 this.__fileType13a = fileType13a;
479 if (isMetafacadePropertyCachingEnabled())
480 {
481 this.__fileType13aSet = true;
482 }
483 }
484 return fileType13a;
485 }
486
487 /***
488 * @see org.andromda.metafacades.uml.ClassifierFacade#isMapType()
489 */
490 protected abstract boolean handleIsMapType();
491
492 private void handleIsMapType14aPreCondition()
493 {
494 }
495
496 private void handleIsMapType14aPostCondition()
497 {
498 }
499
500 private boolean __mapType14a;
501 private boolean __mapType14aSet = false;
502
503 public final boolean isMapType()
504 {
505 boolean mapType14a = this.__mapType14a;
506 if (!this.__mapType14aSet)
507 {
508 handleIsMapType14aPreCondition();
509 mapType14a = handleIsMapType();
510 handleIsMapType14aPostCondition();
511 this.__mapType14a = mapType14a;
512 if (isMetafacadePropertyCachingEnabled())
513 {
514 this.__mapType14aSet = true;
515 }
516 }
517 return mapType14a;
518 }
519
520 /***
521 * @see org.andromda.metafacades.uml.ClassifierFacade#isStringType()
522 */
523 protected abstract boolean handleIsStringType();
524
525 private void handleIsStringType15aPreCondition()
526 {
527 }
528
529 private void handleIsStringType15aPostCondition()
530 {
531 }
532
533 private boolean __stringType15a;
534 private boolean __stringType15aSet = false;
535
536 public final boolean isStringType()
537 {
538 boolean stringType15a = this.__stringType15a;
539 if (!this.__stringType15aSet)
540 {
541 handleIsStringType15aPreCondition();
542 stringType15a = handleIsStringType();
543 handleIsStringType15aPostCondition();
544 this.__stringType15a = stringType15a;
545 if (isMetafacadePropertyCachingEnabled())
546 {
547 this.__stringType15aSet = true;
548 }
549 }
550 return stringType15a;
551 }
552
553 /***
554 * @see org.andromda.metafacades.uml.ClassifierFacade#isEnumeration()
555 */
556 protected abstract boolean handleIsEnumeration();
557
558 private void handleIsEnumeration16aPreCondition()
559 {
560 }
561
562 private void handleIsEnumeration16aPostCondition()
563 {
564 }
565
566 private boolean __enumeration16a;
567 private boolean __enumeration16aSet = false;
568
569 public final boolean isEnumeration()
570 {
571 boolean enumeration16a = this.__enumeration16a;
572 if (!this.__enumeration16aSet)
573 {
574 handleIsEnumeration16aPreCondition();
575 enumeration16a = handleIsEnumeration();
576 handleIsEnumeration16aPostCondition();
577 this.__enumeration16a = enumeration16a;
578 if (isMetafacadePropertyCachingEnabled())
579 {
580 this.__enumeration16aSet = true;
581 }
582 }
583 return enumeration16a;
584 }
585
586 /***
587 * @see org.andromda.metafacades.uml.ClassifierFacade#getArrayName()
588 */
589 protected abstract java.lang.String handleGetArrayName();
590
591 private void handleGetArrayName17aPreCondition()
592 {
593 }
594
595 private void handleGetArrayName17aPostCondition()
596 {
597 }
598
599 private java.lang.String __arrayName17a;
600 private boolean __arrayName17aSet = false;
601
602 public final java.lang.String getArrayName()
603 {
604 java.lang.String arrayName17a = this.__arrayName17a;
605 if (!this.__arrayName17aSet)
606 {
607 handleGetArrayName17aPreCondition();
608 arrayName17a = handleGetArrayName();
609 handleGetArrayName17aPostCondition();
610 this.__arrayName17a = arrayName17a;
611 if (isMetafacadePropertyCachingEnabled())
612 {
613 this.__arrayName17aSet = true;
614 }
615 }
616 return arrayName17a;
617 }
618
619 /***
620 * @see org.andromda.metafacades.uml.ClassifierFacade#getFullyQualifiedArrayName()
621 */
622 protected abstract java.lang.String handleGetFullyQualifiedArrayName();
623
624 private void handleGetFullyQualifiedArrayName18aPreCondition()
625 {
626 }
627
628 private void handleGetFullyQualifiedArrayName18aPostCondition()
629 {
630 }
631
632 private java.lang.String __fullyQualifiedArrayName18a;
633 private boolean __fullyQualifiedArrayName18aSet = false;
634
635 public final java.lang.String getFullyQualifiedArrayName()
636 {
637 java.lang.String fullyQualifiedArrayName18a = this.__fullyQualifiedArrayName18a;
638 if (!this.__fullyQualifiedArrayName18aSet)
639 {
640 handleGetFullyQualifiedArrayName18aPreCondition();
641 fullyQualifiedArrayName18a = handleGetFullyQualifiedArrayName();
642 handleGetFullyQualifiedArrayName18aPostCondition();
643 this.__fullyQualifiedArrayName18a = fullyQualifiedArrayName18a;
644 if (isMetafacadePropertyCachingEnabled())
645 {
646 this.__fullyQualifiedArrayName18aSet = true;
647 }
648 }
649 return fullyQualifiedArrayName18a;
650 }
651
652 /***
653 * @see org.andromda.metafacades.uml.ClassifierFacade#getSerialVersionUID()
654 */
655 protected abstract java.lang.Long handleGetSerialVersionUID();
656
657 private void handleGetSerialVersionUID19aPreCondition()
658 {
659 }
660
661 private void handleGetSerialVersionUID19aPostCondition()
662 {
663 }
664
665 private java.lang.Long __serialVersionUID19a;
666 private boolean __serialVersionUID19aSet = false;
667
668 public final java.lang.Long getSerialVersionUID()
669 {
670 java.lang.Long serialVersionUID19a = this.__serialVersionUID19a;
671 if (!this.__serialVersionUID19aSet)
672 {
673 handleGetSerialVersionUID19aPreCondition();
674 serialVersionUID19a = handleGetSerialVersionUID();
675 handleGetSerialVersionUID19aPostCondition();
676 this.__serialVersionUID19a = serialVersionUID19a;
677 if (isMetafacadePropertyCachingEnabled())
678 {
679 this.__serialVersionUID19aSet = true;
680 }
681 }
682 return serialVersionUID19a;
683 }
684
685 /***
686 * @see org.andromda.metafacades.uml.ClassifierFacade#isBlobType()
687 */
688 protected abstract boolean handleIsBlobType();
689
690 private void handleIsBlobType20aPreCondition()
691 {
692 }
693
694 private void handleIsBlobType20aPostCondition()
695 {
696 }
697
698 private boolean __blobType20a;
699 private boolean __blobType20aSet = false;
700
701 public final boolean isBlobType()
702 {
703 boolean blobType20a = this.__blobType20a;
704 if (!this.__blobType20aSet)
705 {
706 handleIsBlobType20aPreCondition();
707 blobType20a = handleIsBlobType();
708 handleIsBlobType20aPostCondition();
709 this.__blobType20a = blobType20a;
710 if (isMetafacadePropertyCachingEnabled())
711 {
712 this.__blobType20aSet = true;
713 }
714 }
715 return blobType20a;
716 }
717
718 /***
719 * @see org.andromda.metafacades.uml.ClassifierFacade#isBooleanType()
720 */
721 protected abstract boolean handleIsBooleanType();
722
723 private void handleIsBooleanType21aPreCondition()
724 {
725 }
726
727 private void handleIsBooleanType21aPostCondition()
728 {
729 }
730
731 private boolean __booleanType21a;
732 private boolean __booleanType21aSet = false;
733
734 public final boolean isBooleanType()
735 {
736 boolean booleanType21a = this.__booleanType21a;
737 if (!this.__booleanType21aSet)
738 {
739 handleIsBooleanType21aPreCondition();
740 booleanType21a = handleIsBooleanType();
741 handleIsBooleanType21aPostCondition();
742 this.__booleanType21a = booleanType21a;
743 if (isMetafacadePropertyCachingEnabled())
744 {
745 this.__booleanType21aSet = true;
746 }
747 }
748 return booleanType21a;
749 }
750
751 /***
752 * @see org.andromda.metafacades.uml.ClassifierFacade#isTimeType()
753 */
754 protected abstract boolean handleIsTimeType();
755
756 private void handleIsTimeType22aPreCondition()
757 {
758 }
759
760 private void handleIsTimeType22aPostCondition()
761 {
762 }
763
764 private boolean __timeType22a;
765 private boolean __timeType22aSet = false;
766
767 public final boolean isTimeType()
768 {
769 boolean timeType22a = this.__timeType22a;
770 if (!this.__timeType22aSet)
771 {
772 handleIsTimeType22aPreCondition();
773 timeType22a = handleIsTimeType();
774 handleIsTimeType22aPostCondition();
775 this.__timeType22a = timeType22a;
776 if (isMetafacadePropertyCachingEnabled())
777 {
778 this.__timeType22aSet = true;
779 }
780 }
781 return timeType22a;
782 }
783
784 /***
785 * @see org.andromda.metafacades.uml.ClassifierFacade#isLeaf()
786 */
787 protected abstract boolean handleIsLeaf();
788
789 private void handleIsLeaf23aPreCondition()
790 {
791 }
792
793 private void handleIsLeaf23aPostCondition()
794 {
795 }
796
797 private boolean __leaf23a;
798 private boolean __leaf23aSet = false;
799
800 public final boolean isLeaf()
801 {
802 boolean leaf23a = this.__leaf23a;
803 if (!this.__leaf23aSet)
804 {
805 handleIsLeaf23aPreCondition();
806 leaf23a = handleIsLeaf();
807 handleIsLeaf23aPostCondition();
808 this.__leaf23a = leaf23a;
809 if (isMetafacadePropertyCachingEnabled())
810 {
811 this.__leaf23aSet = true;
812 }
813 }
814 return leaf23a;
815 }
816
817 /***
818 * @see org.andromda.metafacades.uml.ClassifierFacade#getImplementedInterfaceList()
819 */
820 protected abstract java.lang.String handleGetImplementedInterfaceList();
821
822 private void handleGetImplementedInterfaceList24aPreCondition()
823 {
824 }
825
826 private void handleGetImplementedInterfaceList24aPostCondition()
827 {
828 }
829
830 private java.lang.String __implementedInterfaceList24a;
831 private boolean __implementedInterfaceList24aSet = false;
832
833 public final java.lang.String getImplementedInterfaceList()
834 {
835 java.lang.String implementedInterfaceList24a = this.__implementedInterfaceList24a;
836 if (!this.__implementedInterfaceList24aSet)
837 {
838 handleGetImplementedInterfaceList24aPreCondition();
839 implementedInterfaceList24a = handleGetImplementedInterfaceList();
840 handleGetImplementedInterfaceList24aPostCondition();
841 this.__implementedInterfaceList24a = implementedInterfaceList24a;
842 if (isMetafacadePropertyCachingEnabled())
843 {
844 this.__implementedInterfaceList24aSet = true;
845 }
846 }
847 return implementedInterfaceList24a;
848 }
849
850 /***
851 * @see org.andromda.metafacades.uml.ClassifierFacade#getRequiredConstructorParameters()
852 */
853 protected abstract java.util.Collection handleGetRequiredConstructorParameters();
854
855 private void handleGetRequiredConstructorParameters25aPreCondition()
856 {
857 }
858
859 private void handleGetRequiredConstructorParameters25aPostCondition()
860 {
861 }
862
863 private java.util.Collection __requiredConstructorParameters25a;
864 private boolean __requiredConstructorParameters25aSet = false;
865
866 public final java.util.Collection getRequiredConstructorParameters()
867 {
868 java.util.Collection requiredConstructorParameters25a = this.__requiredConstructorParameters25a;
869 if (!this.__requiredConstructorParameters25aSet)
870 {
871 handleGetRequiredConstructorParameters25aPreCondition();
872 requiredConstructorParameters25a = handleGetRequiredConstructorParameters();
873 handleGetRequiredConstructorParameters25aPostCondition();
874 this.__requiredConstructorParameters25a = requiredConstructorParameters25a;
875 if (isMetafacadePropertyCachingEnabled())
876 {
877 this.__requiredConstructorParameters25aSet = true;
878 }
879 }
880 return requiredConstructorParameters25a;
881 }
882
883 /***
884 * @see org.andromda.metafacades.uml.ClassifierFacade#getAllRequiredConstructorParameters()
885 */
886 protected abstract java.util.Collection handleGetAllRequiredConstructorParameters();
887
888 private void handleGetAllRequiredConstructorParameters26aPreCondition()
889 {
890 }
891
892 private void handleGetAllRequiredConstructorParameters26aPostCondition()
893 {
894 }
895
896 private java.util.Collection __allRequiredConstructorParameters26a;
897 private boolean __allRequiredConstructorParameters26aSet = false;
898
899 public final java.util.Collection getAllRequiredConstructorParameters()
900 {
901 java.util.Collection allRequiredConstructorParameters26a = this.__allRequiredConstructorParameters26a;
902 if (!this.__allRequiredConstructorParameters26aSet)
903 {
904 handleGetAllRequiredConstructorParameters26aPreCondition();
905 allRequiredConstructorParameters26a = handleGetAllRequiredConstructorParameters();
906 handleGetAllRequiredConstructorParameters26aPostCondition();
907 this.__allRequiredConstructorParameters26a = allRequiredConstructorParameters26a;
908 if (isMetafacadePropertyCachingEnabled())
909 {
910 this.__allRequiredConstructorParameters26aSet = true;
911 }
912 }
913 return allRequiredConstructorParameters26a;
914 }
915
916 /***
917 * @see org.andromda.metafacades.uml.ClassifierFacade#getProperties()
918 */
919 protected abstract java.util.Collection handleGetProperties();
920
921 private void handleGetProperties27aPreCondition()
922 {
923 }
924
925 private void handleGetProperties27aPostCondition()
926 {
927 }
928
929 private java.util.Collection __properties27a;
930 private boolean __properties27aSet = false;
931
932 public final java.util.Collection getProperties()
933 {
934 java.util.Collection properties27a = this.__properties27a;
935 if (!this.__properties27aSet)
936 {
937 handleGetProperties27aPreCondition();
938 properties27a = handleGetProperties();
939 handleGetProperties27aPostCondition();
940 this.__properties27a = properties27a;
941 if (isMetafacadePropertyCachingEnabled())
942 {
943 this.__properties27aSet = true;
944 }
945 }
946 return properties27a;
947 }
948
949 /***
950 * @see org.andromda.metafacades.uml.ClassifierFacade#getAllProperties()
951 */
952 protected abstract java.util.Collection handleGetAllProperties();
953
954 private void handleGetAllProperties28aPreCondition()
955 {
956 }
957
958 private void handleGetAllProperties28aPostCondition()
959 {
960 }
961
962 private java.util.Collection __allProperties28a;
963 private boolean __allProperties28aSet = false;
964
965 public final java.util.Collection getAllProperties()
966 {
967 java.util.Collection allProperties28a = this.__allProperties28a;
968 if (!this.__allProperties28aSet)
969 {
970 handleGetAllProperties28aPreCondition();
971 allProperties28a = handleGetAllProperties();
972 handleGetAllProperties28aPostCondition();
973 this.__allProperties28a = allProperties28a;
974 if (isMetafacadePropertyCachingEnabled())
975 {
976 this.__allProperties28aSet = true;
977 }
978 }
979 return allProperties28a;
980 }
981
982 /***
983 * @see org.andromda.metafacades.uml.ClassifierFacade#isAssociationClass()
984 */
985 protected abstract boolean handleIsAssociationClass();
986
987 private void handleIsAssociationClass29aPreCondition()
988 {
989 }
990
991 private void handleIsAssociationClass29aPostCondition()
992 {
993 }
994
995 private boolean __associationClass29a;
996 private boolean __associationClass29aSet = false;
997
998 public final boolean isAssociationClass()
999 {
1000 boolean associationClass29a = this.__associationClass29a;
1001 if (!this.__associationClass29aSet)
1002 {
1003 handleIsAssociationClass29aPreCondition();
1004 associationClass29a = handleIsAssociationClass();
1005 handleIsAssociationClass29aPostCondition();
1006 this.__associationClass29a = associationClass29a;
1007 if (isMetafacadePropertyCachingEnabled())
1008 {
1009 this.__associationClass29aSet = true;
1010 }
1011 }
1012 return associationClass29a;
1013 }
1014
1015 /***
1016 * @see org.andromda.metafacades.uml.ClassifierFacade#isClobType()
1017 */
1018 protected abstract boolean handleIsClobType();
1019
1020 private void handleIsClobType30aPreCondition()
1021 {
1022 }
1023
1024 private void handleIsClobType30aPostCondition()
1025 {
1026 }
1027
1028 private boolean __clobType30a;
1029 private boolean __clobType30aSet = false;
1030
1031 public final boolean isClobType()
1032 {
1033 boolean clobType30a = this.__clobType30a;
1034 if (!this.__clobType30aSet)
1035 {
1036 handleIsClobType30aPreCondition();
1037 clobType30a = handleIsClobType();
1038 handleIsClobType30aPostCondition();
1039 this.__clobType30a = clobType30a;
1040 if (isMetafacadePropertyCachingEnabled())
1041 {
1042 this.__clobType30aSet = true;
1043 }
1044 }
1045 return clobType30a;
1046 }
1047
1048
1049
1050 protected abstract java.util.Collection handleGetAttributes(boolean follow);
1051
1052 private void handleGetAttributes1oPreCondition()
1053 {
1054 }
1055
1056 private void handleGetAttributes1oPostCondition()
1057 {
1058 }
1059
1060 public java.util.Collection getAttributes(boolean follow)
1061 {
1062 handleGetAttributes1oPreCondition();
1063 java.util.Collection returnValue = handleGetAttributes(follow);
1064 handleGetAttributes1oPostCondition();
1065 return returnValue;
1066 }
1067
1068 protected abstract org.andromda.metafacades.uml.AttributeFacade handleFindAttribute(java.lang.String name);
1069
1070 private void handleFindAttribute2oPreCondition()
1071 {
1072 }
1073
1074 private void handleFindAttribute2oPostCondition()
1075 {
1076 }
1077
1078 public org.andromda.metafacades.uml.AttributeFacade findAttribute(java.lang.String name)
1079 {
1080 handleFindAttribute2oPreCondition();
1081 org.andromda.metafacades.uml.AttributeFacade returnValue = handleFindAttribute(name);
1082 handleFindAttribute2oPostCondition();
1083 return returnValue;
1084 }
1085
1086 protected abstract java.util.Collection handleGetProperties(boolean follow);
1087
1088 private void handleGetProperties3oPreCondition()
1089 {
1090 }
1091
1092 private void handleGetProperties3oPostCondition()
1093 {
1094 }
1095
1096 public java.util.Collection getProperties(boolean follow)
1097 {
1098 handleGetProperties3oPreCondition();
1099 java.util.Collection returnValue = handleGetProperties(follow);
1100 handleGetProperties3oPostCondition();
1101 return returnValue;
1102 }
1103
1104 protected abstract java.util.Collection handleGetNavigableConnectingEnds(boolean follow);
1105
1106 private void handleGetNavigableConnectingEnds4oPreCondition()
1107 {
1108 }
1109
1110 private void handleGetNavigableConnectingEnds4oPostCondition()
1111 {
1112 }
1113
1114 public java.util.Collection getNavigableConnectingEnds(boolean follow)
1115 {
1116 handleGetNavigableConnectingEnds4oPreCondition();
1117 java.util.Collection returnValue = handleGetNavigableConnectingEnds(follow);
1118 handleGetNavigableConnectingEnds4oPostCondition();
1119 return returnValue;
1120 }
1121
1122
1123
1124 private void handleGetOperations1rPreCondition()
1125 {
1126 }
1127
1128 private void handleGetOperations1rPostCondition()
1129 {
1130 }
1131
1132 public final java.util.Collection getOperations()
1133 {
1134 java.util.Collection getOperations1r = null;
1135 handleGetOperations1rPreCondition();
1136 Object result = this.shieldedElements(handleGetOperations());
1137 try
1138 {
1139 getOperations1r = (java.util.Collection)result;
1140 }
1141 catch (ClassCastException ex)
1142 {
1143
1144
1145 }
1146 handleGetOperations1rPostCondition();
1147 return getOperations1r;
1148 }
1149
1150 protected abstract java.util.Collection handleGetOperations();
1151
1152 private void handleGetAttributes2rPreCondition()
1153 {
1154 }
1155
1156 private void handleGetAttributes2rPostCondition()
1157 {
1158 }
1159
1160 public final java.util.Collection getAttributes()
1161 {
1162 java.util.Collection getAttributes2r = null;
1163 handleGetAttributes2rPreCondition();
1164 Object result = this.shieldedElements(handleGetAttributes());
1165 try
1166 {
1167 getAttributes2r = (java.util.Collection)result;
1168 }
1169 catch (ClassCastException ex)
1170 {
1171
1172
1173 }
1174 handleGetAttributes2rPostCondition();
1175 return getAttributes2r;
1176 }
1177
1178 protected abstract java.util.Collection handleGetAttributes();
1179
1180 private void handleGetAssociationEnds3rPreCondition()
1181 {
1182 }
1183
1184 private void handleGetAssociationEnds3rPostCondition()
1185 {
1186 }
1187
1188 public final java.util.List getAssociationEnds()
1189 {
1190 java.util.List getAssociationEnds3r = null;
1191 handleGetAssociationEnds3rPreCondition();
1192 Object result = this.shieldedElements(handleGetAssociationEnds());
1193 try
1194 {
1195 getAssociationEnds3r = (java.util.List)result;
1196 }
1197 catch (ClassCastException ex)
1198 {
1199
1200
1201 }
1202 handleGetAssociationEnds3rPostCondition();
1203 return getAssociationEnds3r;
1204 }
1205
1206 protected abstract java.util.List handleGetAssociationEnds();
1207
1208 private void handleGetNonArray5rPreCondition()
1209 {
1210 }
1211
1212 private void handleGetNonArray5rPostCondition()
1213 {
1214 }
1215
1216 public final org.andromda.metafacades.uml.ClassifierFacade getNonArray()
1217 {
1218 org.andromda.metafacades.uml.ClassifierFacade getNonArray5r = null;
1219 handleGetNonArray5rPreCondition();
1220 Object result = this.shieldedElement(handleGetNonArray());
1221 try
1222 {
1223 getNonArray5r = (org.andromda.metafacades.uml.ClassifierFacade)result;
1224 }
1225 catch (ClassCastException ex)
1226 {
1227
1228
1229 }
1230 handleGetNonArray5rPostCondition();
1231 return getNonArray5r;
1232 }
1233
1234 protected abstract java.lang.Object handleGetNonArray();
1235
1236 private void handleGetArray6rPreCondition()
1237 {
1238 }
1239
1240 private void handleGetArray6rPostCondition()
1241 {
1242 }
1243
1244 public final org.andromda.metafacades.uml.ClassifierFacade getArray()
1245 {
1246 org.andromda.metafacades.uml.ClassifierFacade getArray6r = null;
1247 handleGetArray6rPreCondition();
1248 Object result = this.shieldedElement(handleGetArray());
1249 try
1250 {
1251 getArray6r = (org.andromda.metafacades.uml.ClassifierFacade)result;
1252 }
1253 catch (ClassCastException ex)
1254 {
1255
1256
1257 }
1258 handleGetArray6rPostCondition();
1259 return getArray6r;
1260 }
1261
1262 protected abstract java.lang.Object handleGetArray();
1263
1264 private void handleGetStaticAttributes11rPreCondition()
1265 {
1266 }
1267
1268 private void handleGetStaticAttributes11rPostCondition()
1269 {
1270 }
1271
1272 public final java.util.Collection getStaticAttributes()
1273 {
1274 java.util.Collection getStaticAttributes11r = null;
1275 handleGetStaticAttributes11rPreCondition();
1276 Object result = this.shieldedElements(handleGetStaticAttributes());
1277 try
1278 {
1279 getStaticAttributes11r = (java.util.Collection)result;
1280 }
1281 catch (ClassCastException ex)
1282 {
1283
1284
1285 }
1286 handleGetStaticAttributes11rPostCondition();
1287 return getStaticAttributes11r;
1288 }
1289
1290 protected abstract java.util.Collection handleGetStaticAttributes();
1291
1292 private void handleGetInstanceAttributes12rPreCondition()
1293 {
1294 }
1295
1296 private void handleGetInstanceAttributes12rPostCondition()
1297 {
1298 }
1299
1300 public final java.util.Collection getInstanceAttributes()
1301 {
1302 java.util.Collection getInstanceAttributes12r = null;
1303 handleGetInstanceAttributes12rPreCondition();
1304 Object result = this.shieldedElements(handleGetInstanceAttributes());
1305 try
1306 {
1307 getInstanceAttributes12r = (java.util.Collection)result;
1308 }
1309 catch (ClassCastException ex)
1310 {
1311
1312
1313 }
1314 handleGetInstanceAttributes12rPostCondition();
1315 return getInstanceAttributes12r;
1316 }
1317
1318 protected abstract java.util.Collection handleGetInstanceAttributes();
1319
1320 private void handleGetStaticOperations13rPreCondition()
1321 {
1322 }
1323
1324 private void handleGetStaticOperations13rPostCondition()
1325 {
1326 }
1327
1328 public final java.util.Collection getStaticOperations()
1329 {
1330 java.util.Collection getStaticOperations13r = null;
1331 handleGetStaticOperations13rPreCondition();
1332 Object result = this.shieldedElements(handleGetStaticOperations());
1333 try
1334 {
1335 getStaticOperations13r = (java.util.Collection)result;
1336 }
1337 catch (ClassCastException ex)
1338 {
1339
1340
1341 }
1342 handleGetStaticOperations13rPostCondition();
1343 return getStaticOperations13r;
1344 }
1345
1346 protected abstract java.util.Collection handleGetStaticOperations();
1347
1348 private void handleGetInstanceOperations14rPreCondition()
1349 {
1350 }
1351
1352 private void handleGetInstanceOperations14rPostCondition()
1353 {
1354 }
1355
1356 public final java.util.Collection getInstanceOperations()
1357 {
1358 java.util.Collection getInstanceOperations14r = null;
1359 handleGetInstanceOperations14rPreCondition();
1360 Object result = this.shieldedElements(handleGetInstanceOperations());
1361 try
1362 {
1363 getInstanceOperations14r = (java.util.Collection)result;
1364 }
1365 catch (ClassCastException ex)
1366 {
1367
1368
1369 }
1370 handleGetInstanceOperations14rPostCondition();
1371 return getInstanceOperations14r;
1372 }
1373
1374 protected abstract java.util.Collection handleGetInstanceOperations();
1375
1376 private void handleGetAbstractions16rPreCondition()
1377 {
1378 }
1379
1380 private void handleGetAbstractions16rPostCondition()
1381 {
1382 }
1383
1384 public final java.util.Collection getAbstractions()
1385 {
1386 java.util.Collection getAbstractions16r = null;
1387 handleGetAbstractions16rPreCondition();
1388 Object result = this.shieldedElements(handleGetAbstractions());
1389 try
1390 {
1391 getAbstractions16r = (java.util.Collection)result;
1392 }
1393 catch (ClassCastException ex)
1394 {
1395
1396
1397 }
1398 handleGetAbstractions16rPostCondition();
1399 return getAbstractions16r;
1400 }
1401
1402 protected abstract java.util.Collection handleGetAbstractions();
1403
1404 private void handleGetNavigableConnectingEnds21rPreCondition()
1405 {
1406 }
1407
1408 private void handleGetNavigableConnectingEnds21rPostCondition()
1409 {
1410 }
1411
1412 public final java.util.Collection getNavigableConnectingEnds()
1413 {
1414 java.util.Collection getNavigableConnectingEnds21r = null;
1415 handleGetNavigableConnectingEnds21rPreCondition();
1416 Object result = this.shieldedElements(handleGetNavigableConnectingEnds());
1417 try
1418 {
1419 getNavigableConnectingEnds21r = (java.util.Collection)result;
1420 }
1421 catch (ClassCastException ex)
1422 {
1423
1424
1425 }
1426 handleGetNavigableConnectingEnds21rPostCondition();
1427 return getNavigableConnectingEnds21r;
1428 }
1429
1430 protected abstract java.util.Collection handleGetNavigableConnectingEnds();
1431
1432 private void handleGetInterfaceAbstractions23rPreCondition()
1433 {
1434 }
1435
1436 private void handleGetInterfaceAbstractions23rPostCondition()
1437 {
1438 }
1439
1440 private java.util.Collection __getInterfaceAbstractions23r;
1441 private boolean __getInterfaceAbstractions23rSet = false;
1442
1443 public final java.util.Collection getInterfaceAbstractions()
1444 {
1445 java.util.Collection getInterfaceAbstractions23r = this.__getInterfaceAbstractions23r;
1446 if (!this.__getInterfaceAbstractions23rSet)
1447 {
1448 handleGetInterfaceAbstractions23rPreCondition();
1449 Object result = this.shieldedElements(handleGetInterfaceAbstractions());
1450 try
1451 {
1452 getInterfaceAbstractions23r = (java.util.Collection)result;
1453 }
1454 catch (ClassCastException ex)
1455 {
1456
1457
1458 }
1459 handleGetInterfaceAbstractions23rPostCondition();
1460 this.__getInterfaceAbstractions23r = getInterfaceAbstractions23r;
1461 if (isMetafacadePropertyCachingEnabled())
1462 {
1463 this.__getInterfaceAbstractions23rSet = true;
1464 }
1465 }
1466 return getInterfaceAbstractions23r;
1467 }
1468
1469 protected abstract java.util.Collection handleGetInterfaceAbstractions();
1470
1471 private void handleGetAssociatedClasses25rPreCondition()
1472 {
1473 }
1474
1475 private void handleGetAssociatedClasses25rPostCondition()
1476 {
1477 }
1478
1479 public final java.util.Collection getAssociatedClasses()
1480 {
1481 java.util.Collection getAssociatedClasses25r = null;
1482 handleGetAssociatedClasses25rPreCondition();
1483 Object result = this.shieldedElements(handleGetAssociatedClasses());
1484 try
1485 {
1486 getAssociatedClasses25r = (java.util.Collection)result;
1487 }
1488 catch (ClassCastException ex)
1489 {
1490
1491
1492 }
1493 handleGetAssociatedClasses25rPostCondition();
1494 return getAssociatedClasses25r;
1495 }
1496
1497 protected abstract java.util.Collection handleGetAssociatedClasses();
1498
1499 private void handleGetAllAssociatedClasses26rPreCondition()
1500 {
1501 }
1502
1503 private void handleGetAllAssociatedClasses26rPostCondition()
1504 {
1505 }
1506
1507 public final java.util.Collection getAllAssociatedClasses()
1508 {
1509 java.util.Collection getAllAssociatedClasses26r = null;
1510 handleGetAllAssociatedClasses26rPreCondition();
1511 Object result = this.shieldedElements(handleGetAllAssociatedClasses());
1512 try
1513 {
1514 getAllAssociatedClasses26r = (java.util.Collection)result;
1515 }
1516 catch (ClassCastException ex)
1517 {
1518
1519
1520 }
1521 handleGetAllAssociatedClasses26rPostCondition();
1522 return getAllAssociatedClasses26r;
1523 }
1524
1525 protected abstract java.util.Collection handleGetAllAssociatedClasses();
1526
1527 private void handleGetImplementationOperations27rPreCondition()
1528 {
1529 }
1530
1531 private void handleGetImplementationOperations27rPostCondition()
1532 {
1533 }
1534
1535 private java.util.Collection __getImplementationOperations27r;
1536 private boolean __getImplementationOperations27rSet = false;
1537
1538 public final java.util.Collection getImplementationOperations()
1539 {
1540 java.util.Collection getImplementationOperations27r = this.__getImplementationOperations27r;
1541 if (!this.__getImplementationOperations27rSet)
1542 {
1543 handleGetImplementationOperations27rPreCondition();
1544 Object result = this.shieldedElements(handleGetImplementationOperations());
1545 try
1546 {
1547 getImplementationOperations27r = (java.util.Collection)result;
1548 }
1549 catch (ClassCastException ex)
1550 {
1551
1552
1553 }
1554 handleGetImplementationOperations27rPostCondition();
1555 this.__getImplementationOperations27r = getImplementationOperations27r;
1556 if (isMetafacadePropertyCachingEnabled())
1557 {
1558 this.__getImplementationOperations27rSet = true;
1559 }
1560 }
1561 return getImplementationOperations27r;
1562 }
1563
1564 protected abstract java.util.Collection handleGetImplementationOperations();
1565
1566 private void handleGetSuperClass29rPreCondition()
1567 {
1568 }
1569
1570 private void handleGetSuperClass29rPostCondition()
1571 {
1572 }
1573
1574 private org.andromda.metafacades.uml.ClassifierFacade __getSuperClass29r;
1575 private boolean __getSuperClass29rSet = false;
1576
1577 public final org.andromda.metafacades.uml.ClassifierFacade getSuperClass()
1578 {
1579 org.andromda.metafacades.uml.ClassifierFacade getSuperClass29r = this.__getSuperClass29r;
1580 if (!this.__getSuperClass29rSet)
1581 {
1582 handleGetSuperClass29rPreCondition();
1583 Object result = this.shieldedElement(handleGetSuperClass());
1584 try
1585 {
1586 getSuperClass29r = (org.andromda.metafacades.uml.ClassifierFacade)result;
1587 }
1588 catch (ClassCastException ex)
1589 {
1590
1591
1592 }
1593 handleGetSuperClass29rPostCondition();
1594 this.__getSuperClass29r = getSuperClass29r;
1595 if (isMetafacadePropertyCachingEnabled())
1596 {
1597 this.__getSuperClass29rSet = true;
1598 }
1599 }
1600 return getSuperClass29r;
1601 }
1602
1603 protected abstract java.lang.Object handleGetSuperClass();
1604
1605 /***
1606 * @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(java.util.Collection)
1607 */
1608 public void validateInvariants(java.util.Collection validationMessages)
1609 {
1610 super.validateInvariants(validationMessages);
1611 {
1612 final java.lang.Object contextElement = this.THIS(); boolean constraintValid = org.andromda.translation.ocl.validation.OCLResultEnsurer.ensure(org.andromda.translation.ocl.validation.OCLCollections.notEmpty(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"name")));
1613 if (!constraintValid)
1614 validationMessages.add(
1615 new org.andromda.core.metafacade.ModelValidationMessage(
1616 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
1617 "org::andromda::metafacades::uml::ClassifierFacade::classifier must have a name",
1618 "Each classifier must have a non-empty name."));
1619 }
1620 {
1621 final java.lang.Object contextElement = this.THIS(); boolean constraintValid = org.andromda.translation.ocl.validation.OCLResultEnsurer.ensure(org.andromda.translation.ocl.validation.OCLCollections.isUnique(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"attributes"),new org.apache.commons.collections.Transformer(){public Object transform(java.lang.Object object){return org.andromda.translation.ocl.validation.OCLIntrospector.invoke(object,"name");}}));
1622 if (!constraintValid)
1623 validationMessages.add(
1624 new org.andromda.core.metafacade.ModelValidationMessage(
1625 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
1626 "org::andromda::metafacades::uml::ClassifierFacade::attribute names must be unique",
1627 "Each attribute on an element must have a unique name."));
1628 }
1629 {
1630 final java.lang.Object contextElement = this.THIS(); boolean constraintValid = org.andromda.translation.ocl.validation.OCLResultEnsurer.ensure(org.andromda.translation.ocl.validation.OCLCollections.isUnique(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"navigableConnectingEnds"),new org.apache.commons.collections.Transformer(){public Object transform(java.lang.Object object){return org.andromda.translation.ocl.validation.OCLIntrospector.invoke(object,"name");}}));
1631 if (!constraintValid)
1632 validationMessages.add(
1633 new org.andromda.core.metafacade.ModelValidationMessage(
1634 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
1635 "org::andromda::metafacades::uml::ClassifierFacade::association end names must be unique",
1636 "The name of each navigable connecting association end must be unique."));
1637 }
1638 {
1639 final java.lang.Object contextElement = this.THIS(); boolean constraintValid = org.andromda.translation.ocl.validation.OCLResultEnsurer.ensure(org.andromda.translation.ocl.validation.OCLCollections.isUnique(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"sourceDependencies"),new org.apache.commons.collections.Transformer(){public Object transform(java.lang.Object object){return org.andromda.translation.ocl.validation.OCLIntrospector.invoke(object,"name");}}));
1640 if (!constraintValid)
1641 validationMessages.add(
1642 new org.andromda.core.metafacade.ModelValidationMessage(
1643 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
1644 "org::andromda::metafacades::uml::ClassifierFacade::source dependencies must be unique",
1645 "Each dependency going out a of an element must have a unique name."));
1646 }
1647 }
1648
1649 /***
1650 * The property that stores the name of the metafacade.
1651 */
1652 private static final String NAME_PROPERTY = "name";
1653
1654 /***
1655 * @see java.lang.Object#toString()
1656 */
1657 public String toString()
1658 {
1659 final StringBuffer toString = new StringBuffer(this.getClass().getName());
1660 toString.append("[");
1661 try
1662 {
1663 toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
1664 }
1665 catch (final Throwable throwable)