View Javadoc
1   package org.andromda.metafacades.emf.uml22;
2   
3   import java.util.ArrayList;
4   import java.util.Collection;
5   
6   /**
7    * MetafacadeLogic implementation for
8    * org.andromda.metafacades.uml.TaggedValueFacade.
9    *
10   * @see org.andromda.metafacades.uml.TaggedValueFacade
11   */
12  public class TaggedValueFacadeLogicImpl
13      extends TaggedValueFacadeLogic
14  {
15      private static final long serialVersionUID = 7201704845171329924L;
16  
17      /**
18       * @param metaObject
19       * @param context
20       */
21      public TaggedValueFacadeLogicImpl(
22          final TagDefinition metaObject,
23          final String context)
24      {
25          super(metaObject, context);
26      }
27  
28      /**
29       * @see org.andromda.metafacades.uml.TaggedValueFacade#getValue()
30       */
31      @Override
32      protected Object handleGetValue()
33      {
34          return this.metaObject.getValue();
35      }
36  
37      /**
38       * @see org.andromda.metafacades.uml.TaggedValueFacade#getValues()
39       */
40      @Override
41      protected Collection<Object> handleGetValues()
42      {
43          final Collection<Object> collection = new ArrayList<Object>();
44          collection.addAll(this.metaObject.getValues());
45          return collection;
46      }
47  }