View Javadoc
1   package org.andromda.metafacades.emf.uml22;
2   
3   import java.util.List;
4   import org.eclipse.uml2.uml.Extend;
5   import org.eclipse.uml2.uml.ExtensionPoint;
6   import org.eclipse.uml2.uml.UseCase;
7   
8   /**
9    * MetafacadeLogic implementation for org.andromda.metafacades.uml.ExtendFacade.
10   *
11   * @see org.andromda.metafacades.uml.ExtendFacade
12   */
13  public class ExtendFacadeLogicImpl
14      extends ExtendFacadeLogic
15  {
16      private static final long serialVersionUID = 6629935453907047694L;
17  
18      /**
19       * @param metaObject
20       * @param context
21       */
22      public ExtendFacadeLogicImpl(
23          final Extend metaObject,
24          final String context)
25      {
26          super(metaObject, context);
27      }
28  
29      /**
30       * @see org.andromda.metafacades.uml.ExtendFacade#getBase()
31       */
32      @Override
33      protected UseCase handleGetBase()
34      {
35          return this.metaObject.getExtendedCase();
36      }
37  
38      /**
39       * @see org.andromda.metafacades.uml.ExtendFacade#getExtensionPoints()
40       */
41      @Override
42      protected List<ExtensionPoint> handleGetExtensionPoints()
43      {
44          return this.metaObject.getExtensionLocations();
45      }
46  
47      /**
48       * @see org.andromda.metafacades.uml.ExtendFacade#getExtension()
49       */
50      @Override
51      protected UseCase handleGetExtension()
52      {
53          return this.metaObject.getExtension();
54      }
55  }