View Javadoc

1   //
2   // Attention: generated code (by MetafacadeLogic.vsl) - do not modify!
3   //
4   package org.andromda.metafacades.uml14;
5   
6   /***
7    * MetafacadeLogic for org.andromda.metafacades.uml.OperationFacade
8    *
9    * @see org.andromda.metafacades.uml.OperationFacade
10   */
11  public abstract class OperationFacadeLogic
12      extends org.andromda.metafacades.uml14.ModelElementFacadeLogicImpl
13      implements org.andromda.metafacades.uml.OperationFacade
14  {
15  
16      protected org.omg.uml.foundation.core.Operation metaObject;
17  
18      public OperationFacadeLogic(org.omg.uml.foundation.core.Operation 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.OperationFacade";
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) // reset context only for non-root metafacades
42          {
43              context = getContext(context);  // to have same value as in original constructor call
44              setMetafacadeContext (context);
45          }
46      }
47  
48      /***
49       * @see org.andromda.metafacades.uml.OperationFacade
50       */
51      public boolean isOperationFacadeMetaType()
52      {
53          return true;
54      }
55      
56      // --------------- attributes ---------------------
57  
58     /***
59      * @see org.andromda.metafacades.uml.OperationFacade#getSignature()
60      */
61      protected abstract java.lang.String handleGetSignature();
62  
63      private void handleGetSignature1aPreCondition()
64      {
65      }
66  
67      private void handleGetSignature1aPostCondition()
68      {
69      }
70  
71      private java.lang.String __signature1a;
72      private boolean __signature1aSet = false;
73  
74      public final java.lang.String getSignature()
75      {
76          java.lang.String signature1a = this.__signature1a;
77          if (!this.__signature1aSet)
78          {
79              handleGetSignature1aPreCondition();
80              signature1a = handleGetSignature();
81              handleGetSignature1aPostCondition();
82              this.__signature1a = signature1a;
83              if (isMetafacadePropertyCachingEnabled())
84              {
85                  this.__signature1aSet = true;
86              }
87          }
88          return signature1a;
89      }
90  
91     /***
92      * @see org.andromda.metafacades.uml.OperationFacade#getCall()
93      */
94      protected abstract java.lang.String handleGetCall();
95  
96      private void handleGetCall2aPreCondition()
97      {
98      }
99  
100     private void handleGetCall2aPostCondition()
101     {
102     }
103 
104     private java.lang.String __call2a;
105     private boolean __call2aSet = false;
106 
107     public final java.lang.String getCall()
108     {
109         java.lang.String call2a = this.__call2a;
110         if (!this.__call2aSet)
111         {
112             handleGetCall2aPreCondition();
113             call2a = handleGetCall();
114             handleGetCall2aPostCondition();
115             this.__call2a = call2a;
116             if (isMetafacadePropertyCachingEnabled())
117             {
118                 this.__call2aSet = true;
119             }
120         }
121         return call2a;
122     }
123 
124    /***
125     * @see org.andromda.metafacades.uml.OperationFacade#getTypedArgumentList()
126     */
127     protected abstract java.lang.String handleGetTypedArgumentList();
128 
129     private void handleGetTypedArgumentList3aPreCondition()
130     {
131     }
132 
133     private void handleGetTypedArgumentList3aPostCondition()
134     {
135     }
136 
137     private java.lang.String __typedArgumentList3a;
138     private boolean __typedArgumentList3aSet = false;
139 
140     public final java.lang.String getTypedArgumentList()
141     {
142         java.lang.String typedArgumentList3a = this.__typedArgumentList3a;
143         if (!this.__typedArgumentList3aSet)
144         {
145             handleGetTypedArgumentList3aPreCondition();
146             typedArgumentList3a = handleGetTypedArgumentList();
147             handleGetTypedArgumentList3aPostCondition();
148             this.__typedArgumentList3a = typedArgumentList3a;
149             if (isMetafacadePropertyCachingEnabled())
150             {
151                 this.__typedArgumentList3aSet = true;
152             }
153         }
154         return typedArgumentList3a;
155     }
156 
157    /***
158     * @see org.andromda.metafacades.uml.OperationFacade#isStatic()
159     */
160     protected abstract boolean handleIsStatic();
161 
162     private void handleIsStatic4aPreCondition()
163     {
164     }
165 
166     private void handleIsStatic4aPostCondition()
167     {
168     }
169 
170     private boolean __static4a;
171     private boolean __static4aSet = false;
172 
173     public final boolean isStatic()
174     {
175         boolean static4a = this.__static4a;
176         if (!this.__static4aSet)
177         {
178             handleIsStatic4aPreCondition();
179             static4a = handleIsStatic();
180             handleIsStatic4aPostCondition();
181             this.__static4a = static4a;
182             if (isMetafacadePropertyCachingEnabled())
183             {
184                 this.__static4aSet = true;
185             }
186         }
187         return static4a;
188     }
189 
190    /***
191     * @see org.andromda.metafacades.uml.OperationFacade#isAbstract()
192     */
193     protected abstract boolean handleIsAbstract();
194 
195     private void handleIsAbstract5aPreCondition()
196     {
197     }
198 
199     private void handleIsAbstract5aPostCondition()
200     {
201     }
202 
203     private boolean __abstract5a;
204     private boolean __abstract5aSet = false;
205 
206     public final boolean isAbstract()
207     {
208         boolean abstract5a = this.__abstract5a;
209         if (!this.__abstract5aSet)
210         {
211             handleIsAbstract5aPreCondition();
212             abstract5a = handleIsAbstract();
213             handleIsAbstract5aPostCondition();
214             this.__abstract5a = abstract5a;
215             if (isMetafacadePropertyCachingEnabled())
216             {
217                 this.__abstract5aSet = true;
218             }
219         }
220         return abstract5a;
221     }
222 
223    /***
224     * @see org.andromda.metafacades.uml.OperationFacade#getExceptionList()
225     */
226     protected abstract java.lang.String handleGetExceptionList();
227 
228     private void handleGetExceptionList6aPreCondition()
229     {
230     }
231 
232     private void handleGetExceptionList6aPostCondition()
233     {
234     }
235 
236     private java.lang.String __exceptionList6a;
237     private boolean __exceptionList6aSet = false;
238 
239     public final java.lang.String getExceptionList()
240     {
241         java.lang.String exceptionList6a = this.__exceptionList6a;
242         if (!this.__exceptionList6aSet)
243         {
244             handleGetExceptionList6aPreCondition();
245             exceptionList6a = handleGetExceptionList();
246             handleGetExceptionList6aPostCondition();
247             this.__exceptionList6a = exceptionList6a;
248             if (isMetafacadePropertyCachingEnabled())
249             {
250                 this.__exceptionList6aSet = true;
251             }
252         }
253         return exceptionList6a;
254     }
255 
256    /***
257     * @see org.andromda.metafacades.uml.OperationFacade#getExceptions()
258     */
259     protected abstract java.util.Collection handleGetExceptions();
260 
261     private void handleGetExceptions7aPreCondition()
262     {
263     }
264 
265     private void handleGetExceptions7aPostCondition()
266     {
267     }
268 
269     private java.util.Collection __exceptions7a;
270     private boolean __exceptions7aSet = false;
271 
272     public final java.util.Collection getExceptions()
273     {
274         java.util.Collection exceptions7a = this.__exceptions7a;
275         if (!this.__exceptions7aSet)
276         {
277             handleGetExceptions7aPreCondition();
278             exceptions7a = handleGetExceptions();
279             handleGetExceptions7aPostCondition();
280             this.__exceptions7a = exceptions7a;
281             if (isMetafacadePropertyCachingEnabled())
282             {
283                 this.__exceptions7aSet = true;
284             }
285         }
286         return exceptions7a;
287     }
288 
289    /***
290     * @see org.andromda.metafacades.uml.OperationFacade#isReturnTypePresent()
291     */
292     protected abstract boolean handleIsReturnTypePresent();
293 
294     private void handleIsReturnTypePresent8aPreCondition()
295     {
296     }
297 
298     private void handleIsReturnTypePresent8aPostCondition()
299     {
300     }
301 
302     private boolean __returnTypePresent8a;
303     private boolean __returnTypePresent8aSet = false;
304 
305     public final boolean isReturnTypePresent()
306     {
307         boolean returnTypePresent8a = this.__returnTypePresent8a;
308         if (!this.__returnTypePresent8aSet)
309         {
310             handleIsReturnTypePresent8aPreCondition();
311             returnTypePresent8a = handleIsReturnTypePresent();
312             handleIsReturnTypePresent8aPostCondition();
313             this.__returnTypePresent8a = returnTypePresent8a;
314             if (isMetafacadePropertyCachingEnabled())
315             {
316                 this.__returnTypePresent8aSet = true;
317             }
318         }
319         return returnTypePresent8a;
320     }
321 
322    /***
323     * @see org.andromda.metafacades.uml.OperationFacade#isExceptionsPresent()
324     */
325     protected abstract boolean handleIsExceptionsPresent();
326 
327     private void handleIsExceptionsPresent9aPreCondition()
328     {
329     }
330 
331     private void handleIsExceptionsPresent9aPostCondition()
332     {
333     }
334 
335     private boolean __exceptionsPresent9a;
336     private boolean __exceptionsPresent9aSet = false;
337 
338     public final boolean isExceptionsPresent()
339     {
340         boolean exceptionsPresent9a = this.__exceptionsPresent9a;
341         if (!this.__exceptionsPresent9aSet)
342         {
343             handleIsExceptionsPresent9aPreCondition();
344             exceptionsPresent9a = handleIsExceptionsPresent();
345             handleIsExceptionsPresent9aPostCondition();
346             this.__exceptionsPresent9a = exceptionsPresent9a;
347             if (isMetafacadePropertyCachingEnabled())
348             {
349                 this.__exceptionsPresent9aSet = true;
350             }
351         }
352         return exceptionsPresent9a;
353     }
354 
355    /***
356     * @see org.andromda.metafacades.uml.OperationFacade#getArgumentNames()
357     */
358     protected abstract java.lang.String handleGetArgumentNames();
359 
360     private void handleGetArgumentNames10aPreCondition()
361     {
362     }
363 
364     private void handleGetArgumentNames10aPostCondition()
365     {
366     }
367 
368     private java.lang.String __argumentNames10a;
369     private boolean __argumentNames10aSet = false;
370 
371     public final java.lang.String getArgumentNames()
372     {
373         java.lang.String argumentNames10a = this.__argumentNames10a;
374         if (!this.__argumentNames10aSet)
375         {
376             handleGetArgumentNames10aPreCondition();
377             argumentNames10a = handleGetArgumentNames();
378             handleGetArgumentNames10aPostCondition();
379             this.__argumentNames10a = argumentNames10a;
380             if (isMetafacadePropertyCachingEnabled())
381             {
382                 this.__argumentNames10aSet = true;
383             }
384         }
385         return argumentNames10a;
386     }
387 
388    /***
389     * @see org.andromda.metafacades.uml.OperationFacade#getArgumentTypeNames()
390     */
391     protected abstract java.lang.String handleGetArgumentTypeNames();
392 
393     private void handleGetArgumentTypeNames11aPreCondition()
394     {
395     }
396 
397     private void handleGetArgumentTypeNames11aPostCondition()
398     {
399     }
400 
401     private java.lang.String __argumentTypeNames11a;
402     private boolean __argumentTypeNames11aSet = false;
403 
404     public final java.lang.String getArgumentTypeNames()
405     {
406         java.lang.String argumentTypeNames11a = this.__argumentTypeNames11a;
407         if (!this.__argumentTypeNames11aSet)
408         {
409             handleGetArgumentTypeNames11aPreCondition();
410             argumentTypeNames11a = handleGetArgumentTypeNames();
411             handleGetArgumentTypeNames11aPostCondition();
412             this.__argumentTypeNames11a = argumentTypeNames11a;
413             if (isMetafacadePropertyCachingEnabled())
414             {
415                 this.__argumentTypeNames11aSet = true;
416             }
417         }
418         return argumentTypeNames11a;
419     }
420 
421    /***
422     * @see org.andromda.metafacades.uml.OperationFacade#isQuery()
423     */
424     protected abstract boolean handleIsQuery();
425 
426     private void handleIsQuery12aPreCondition()
427     {
428     }
429 
430     private void handleIsQuery12aPostCondition()
431     {
432     }
433 
434     private boolean __query12a;
435     private boolean __query12aSet = false;
436 
437     public final boolean isQuery()
438     {
439         boolean query12a = this.__query12a;
440         if (!this.__query12aSet)
441         {
442             handleIsQuery12aPreCondition();
443             query12a = handleIsQuery();
444             handleIsQuery12aPostCondition();
445             this.__query12a = query12a;
446             if (isMetafacadePropertyCachingEnabled())
447             {
448                 this.__query12aSet = true;
449             }
450         }
451         return query12a;
452     }
453 
454    /***
455     * @see org.andromda.metafacades.uml.OperationFacade#getConcurrency()
456     */
457     protected abstract java.lang.String handleGetConcurrency();
458 
459     private void handleGetConcurrency13aPreCondition()
460     {
461     }
462 
463     private void handleGetConcurrency13aPostCondition()
464     {
465     }
466 
467     private java.lang.String __concurrency13a;
468     private boolean __concurrency13aSet = false;
469 
470     public final java.lang.String getConcurrency()
471     {
472         java.lang.String concurrency13a = this.__concurrency13a;
473         if (!this.__concurrency13aSet)
474         {
475             handleGetConcurrency13aPreCondition();
476             concurrency13a = handleGetConcurrency();
477             handleGetConcurrency13aPostCondition();
478             this.__concurrency13a = concurrency13a;
479             if (isMetafacadePropertyCachingEnabled())
480             {
481                 this.__concurrency13aSet = true;
482             }
483         }
484         return concurrency13a;
485     }
486 
487    /***
488     * @see org.andromda.metafacades.uml.OperationFacade#getPreconditionName()
489     */
490     protected abstract java.lang.String handleGetPreconditionName();
491 
492     private void handleGetPreconditionName14aPreCondition()
493     {
494     }
495 
496     private void handleGetPreconditionName14aPostCondition()
497     {
498     }
499 
500     private java.lang.String __preconditionName14a;
501     private boolean __preconditionName14aSet = false;
502 
503     public final java.lang.String getPreconditionName()
504     {
505         java.lang.String preconditionName14a = this.__preconditionName14a;
506         if (!this.__preconditionName14aSet)
507         {
508             handleGetPreconditionName14aPreCondition();
509             preconditionName14a = handleGetPreconditionName();
510             handleGetPreconditionName14aPostCondition();
511             this.__preconditionName14a = preconditionName14a;
512             if (isMetafacadePropertyCachingEnabled())
513             {
514                 this.__preconditionName14aSet = true;
515             }
516         }
517         return preconditionName14a;
518     }
519 
520    /***
521     * @see org.andromda.metafacades.uml.OperationFacade#getPostconditionName()
522     */
523     protected abstract java.lang.String handleGetPostconditionName();
524 
525     private void handleGetPostconditionName15aPreCondition()
526     {
527     }
528 
529     private void handleGetPostconditionName15aPostCondition()
530     {
531     }
532 
533     private java.lang.String __postconditionName15a;
534     private boolean __postconditionName15aSet = false;
535 
536     public final java.lang.String getPostconditionName()
537     {
538         java.lang.String postconditionName15a = this.__postconditionName15a;
539         if (!this.__postconditionName15aSet)
540         {
541             handleGetPostconditionName15aPreCondition();
542             postconditionName15a = handleGetPostconditionName();
543             handleGetPostconditionName15aPostCondition();
544             this.__postconditionName15a = postconditionName15a;
545             if (isMetafacadePropertyCachingEnabled())
546             {
547                 this.__postconditionName15aSet = true;
548             }
549         }
550         return postconditionName15a;
551     }
552 
553    /***
554     * @see org.andromda.metafacades.uml.OperationFacade#getPreconditionSignature()
555     */
556     protected abstract java.lang.String handleGetPreconditionSignature();
557 
558     private void handleGetPreconditionSignature16aPreCondition()
559     {
560     }
561 
562     private void handleGetPreconditionSignature16aPostCondition()
563     {
564     }
565 
566     private java.lang.String __preconditionSignature16a;
567     private boolean __preconditionSignature16aSet = false;
568 
569     public final java.lang.String getPreconditionSignature()
570     {
571         java.lang.String preconditionSignature16a = this.__preconditionSignature16a;
572         if (!this.__preconditionSignature16aSet)
573         {
574             handleGetPreconditionSignature16aPreCondition();
575             preconditionSignature16a = handleGetPreconditionSignature();
576             handleGetPreconditionSignature16aPostCondition();
577             this.__preconditionSignature16a = preconditionSignature16a;
578             if (isMetafacadePropertyCachingEnabled())
579             {
580                 this.__preconditionSignature16aSet = true;
581             }
582         }
583         return preconditionSignature16a;
584     }
585 
586    /***
587     * @see org.andromda.metafacades.uml.OperationFacade#getPreconditionCall()
588     */
589     protected abstract java.lang.String handleGetPreconditionCall();
590 
591     private void handleGetPreconditionCall17aPreCondition()
592     {
593     }
594 
595     private void handleGetPreconditionCall17aPostCondition()
596     {
597     }
598 
599     private java.lang.String __preconditionCall17a;
600     private boolean __preconditionCall17aSet = false;
601 
602     public final java.lang.String getPreconditionCall()
603     {
604         java.lang.String preconditionCall17a = this.__preconditionCall17a;
605         if (!this.__preconditionCall17aSet)
606         {
607             handleGetPreconditionCall17aPreCondition();
608             preconditionCall17a = handleGetPreconditionCall();
609             handleGetPreconditionCall17aPostCondition();
610             this.__preconditionCall17a = preconditionCall17a;
611             if (isMetafacadePropertyCachingEnabled())
612             {
613                 this.__preconditionCall17aSet = true;
614             }
615         }
616         return preconditionCall17a;
617     }
618 
619    /***
620     * @see org.andromda.metafacades.uml.OperationFacade#isPreconditionsPresent()
621     */
622     protected abstract boolean handleIsPreconditionsPresent();
623 
624     private void handleIsPreconditionsPresent18aPreCondition()
625     {
626     }
627 
628     private void handleIsPreconditionsPresent18aPostCondition()
629     {
630     }
631 
632     private boolean __preconditionsPresent18a;
633     private boolean __preconditionsPresent18aSet = false;
634 
635     public final boolean isPreconditionsPresent()
636     {
637         boolean preconditionsPresent18a = this.__preconditionsPresent18a;
638         if (!this.__preconditionsPresent18aSet)
639         {
640             handleIsPreconditionsPresent18aPreCondition();
641             preconditionsPresent18a = handleIsPreconditionsPresent();
642             handleIsPreconditionsPresent18aPostCondition();
643             this.__preconditionsPresent18a = preconditionsPresent18a;
644             if (isMetafacadePropertyCachingEnabled())
645             {
646                 this.__preconditionsPresent18aSet = true;
647             }
648         }
649         return preconditionsPresent18a;
650     }
651 
652    /***
653     * @see org.andromda.metafacades.uml.OperationFacade#isPostconditionsPresent()
654     */
655     protected abstract boolean handleIsPostconditionsPresent();
656 
657     private void handleIsPostconditionsPresent19aPreCondition()
658     {
659     }
660 
661     private void handleIsPostconditionsPresent19aPostCondition()
662     {
663     }
664 
665     private boolean __postconditionsPresent19a;
666     private boolean __postconditionsPresent19aSet = false;
667 
668     public final boolean isPostconditionsPresent()
669     {
670         boolean postconditionsPresent19a = this.__postconditionsPresent19a;
671         if (!this.__postconditionsPresent19aSet)
672         {
673             handleIsPostconditionsPresent19aPreCondition();
674             postconditionsPresent19a = handleIsPostconditionsPresent();
675             handleIsPostconditionsPresent19aPostCondition();
676             this.__postconditionsPresent19a = postconditionsPresent19a;
677             if (isMetafacadePropertyCachingEnabled())
678             {
679                 this.__postconditionsPresent19aSet = true;
680             }
681         }
682         return postconditionsPresent19a;
683     }
684 
685    /***
686     * @see org.andromda.metafacades.uml.OperationFacade#getLower()
687     */
688     protected abstract int handleGetLower();
689 
690     private void handleGetLower20aPreCondition()
691     {
692     }
693 
694     private void handleGetLower20aPostCondition()
695     {
696     }
697 
698     private int __lower20a;
699     private boolean __lower20aSet = false;
700 
701     public final int getLower()
702     {
703         int lower20a = this.__lower20a;
704         if (!this.__lower20aSet)
705         {
706             handleGetLower20aPreCondition();
707             lower20a = handleGetLower();
708             handleGetLower20aPostCondition();
709             this.__lower20a = lower20a;
710             if (isMetafacadePropertyCachingEnabled())
711             {
712                 this.__lower20aSet = true;
713             }
714         }
715         return lower20a;
716     }
717 
718    /***
719     * @see org.andromda.metafacades.uml.OperationFacade#getUpper()
720     */
721     protected abstract int handleGetUpper();
722 
723     private void handleGetUpper21aPreCondition()
724     {
725     }
726 
727     private void handleGetUpper21aPostCondition()
728     {
729     }
730 
731     private int __upper21a;
732     private boolean __upper21aSet = false;
733 
734     public final int getUpper()
735     {
736         int upper21a = this.__upper21a;
737         if (!this.__upper21aSet)
738         {
739             handleGetUpper21aPreCondition();
740             upper21a = handleGetUpper();
741             handleGetUpper21aPostCondition();
742             this.__upper21a = upper21a;
743             if (isMetafacadePropertyCachingEnabled())
744             {
745                 this.__upper21aSet = true;
746             }
747         }
748         return upper21a;
749     }
750 
751    /***
752     * @see org.andromda.metafacades.uml.OperationFacade#getReturnParameter()
753     */
754     protected abstract org.andromda.metafacades.uml.ParameterFacade handleGetReturnParameter();
755 
756     private void handleGetReturnParameter22aPreCondition()
757     {
758     }
759 
760     private void handleGetReturnParameter22aPostCondition()
761     {
762     }
763 
764     private org.andromda.metafacades.uml.ParameterFacade __returnParameter22a;
765     private boolean __returnParameter22aSet = false;
766 
767     public final org.andromda.metafacades.uml.ParameterFacade getReturnParameter()
768     {
769         org.andromda.metafacades.uml.ParameterFacade returnParameter22a = this.__returnParameter22a;
770         if (!this.__returnParameter22aSet)
771         {
772             handleGetReturnParameter22aPreCondition();
773             returnParameter22a = handleGetReturnParameter();
774             handleGetReturnParameter22aPostCondition();
775             this.__returnParameter22a = returnParameter22a;
776             if (isMetafacadePropertyCachingEnabled())
777             {
778                 this.__returnParameter22aSet = true;
779             }
780         }
781         return returnParameter22a;
782     }
783 
784    /***
785     * @see org.andromda.metafacades.uml.OperationFacade#isOverriding()
786     */
787     protected abstract boolean handleIsOverriding();
788 
789     private void handleIsOverriding23aPreCondition()
790     {
791     }
792 
793     private void handleIsOverriding23aPostCondition()
794     {
795     }
796 
797     private boolean __overriding23a;
798     private boolean __overriding23aSet = false;
799 
800     public final boolean isOverriding()
801     {
802         boolean overriding23a = this.__overriding23a;
803         if (!this.__overriding23aSet)
804         {
805             handleIsOverriding23aPreCondition();
806             overriding23a = handleIsOverriding();
807             handleIsOverriding23aPostCondition();
808             this.__overriding23a = overriding23a;
809             if (isMetafacadePropertyCachingEnabled())
810             {
811                 this.__overriding23aSet = true;
812             }
813         }
814         return overriding23a;
815     }
816 
817     // ---------------- business methods ----------------------
818 
819     protected abstract java.lang.Object handleFindTaggedValue(java.lang.String name, boolean follow);
820 
821     private void handleFindTaggedValue1oPreCondition()
822     {
823     }
824 
825     private void handleFindTaggedValue1oPostCondition()
826     {
827     }
828 
829     public java.lang.Object findTaggedValue(java.lang.String name, boolean follow)
830     {
831         handleFindTaggedValue1oPreCondition();
832         java.lang.Object returnValue = handleFindTaggedValue(name, follow);
833         handleFindTaggedValue1oPostCondition();
834         return returnValue;
835     }
836 
837     protected abstract java.lang.String handleGetExceptionList(java.lang.String initialExceptions);
838 
839     private void handleGetExceptionList2oPreCondition()
840     {
841     }
842 
843     private void handleGetExceptionList2oPostCondition()
844     {
845     }
846 
847     public java.lang.String getExceptionList(java.lang.String initialExceptions)
848     {
849         handleGetExceptionList2oPreCondition();
850         java.lang.String returnValue = handleGetExceptionList(initialExceptions);
851         handleGetExceptionList2oPostCondition();
852         return returnValue;
853     }
854 
855     protected abstract java.lang.String handleGetSignature(boolean withArgumentNames);
856 
857     private void handleGetSignature3oPreCondition()
858     {
859     }
860 
861     private void handleGetSignature3oPostCondition()
862     {
863     }
864 
865     public java.lang.String getSignature(boolean withArgumentNames)
866     {
867         handleGetSignature3oPreCondition();
868         java.lang.String returnValue = handleGetSignature(withArgumentNames);
869         handleGetSignature3oPostCondition();
870         return returnValue;
871     }
872 
873     protected abstract java.lang.String handleGetTypedArgumentList(java.lang.String modifier);
874 
875     private void handleGetTypedArgumentList4oPreCondition()
876     {
877     }
878 
879     private void handleGetTypedArgumentList4oPostCondition()
880     {
881     }
882 
883     public java.lang.String getTypedArgumentList(java.lang.String modifier)
884     {
885         handleGetTypedArgumentList4oPreCondition();
886         java.lang.String returnValue = handleGetTypedArgumentList(modifier);
887         handleGetTypedArgumentList4oPostCondition();
888         return returnValue;
889     }
890 
891     protected abstract java.lang.String handleGetSignature(java.lang.String argumentModifier);
892 
893     private void handleGetSignature5oPreCondition()
894     {
895     }
896 
897     private void handleGetSignature5oPostCondition()
898     {
899     }
900 
901     public java.lang.String getSignature(java.lang.String argumentModifier)
902     {
903         handleGetSignature5oPreCondition();
904         java.lang.String returnValue = handleGetSignature(argumentModifier);
905         handleGetSignature5oPostCondition();
906         return returnValue;
907     }
908 
909     protected abstract org.andromda.metafacades.uml.ParameterFacade handleFindParameter(java.lang.String name);
910 
911     private void handleFindParameter6oPreCondition()
912     {
913     }
914 
915     private void handleFindParameter6oPostCondition()
916     {
917     }
918 
919     public org.andromda.metafacades.uml.ParameterFacade findParameter(java.lang.String name)
920     {
921         handleFindParameter6oPreCondition();
922         org.andromda.metafacades.uml.ParameterFacade returnValue = handleFindParameter(name);
923         handleFindParameter6oPostCondition();
924         return returnValue;
925     }
926 
927     // ------------- associations ------------------
928 
929     private void handleGetOwner1rPreCondition()
930     {
931     }
932 
933     private void handleGetOwner1rPostCondition()
934     {
935     }
936 
937     public final org.andromda.metafacades.uml.ClassifierFacade getOwner()
938     {
939         org.andromda.metafacades.uml.ClassifierFacade getOwner1r = null;
940         handleGetOwner1rPreCondition();
941         Object result = this.shieldedElement(handleGetOwner());
942         try
943         {
944             getOwner1r = (org.andromda.metafacades.uml.ClassifierFacade)result;
945         }
946         catch (ClassCastException ex)
947         {
948             // ignore since the metafacade shouldn't
949             // be set if its not of the correct type
950         }
951         handleGetOwner1rPostCondition();
952         return getOwner1r;
953     }
954 
955     protected abstract java.lang.Object handleGetOwner();
956 
957     private void handleGetParameters2rPreCondition()
958     {
959     }
960 
961     private void handleGetParameters2rPostCondition()
962     {
963     }
964 
965     public final java.util.Collection getParameters()
966     {
967         java.util.Collection getParameters2r = null;
968         handleGetParameters2rPreCondition();
969         Object result = this.shieldedElements(handleGetParameters());
970         try
971         {
972             getParameters2r = (java.util.Collection)result;
973         }
974         catch (ClassCastException ex)
975         {
976             // ignore since the metafacade shouldn't
977             // be set if its not of the correct type
978         }
979         handleGetParameters2rPostCondition();
980         return getParameters2r;
981     }
982 
983     protected abstract java.util.Collection handleGetParameters();
984 
985     private void handleGetReturnType5rPreCondition()
986     {
987     }
988 
989     private void handleGetReturnType5rPostCondition()
990     {
991     }
992 
993     public final org.andromda.metafacades.uml.ClassifierFacade getReturnType()
994     {
995         org.andromda.metafacades.uml.ClassifierFacade getReturnType5r = null;
996         handleGetReturnType5rPreCondition();
997         Object result = this.shieldedElement(handleGetReturnType());
998         try
999         {
1000             getReturnType5r = (org.andromda.metafacades.uml.ClassifierFacade)result;
1001         }
1002         catch (ClassCastException ex)
1003         {
1004             // ignore since the metafacade shouldn't
1005             // be set if its not of the correct type
1006         }
1007         handleGetReturnType5rPostCondition();
1008         return getReturnType5r;
1009     }
1010 
1011     protected abstract java.lang.Object handleGetReturnType();
1012 
1013     private void handleGetArguments9rPreCondition()
1014     {
1015     }
1016 
1017     private void handleGetArguments9rPostCondition()
1018     {
1019     }
1020 
1021     public final java.util.Collection getArguments()
1022     {
1023         java.util.Collection getArguments9r = null;
1024         handleGetArguments9rPreCondition();
1025         Object result = this.shieldedElements(handleGetArguments());
1026         try
1027         {
1028             getArguments9r = (java.util.Collection)result;
1029         }
1030         catch (ClassCastException ex)
1031         {
1032             // ignore since the metafacade shouldn't
1033             // be set if its not of the correct type
1034         }
1035         handleGetArguments9rPostCondition();
1036         return getArguments9r;
1037     }
1038 
1039     protected abstract java.util.Collection handleGetArguments();
1040 
1041     private void handleGetPreconditions10rPreCondition()
1042     {
1043     }
1044 
1045     private void handleGetPreconditions10rPostCondition()
1046     {
1047     }
1048 
1049     public final java.util.Collection getPreconditions()
1050     {
1051         java.util.Collection getPreconditions10r = null;
1052         handleGetPreconditions10rPreCondition();
1053         Object result = this.shieldedElements(handleGetPreconditions());
1054         try
1055         {
1056             getPreconditions10r = (java.util.Collection)result;
1057         }
1058         catch (ClassCastException ex)
1059         {
1060             // ignore since the metafacade shouldn't
1061             // be set if its not of the correct type
1062         }
1063         handleGetPreconditions10rPostCondition();
1064         return getPreconditions10r;
1065     }
1066 
1067     protected abstract java.util.Collection handleGetPreconditions();
1068 
1069     private void handleGetPostconditions11rPreCondition()
1070     {
1071     }
1072 
1073     private void handleGetPostconditions11rPostCondition()
1074     {
1075     }
1076 
1077     public final java.util.Collection getPostconditions()
1078     {
1079         java.util.Collection getPostconditions11r = null;
1080         handleGetPostconditions11rPreCondition();
1081         Object result = this.shieldedElements(handleGetPostconditions());
1082         try
1083         {
1084             getPostconditions11r = (java.util.Collection)result;
1085         }
1086         catch (ClassCastException ex)
1087         {
1088             // ignore since the metafacade shouldn't
1089             // be set if its not of the correct type
1090         }
1091         handleGetPostconditions11rPostCondition();
1092         return getPostconditions11r;
1093     }
1094 
1095     protected abstract java.util.Collection handleGetPostconditions();
1096 
1097     private void handleGetOverriddenOperation16rPreCondition()
1098     {
1099     }
1100 
1101     private void handleGetOverriddenOperation16rPostCondition()
1102     {
1103     }
1104 
1105     private org.andromda.metafacades.uml.OperationFacade __getOverriddenOperation16r;
1106     private boolean __getOverriddenOperation16rSet = false;
1107 
1108     public final org.andromda.metafacades.uml.OperationFacade getOverriddenOperation()
1109     {
1110         org.andromda.metafacades.uml.OperationFacade getOverriddenOperation16r = this.__getOverriddenOperation16r;
1111         if (!this.__getOverriddenOperation16rSet)
1112         {
1113             handleGetOverriddenOperation16rPreCondition();
1114             Object result = this.shieldedElement(handleGetOverriddenOperation());
1115             try
1116             {
1117                 getOverriddenOperation16r = (org.andromda.metafacades.uml.OperationFacade)result;
1118             }
1119             catch (ClassCastException ex)
1120             {
1121                 // ignore since the metafacade shouldn't
1122                 // be set if its not of the correct type
1123             }
1124             handleGetOverriddenOperation16rPostCondition();
1125             this.__getOverriddenOperation16r = getOverriddenOperation16r;
1126             if (isMetafacadePropertyCachingEnabled())
1127             {
1128                 this.__getOverriddenOperation16rSet = true;
1129             }
1130         }
1131         return getOverriddenOperation16r;
1132     }
1133 
1134     protected abstract java.lang.Object handleGetOverriddenOperation();
1135 
1136     /***
1137      * @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(java.util.Collection)
1138      */
1139     public void validateInvariants(java.util.Collection validationMessages)
1140     {
1141         super.validateInvariants(validationMessages);
1142         {
1143             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,"returnType"))); 
1144             if (!constraintValid)
1145                 validationMessages.add(
1146                     new org.andromda.core.metafacade.ModelValidationMessage(
1147                         (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
1148                         "org::andromda::metafacades::uml::OperationFacade::operation needs a return type",
1149                         "Each operation needs a return type, you cannot leave the type unspecified, even if you want void you'll need to explicitely specify it."));
1150         }
1151         {
1152             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"))); 
1153             if (!constraintValid)
1154                 validationMessages.add(
1155                     new org.andromda.core.metafacade.ModelValidationMessage(
1156                         (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
1157                         "org::andromda::metafacades::uml::OperationFacade::operation must have a name",
1158                         "Each operation must have a non-empty name."));
1159         }
1160     }
1161     
1162     /***
1163      * The property that stores the name of the metafacade.
1164      */
1165     private static final String NAME_PROPERTY = "name";
1166     
1167     /***
1168      * @see java.lang.Object#toString()
1169      */
1170     public String toString()
1171     {
1172         final StringBuffer toString = new StringBuffer(this.getClass().getName());
1173         toString.append("[");
1174         try
1175         {
1176             toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
1177         }
1178         catch (final Throwable throwable)
1179         {
1180             // - just ignore when the metafacade doesn't have a name property
1181         }
1182         toString.append("]");
1183         return toString.toString();
1184     }
1185 }