View Javadoc
1   package org.andromda.metafacades.emf.uml22;
2   
3   import org.eclipse.uml2.uml.Generalization;
4   
5   /**
6    * MetafacadeLogic implementation for
7    * org.andromda.metafacades.uml.GeneralizationFacade.
8    *
9    * @see org.andromda.metafacades.uml.GeneralizationFacade
10   */
11  public class GeneralizationFacadeLogicImpl
12      extends GeneralizationFacadeLogic
13  {
14      private static final long serialVersionUID = 34L;
15      /**
16       * @param metaObject
17       * @param context
18       */
19      public GeneralizationFacadeLogicImpl(
20          final Generalization metaObject,
21          final String context)
22      {
23          super(metaObject, context);
24      }
25  
26      /**
27       * @see org.andromda.metafacades.uml.GeneralizationFacade#getChild()
28       */
29      @Override
30      protected Object handleGetChild()
31      {
32          return this.metaObject.getSpecific();
33      }
34  
35      /**
36       * @see org.andromda.metafacades.uml.GeneralizationFacade#getParent()
37       */
38      @Override
39      protected Object handleGetParent()
40      {
41          return this.metaObject.getGeneral();
42      }
43  }