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.ModelElementFacade
8    *
9    * @see org.andromda.metafacades.uml.ModelElementFacade
10   */
11  public abstract class ModelElementFacadeLogic
12      extends org.andromda.core.metafacade.MetafacadeBase
13      implements org.andromda.metafacades.uml.ModelElementFacade
14  {
15  
16      protected org.omg.uml.foundation.core.ModelElement metaObject;
17  
18      public ModelElementFacadeLogic(org.omg.uml.foundation.core.ModelElement 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.ModelElementFacade";
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.ModelElementFacade
50       */
51      public boolean isModelElementFacadeMetaType()
52      {
53          return true;
54      }
55      
56      // --------------- attributes ---------------------
57  
58     /***
59      * @see org.andromda.metafacades.uml.ModelElementFacade#getVisibility()
60      */
61      protected abstract java.lang.String handleGetVisibility();
62  
63      private void handleGetVisibility1aPreCondition()
64      {
65      }
66  
67      private void handleGetVisibility1aPostCondition()
68      {
69      }
70  
71      private java.lang.String __visibility1a;
72      private boolean __visibility1aSet = false;
73  
74      public final java.lang.String getVisibility()
75      {
76          java.lang.String visibility1a = this.__visibility1a;
77          if (!this.__visibility1aSet)
78          {
79              handleGetVisibility1aPreCondition();
80              visibility1a = handleGetVisibility();
81              handleGetVisibility1aPostCondition();
82              this.__visibility1a = visibility1a;
83              if (isMetafacadePropertyCachingEnabled())
84              {
85                  this.__visibility1aSet = true;
86              }
87          }
88          return visibility1a;
89      }
90  
91     /***
92      * @see org.andromda.metafacades.uml.ModelElementFacade#getPackagePath()
93      */
94      protected abstract java.lang.String handleGetPackagePath();
95  
96      private void handleGetPackagePath2aPreCondition()
97      {
98      }
99  
100     private void handleGetPackagePath2aPostCondition()
101     {
102     }
103 
104     privateong> java.lang.String __packagePath2a;
105     privateong> boolean __packagePath2aSet = false;
106 
107     public final java.lang.String getPackagePath()
108     {
109         java.lang.String packagePath2a = this.__packagePath2a;
110         if</strong> (!this.__packagePath2aSet)
111         {
112             handleGetPackagePath2aPreCondition();
113             packagePath2a = handleGetPackagePath();
114             handleGetPackagePath2aPostCondition();
115             this.__packagePath2a = packagePath2a;
116             if (isMetafacadePropertyCachingEnabled())
117             {
118                 this.__packagePath2aSet = true;
119             }
120         }
121         return</strong> packagePath2a;
122     }
123 
124    /***
125     * @see org.andromda.metafacades.uml.ModelElementFacade#getName()
126     */
127     protected abstract java.lang.String handleGetName();
128 
129     private void handleGetName3aPreCondition()
130     {
131     }
132 
133     private void handleGetName3aPostCondition()
134     {
135     }
136 
137     private java.lang.String __name3a;
138     private boolean __name3aSet = false;
139 
140     public final java.lang.String getName()
141     {
142         java.lang.String name3a = this.__name3a;
143         if (!this.__name3aSet)
144         {
145             handleGetName3aPreCondition();
146             name3a = handleGetName();
147             handleGetName3aPostCondition();
148             this.__name3a = name3a;
149             if (isMetafacadePropertyCachingEnabled())
150             {
151                 this.__name3aSet = true;
152             }
153         }
154         return name3a;
155     }
156 
157    /***
158     * @see org.andromda.metafacades.uml.ModelElementFacade#getPackageName()
159     */
160     protected abstract java.lang.String handleGetPackageName();
161 
162     private void handleGetPackageName4aPreCondition()
163     {
164     }
165 
166     private void handleGetPackageName4aPostCondition()
167     {
168     }
169 
170     privateong> java.lang.String __packageName4a;
171     privateong> boolean __packageName4aSet = false;
172 
173     public final java.lang.String getPackageName()
174     {
175         java.lang.String packageName4a = this.__packageName4a;
176         if</strong> (!this.__packageName4aSet)
177         {
178             handleGetPackageName4aPreCondition();
179             packageName4a = handleGetPackageName();
180             handleGetPackageName4aPostCondition();
181             this.__packageName4a = packageName4a;
182             if (isMetafacadePropertyCachingEnabled())
183             {
184                 this.__packageName4aSet = true;
185             }
186         }
187         return</strong> packageName4a;
188     }
189 
190    /***
191     * @see org.andromda.metafacades.uml.ModelElementFacade#getFullyQualifiedName()
192     */
193     protected abstract java.lang.String handleGetFullyQualifiedName();
194 
195     private void handleGetFullyQualifiedName5aPreCondition()
196     {
197     }
198 
199     private void handleGetFullyQualifiedName5aPostCondition()
200     {
201     }
202 
203     private java.lang.String __fullyQualifiedName5a;
204     private boolean __fullyQualifiedName5aSet = false;
205 
206     public final java.lang.String getFullyQualifiedName()
207     {
208         java.lang.String fullyQualifiedName5a = this.__fullyQualifiedName5a;
209         if (!this.__fullyQualifiedName5aSet)
210         {
211             handleGetFullyQualifiedName5aPreCondition();
212             fullyQualifiedName5a = handleGetFullyQualifiedName();
213             handleGetFullyQualifiedName5aPostCondition();
214             this.__fullyQualifiedName5a = fullyQualifiedName5a;
215             if (isMetafacadePropertyCachingEnabled())
216             {
217                 this.__fullyQualifiedName5aSet = true;
218             }
219         }
220         return fullyQualifiedName5a;
221     }
222 
223    /***
224     * @see org.andromda.metafacades.uml.ModelElementFacade#getFullyQualifiedNamePath()
225     */
226     protected abstract java.lang.String handleGetFullyQualifiedNamePath();
227 
228     private void handleGetFullyQualifiedNamePath6aPreCondition()
229     {
230     }
231 
232     private void handleGetFullyQualifiedNamePath6aPostCondition()
233     {
234     }
235 
236     private java.lang.String __fullyQualifiedNamePath6a;
237     private boolean __fullyQualifiedNamePath6aSet = false;
238 
239     public final java.lang.String getFullyQualifiedNamePath()
240     {
241         java.lang.String fullyQualifiedNamePath6a = this.__fullyQualifiedNamePath6a;
242         if (!this.__fullyQualifiedNamePath6aSet)
243         {
244             handleGetFullyQualifiedNamePath6aPreCondition();
245             fullyQualifiedNamePath6a = handleGetFullyQualifiedNamePath();
246             handleGetFullyQualifiedNamePath6aPostCondition();
247             this.__fullyQualifiedNamePath6a = fullyQualifiedNamePath6a;
248             if (isMetafacadePropertyCachingEnabled())
249             {
250                 this.__fullyQualifiedNamePath6aSet = true;
251             }
252         }
253         return fullyQualifiedNamePath6a;
254     }
255 
256    /***
257     * @see org.andromda.metafacades.uml.ModelElementFacade#getLanguageMappings()
258     */
259     protected abstract org.andromda.metafacades.uml.TypeMappings handleGetLanguageMappings();
260 
261     private void handleGetLanguageMappings7aPreCondition()
262     {
263     }
264 
265     private void handleGetLanguageMappings7aPostCondition()
266     {
267     }
268 
269     private org.andromda.metafacades.uml.TypeMappings __languageMappings7a;
270     private boolean __languageMappings7aSet = false;
271 
272     public final org.andromda.metafacades.uml.TypeMappings getLanguageMappings()
273     {
274         org.andromda.metafacades.uml.TypeMappings languageMappings7a = this.__languageMappings7a;
275         if (!this.__languageMappings7aSet)
276         {
277             handleGetLanguageMappings7aPreCondition();
278             languageMappings7a = handleGetLanguageMappings();
279             handleGetLanguageMappings7aPostCondition();
280             this.__languageMappings7a = languageMappings7a;
281             if (isMetafacadePropertyCachingEnabled())
282             {
283                 this.__languageMappings7aSet = true;
284             }
285         }
286         return languageMappings7a;
287     }
288 
289    /***
290     * @see org.andromda.metafacades.uml.ModelElementFacade#getStereotypeNames()
291     */
292     protected abstract java.util.Collection handleGetStereotypeNames();
293 
294     private void handleGetStereotypeNames8aPreCondition()
295     {
296     }
297 
298     private void handleGetStereotypeNames8aPostCondition()
299     {
300     }
301 
302     private java.util.Collection __stereotypeNames8a;
303     private boolean __stereotypeNames8aSet = false;
304 
305     public final java.util.Collection getStereotypeNames()
306     {
307         java.util.Collection stereotypeNames8a = this.__stereotypeNames8a;
308         if (!this.__stereotypeNames8aSet)
309         {
310             handleGetStereotypeNames8aPreCondition();
311             stereotypeNames8a = handleGetStereotypeNames();
312             handleGetStereotypeNames8aPostCondition();
313             this.__stereotypeNames8a = stereotypeNames8a;
314             if (isMetafacadePropertyCachingEnabled())
315             {
316                 this.__stereotypeNames8aSet = true;
317             }
318         }
319         return stereotypeNames8a;
320     }
321 
322    /***
323     * @see org.andromda.metafacades.uml.ModelElementFacade#getId()
324     */
325     protected abstract java.lang.String handleGetId();
326 
327     private void handleGetId9aPreCondition()
328     {
329     }
330 
331     private void handleGetId9aPostCondition()
332     {
333     }
334 
335     private java.lang.String __id9a;
336     private boolean __id9aSet = false;
337 
338     public final java.lang.String getId()
339     {
340         java.lang.String id9a = this.__id9a;
341         if (!this.__id9aSet)
342         {
343             handleGetId9aPreCondition();
344             id9a = handleGetId();
345             handleGetId9aPostCondition();
346             this.__id9a = id9a;
347             if (isMetafacadePropertyCachingEnabled())
348             {
349                 this.__id9aSet = true;
350             }
351         }
352         return id9a;
353     }
354 
355    /***
356     * @see org.andromda.metafacades.uml.ModelElementFacade#isConstraintsPresent()
357     */
358     protected abstract boolean handleIsConstraintsPresent();
359 
360     private void handleIsConstraintsPresent10aPreCondition()
361     {
362     }
363 
364     private void handleIsConstraintsPresent10aPostCondition()
365     {
366     }
367 
368     private boolean __constraintsPresent10a;
369     private boolean __constraintsPresent10aSet = false;
370 
371     public final boolean isConstraintsPresent()
372     {
373         boolean constraintsPresent10a = this.__constraintsPresent10a;
374         if (!this.__constraintsPresent10aSet)
375         {
376             handleIsConstraintsPresent10aPreCondition();
377             constraintsPresent10a = handleIsConstraintsPresent();
378             handleIsConstraintsPresent10aPostCondition();
379             this.__constraintsPresent10a = constraintsPresent10a;
380             if (isMetafacadePropertyCachingEnabled())
381             {
382                 this.__constraintsPresent10aSet = true;
383             }
384         }
385         return constraintsPresent10a;
386     }
387 
388    /***
389     * @see org.andromda.metafacades.uml.ModelElementFacade#isBindingDependenciesPresent()
390     */
391     protected abstract boolean handleIsBindingDependenciesPresent();
392 
393     private void handleIsBindingDependenciesPresent11aPreCondition()
394     {
395     }
396 
397     private void handleIsBindingDependenciesPresent11aPostCondition()
398     {
399     }
400 
401     private boolean __bindingDependenciesPresent11a;
402     private boolean __bindingDependenciesPresent11aSet = false;
403 
404     public final boolean isBindingDependenciesPresent()
405     {
406         boolean bindingDependenciesPresent11a = this.__bindingDependenciesPresent11a;
407         if (!this.__bindingDependenciesPresent11aSet)
408         {
409             handleIsBindingDependenciesPresent11aPreCondition();
410             bindingDependenciesPresent11a = handleIsBindingDependenciesPresent();
411             handleIsBindingDependenciesPresent11aPostCondition();
412             this.__bindingDependenciesPresent11a = bindingDependenciesPresent11a;
413             if (isMetafacadePropertyCachingEnabled())
414             {
415                 this.__bindingDependenciesPresent11aSet = true;
416             }
417         }
418         return bindingDependenciesPresent11a;
419     }
420 
421    /***
422     * @see org.andromda.metafacades.uml.ModelElementFacade#isTemplateParametersPresent()
423     */
424     protected abstract boolean handleIsTemplateParametersPresent();
425 
426     private void handleIsTemplateParametersPresent12aPreCondition()
427     {
428     }
429 
430     private void handleIsTemplateParametersPresent12aPostCondition()
431     {
432     }
433 
434     private boolean __templateParametersPresent12a;
435     private boolean __templateParametersPresent12aSet = false;
436 
437     public final boolean isTemplateParametersPresent()
438     {
439         boolean templateParametersPresent12a = this.__templateParametersPresent12a;
440         if (!this.__templateParametersPresent12aSet)
441         {
442             handleIsTemplateParametersPresent12aPreCondition();
443             templateParametersPresent12a = handleIsTemplateParametersPresent();
444             handleIsTemplateParametersPresent12aPostCondition();
445             this.__templateParametersPresent12a = templateParametersPresent12a;
446             if (isMetafacadePropertyCachingEnabled())
447             {
448                 this.__templateParametersPresent12aSet = true;
449             }
450         }
451         return templateParametersPresent12a;
452     }
453 
454     // ---------------- business methods ----------------------
455 
456     protected abstract java.lang.Object handleFindTaggedValue(java.lang.String tagName);
457 
458     private void handleFindTaggedValue1oPreCondition()
459     {
460     }
461 
462     private void handleFindTaggedValue1oPostCondition()
463     {
464     }
465 
466     public java.lang.Object findTaggedValue(java.lang.String tagName)
467     {
468         handleFindTaggedValue1oPreCondition();
469         java.lang.Object returnValue = handleFindTaggedValue(tagName);
470         handleFindTaggedValue1oPostCondition();
471         return returnValue;
472     }
473 
474     protected abstract boolean handleHasStereotype(java.lang.String stereotypeName);
475 
476     private void handleHasStereotype2oPreCondition()
477     {
478     }
479 
480     private void handleHasStereotype2oPostCondition()
481     {
482     }
483 
484     public boolean hasStereotype(java.lang.String stereotypeName)
485     {
486         handleHasStereotype2oPreCondition();
487         boolean returnValue = handleHasStereotype(stereotypeName);
488         handleHasStereotype2oPostCondition();
489         return returnValue;
490     }
491 
492     protected abstract java.lang.String handleGetDocumentation(java.lang.String indent);
493 
494     private void handleGetDocumentation3oPreCondition()
495     {
496     }
497 
498     private void handleGetDocumentation3oPostCondition()
499     {
500     }
501 
502     public java.lang.String getDocumentation(java.lang.String indent)
503     {
504         handleGetDocumentation3oPreCondition();
505         java.lang.String returnValue = handleGetDocumentation(indent);
506         handleGetDocumentation3oPostCondition();
507         return returnValue;
508     }
509 
510     protected abstract java.lang.String handleGetFullyQualifiedName(boolean modelName);
511 
512     private void handleGetFullyQualifiedName4oPreCondition()
513     {
514     }
515 
516     private void handleGetFullyQualifiedName4oPostCondition()
517     {
518     }
519 
520     public java.lang.String getFullyQualifiedName(boolean modelName)
521     {
522         handleGetFullyQualifiedName4oPreCondition();
523         java.lang.String returnValue = handleGetFullyQualifiedName(modelName);
524         handleGetFullyQualifiedName4oPostCondition();
525         return returnValue;
526     }
527 
528     protected abstract java.lang.String handleGetDocumentation(java.lang.String indent, int lineLength);
529 
530     private void handleGetDocumentation5oPreCondition()
531     {
532     }
533 
534     private void handleGetDocumentation5oPostCondition()
535     {
536     }
537 
538     public java.lang.String getDocumentation(java.lang.String indent, int lineLength)
539     {
540         handleGetDocumentation5oPreCondition();
541         java.lang.String returnValue = handleGetDocumentation(indent, lineLength);
542         handleGetDocumentation5oPostCondition();
543         return returnValue;
544     }
545 
546     protected abstract boolean handleHasExactStereotype(java.lang.String stereotypeName);
547 
548     private void handleHasExactStereotype6oPreCondition()
549     {
550     }
551 
552     private void handleHasExactStereotype6oPostCondition()
553     {
554     }
555 
556     public boolean hasExactStereotype(java.lang.String stereotypeName)
557     {
558         handleHasExactStereotype6oPreCondition();
559         boolean returnValue = handleHasExactStereotype(stereotypeName);
560         handleHasExactStereotype6oPostCondition();
561         return returnValue;
562     }
563 
564     protected abstract java.lang.String handleTranslateConstraint(java.lang.String name, java.lang.String translation);
565 
566     private void handleTranslateConstraint7oPreCondition()
567     {
568     }
569 
570     private void handleTranslateConstraint7oPostCondition()
571     {
572     }
573 
574     public java.lang.String translateConstraint(java.lang.String name, java.lang.String translation)
575     {
576         handleTranslateConstraint7oPreCondition();
577         java.lang.String returnValue = handleTranslateConstraint(name, translation);
578         handleTranslateConstraint7oPostCondition();
579         return returnValue;
580     }
581 
582     protected abstract java.lang.String[] handleTranslateConstraints(java.lang.String kind, java.lang.String translation);
583 
584     private void handleTranslateConstraints8oPreCondition()
585     {
586     }
587 
588     private void handleTranslateConstraints8oPostCondition()
589     {
590     }
591 
592     public java.lang.String[] translateConstraints(java.lang.String kind, java.lang.String translation)
593     {
594         handleTranslateConstraints8oPreCondition();
595         java.lang.String[] returnValue = handleTranslateConstraints(kind, translation);
596         handleTranslateConstraints8oPostCondition();
597         return returnValue;
598     }
599 
600     protected abstract java.lang.String[] handleTranslateConstraints(java.lang.String translation);
601 
602     private void handleTranslateConstraints9oPreCondition()
603     {
604     }
605 
606     private void handleTranslateConstraints9oPostCondition()
607     {
608     }
609 
610     public java.lang.String[] translateConstraints(java.lang.String translation)
611     {
612         handleTranslateConstraints9oPreCondition();
613         java.lang.String[] returnValue = handleTranslateConstraints(translation);
614         handleTranslateConstraints9oPostCondition();
615         return returnValue;
616     }
617 
618     protected abstract java.util.Collection handleGetConstraints(java.lang.String kind);
619 
620     private void handleGetConstraints10oPreCondition()
621     {
622     }
623 
624     private void handleGetConstraints10oPostCondition()
625     {
626     }
627 
628     public java.util.Collection getConstraints(java.lang.String kind)
629     {
630         handleGetConstraints10oPreCondition();
631         java.util.Collection returnValue = handleGetConstraints(kind);
632         handleGetConstraints10oPostCondition();
633         return returnValue;
634     }
635 
636     protected abstract java.util.Collection handleFindTaggedValues(java.lang.String tagName);
637 
638     private void handleFindTaggedValues11oPreCondition()
639     {
640     }
641 
642     private void handleFindTaggedValues11oPostCondition()
643     {
644     }
645 
646     public java.util.Collection findTaggedValues(java.lang.String tagName)
647     {
648         handleFindTaggedValues11oPreCondition();
649         java.util.Collection returnValue = handleFindTaggedValues(tagName);
650         handleFindTaggedValues11oPostCondition();
651         return returnValue;
652     }
653 
654     protected abstract java.lang.String handleGetDocumentation(java.lang.String indent, int lineLength, boolean htmlStyle);
655 
656     private void handleGetDocumentation12oPreCondition()
657     {
658     }
659 
660     private void handleGetDocumentation12oPostCondition()
661     {
662     }
663 
664     public java.lang.String getDocumentation(java.lang.String indent, int lineLength, boolean htmlStyle)
665     {
666         handleGetDocumentation12oPreCondition();
667         java.lang.String returnValue = handleGetDocumentation(indent, lineLength, htmlStyle);
668         handleGetDocumentation12oPostCondition();
669         return returnValue;
670     }
671 
672     protected abstract java.lang.String handleGetPackageName(boolean modelName);
673 
674     private void handleGetPackageName13oPreCondition()
675     {
676     }
677 
678     private void handleGetPackageName13oPostCondition()
679     {
680     }
681 
682     public java.lang.String getPackageName(boolean modelName)
683     {
684         handleGetPackageName13oPreCondition();
685         java.lang.String returnValue = handleGetPackageName(modelName);
686         handleGetPackageName13oPostCondition();
687         return returnValue;
688     }
689 
690     protected abstract void handleCopyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element);
691 
692     private void handleCopyTaggedValues14oPreCondition()
693     {
694     }
695 
696     private void handleCopyTaggedValues14oPostCondition()
697     {
698     }
699 
700     public void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
701     {
702         handleCopyTaggedValues14oPreCondition();
703         handleCopyTaggedValues(element);
704         handleCopyTaggedValues14oPostCondition();
705     }
706 
707     protected abstract java.lang.Object handleGetTemplateParameter(java.lang.String parameterName);
708 
709     private void handleGetTemplateParameter15oPreCondition()
710     {
711     }
712 
713     private void handleGetTemplateParameter15oPostCondition()
714     {
715     }
716 
717     public java.lang.Object getTemplateParameter(java.lang.String parameterName)
718     {
719         handleGetTemplateParameter15oPreCondition();
720         java.lang.Object returnValue = handleGetTemplateParameter(parameterName);
721         handleGetTemplateParameter15oPostCondition();
722         return returnValue;
723     }
724 
725     // ------------- associations ------------------
726 
727     private void handleGetPackage1rPreCondition()
728     {
729     }
730 
731     private void handleGetPackage1rPostCondition()
732     {
733     }
734 
735     public final org.andromda.metafacades.uml.ModelElementFacade getPackage()
736     {
737         org.andromda.metafacades.uml.ModelElementFacade getPackage1r = null;
738         handleGetPackage1rPreCondition();
739         Object result = this.shieldedElement(handleGetPackage());
740         try
741         {
742             getPackage1r = (org.andromda.metafacades.uml.ModelElementFacade)result;
743         }
744         catch (ClassCastException ex)
745         {
746             // ignore since the metafacade shouldn't
747             // be set if its not of the correct type
748         }
749         handleGetPackage1rPostCondition();
750         return getPackage1r;
751     }
752 
753     protected abstract java.lang.Object handleGetPackage();
754 
755     private void handleGetRootPackage3rPreCondition()
756     {
757     }
758 
759     private void handleGetRootPackage3rPostCondition()
760     {
761     }
762 
763     public final org.andromda.metafacades.uml.PackageFacade getRootPackage()
764     {
765         org.andromda.metafacades.uml.PackageFacade getRootPackage3r = null;
766         handleGetRootPackage3rPreCondition();
767         Object result = this.shieldedElement(handleGetRootPackage());
768         try
769         {
770             getRootPackage3r = (org.andromda.metafacades.uml.PackageFacade)result;
771         }
772         catch (ClassCastException ex)
773         {
774             // ignore since the metafacade shouldn't
775             // be set if its not of the correct type
776         }
777         handleGetRootPackage3rPostCondition();
778         return getRootPackage3r;
779     }
780 
781     protected abstract java.lang.Object handleGetRootPackage();
782 
783     private void handleGetTargetDependencies4rPreCondition()
784     {
785     }
786 
787     private void handleGetTargetDependencies4rPostCondition()
788     {
789     }
790 
791     public final java.util.Collection getTargetDependencies()
792     {
793         java.util.Collection getTargetDependencies4r = null;
794         handleGetTargetDependencies4rPreCondition();
795         Object result = this.shieldedElements(handleGetTargetDependencies());
796         try
797         {
798             getTargetDependencies4r = (java.util.Collection)result;
799         }
800         catch (ClassCastException ex)
801         {
802             // ignore since the metafacade shouldn't
803             // be set if its not of the correct type
804         }
805         handleGetTargetDependencies4rPostCondition();
806         return getTargetDependencies4r;
807     }
808 
809     protected abstract java.util.Collection handleGetTargetDependencies();
810 
811     private void handleGetModel6rPreCondition()
812     {
813     }
814 
815     private void handleGetModel6rPostCondition()
816     {
817     }
818 
819     public final org.andromda.metafacades.uml.ModelFacade getModel()
820     {
821         org.andromda.metafacades.uml.ModelFacade getModel6r = null;
822         handleGetModel6rPreCondition();
823         Object result = this.shieldedElement(handleGetModel());
824         try
825         {
826             getModel6r = (org.andromda.metafacades.uml.ModelFacade)result;
827         }
828         catch (ClassCastException ex)
829         {
830             // ignore since the metafacade shouldn't
831             // be set if its not of the correct type
832         }
833         handleGetModel6rPostCondition();
834         return getModel6r;
835     }
836 
837     protected abstract java.lang.Object handleGetModel();
838 
839     private void handleGetStereotypes7rPreCondition()
840     {
841     }
842 
843     private void handleGetStereotypes7rPostCondition()
844     {
845     }
846 
847     public final java.util.Collection getStereotypes()
848     {
849         java.util.Collection getStereotypes7r = null;
850         handleGetStereotypes7rPreCondition();
851         Object result = this.shieldedElements(handleGetStereotypes());
852         try
853         {
854             getStereotypes7r = (java.util.Collection)result;
855         }
856         catch (ClassCastException ex)
857         {
858             // ignore since the metafacade shouldn't
859             // be set if its not of the correct type
860         }
861         handleGetStereotypes7rPostCondition();
862         return getStereotypes7r;
863     }
864 
865     protected abstract java.util.Collection handleGetStereotypes();
866 
867     private void handleGetConstraints8rPreCondition()
868     {
869     }
870 
871     private void handleGetConstraints8rPostCondition()
872     {
873     }
874 
875     public final java.util.Collection getConstraints()
876     {
877         java.util.Collection getConstraints8r = null;
878         handleGetConstraints8rPreCondition();
879         Object result = this.shieldedElements(handleGetConstraints());
880         try
881         {
882             getConstraints8r = (java.util.Collection)result;
883         }
884         catch (ClassCastException ex)
885         {
886             // ignore since the metafacade shouldn't
887             // be set if its not of the correct type
888         }
889         handleGetConstraints8rPostCondition();
890         return getConstraints8r;
891     }
892 
893     protected abstract java.util.Collection handleGetConstraints();
894 
895     private void handleGetSourceDependencies10rPreCondition()
896     {
897     }
898 
899     private void handleGetSourceDependencies10rPostCondition()
900     {
901     }
902 
903     public final java.util.Collection getSourceDependencies()
904     {
905         java.util.Collection getSourceDependencies10r = null;
906         handleGetSourceDependencies10rPreCondition();
907         Object result = this.shieldedElements(handleGetSourceDependencies());
908         try
909         {
910             getSourceDependencies10r = (java.util.Collection)result;
911         }
912         catch (ClassCastException ex)
913         {
914             // ignore since the metafacade shouldn't
915             // be set if its not of the correct type
916         }
917         handleGetSourceDependencies10rPostCondition();
918         return getSourceDependencies10r;
919     }
920 
921     protected abstract java.util.Collection handleGetSourceDependencies();
922 
923     private void handleGetStateMachineContext11rPreCondition()
924     {
925     }
926 
927     private void handleGetStateMachineContext11rPostCondition()
928     {
929     }
930 
931     public final org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext()
932     {
933         org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext11r = null;
934         handleGetStateMachineContext11rPreCondition();
935         Object result = this.shieldedElement(handleGetStateMachineContext());
936         try
937         {
938             getStateMachineContext11r = (org.andromda.metafacades.uml.StateMachineFacade)result;
939         }
940         catch (ClassCastException ex)
941         {
942             // ignore since the metafacade shouldn't
943             // be set if its not of the correct type
944         }
945         handleGetStateMachineContext11rPostCondition();
946         return getStateMachineContext11r;
947     }
948 
949     protected abstract java.lang.Object handleGetStateMachineContext();
950 
951     private void handleGetTemplateParameters13rPreCondition()
952     {
953     }
954 
955     private void handleGetTemplateParameters13rPostCondition()
956     {
957     }
958 
959     public final java.util.Collection getTemplateParameters()
960     {
961         java.util.Collection getTemplateParameters13r = null;
962         handleGetTemplateParameters13rPreCondition();
963         Object result = this.shieldedElements(handleGetTemplateParameters());
964         try
965         {
966             getTemplateParameters13r = (java.util.Collection)result;
967         }
968         catch (ClassCastException ex)
969         {
970             // ignore since the metafacade shouldn't
971             // be set if its not of the correct type
972         }
973         handleGetTemplateParameters13rPostCondition();
974         return getTemplateParameters13r;
975     }
976 
977     protected abstract java.util.Collection handleGetTemplateParameters();
978 
979     private void handleGetTaggedValues16rPreCondition()
980     {
981     }
982 
983     private void handleGetTaggedValues16rPostCondition()
984     {
985     }
986 
987     public final java.util.Collection getTaggedValues()
988     {
989         java.util.Collection getTaggedValues16r = null;
990         handleGetTaggedValues16rPreCondition();
991         Object result = this.shieldedElements(handleGetTaggedValues());
992         try
993         {
994             getTaggedValues16r = (java.util.Collection)result;
995         }
996         catch (ClassCastException ex)
997         {
998             // ignore since the metafacade shouldn't
999             // be set if its not of the correct type
1000         }
1001         handleGetTaggedValues16rPostCondition();
1002         return getTaggedValues16r;
1003     }
1004 
1005     protected abstract java.util.Collection handleGetTaggedValues();
1006 
1007     /***
1008      * @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(java.util.Collection)
1009      */
1010     public void validateInvariants(java.util.Collection validationMessages)
1011     {
1012     }
1013     
1014     /***
1015      * The property that stores the name of the metafacade.
1016      */
1017     private static final String NAME_PROPERTY = "name";
1018     
1019     /***
1020      * @see java.lang.Object#toString()
1021      */
1022     public String toString()
1023     {
1024         final StringBuffer toString = new StringBuffer(this.getClass().getName());
1025         toString.append("[");
1026         try
1027         {
1028             toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
1029         }
1030         catch (final Throwable throwable)
1031         {
1032             // - just ignore when the metafacade doesn't have a name property
1033         }
1034         toString.append("]");
1035         return toString.toString();
1036     }
1037 }