View Javadoc
1   package org.andromda.metafacades.emf.uml22;
2   
3   import org.eclipse.uml2.uml.ParameterableElement;
4   import org.eclipse.uml2.uml.TemplateParameterSubstitution;
5   
6   /**
7    * MetafacadeLogic implementation for
8    * org.andromda.metafacades.uml.TemplateArgumentFacade.
9    *
10   * @see org.andromda.metafacades.uml.TemplateArgumentFacade
11   */
12  public class TemplateArgumentFacadeLogicImpl
13      extends TemplateArgumentFacadeLogic
14  {
15      private static final long serialVersionUID = 6177943588326576358L;
16  
17      /**
18       * @param metaObject
19       * @param context
20       */
21      public TemplateArgumentFacadeLogicImpl(
22          final TemplateParameterSubstitution metaObject,
23          final String context)
24      {
25          super(metaObject, context);
26      }
27  
28      /**
29       * @see org.andromda.metafacades.uml.TemplateArgumentFacade#getElement()
30       */
31      @Override
32      protected ParameterableElement handleGetElement()
33      {
34          // TODO: Be sure it works with RSM / MD11.5
35          // It may be ownedActual. UML2 3.0 uses getActual(). v2 uses getActuals()
36          return this.metaObject.getActual();
37          /*Collection<ParameterableElement> actuals = new ArrayList<ParameterableElement>(this.metaObject.getActuals());
38          if (actuals.isEmpty())
39          {
40              return null;
41          }
42          return actuals.iterator().next();*/
43      }
44  }