View Javadoc
1   package org.andromda.metafacades.emf.uml22;
2   
3   import java.util.Collection;
4   import org.apache.commons.collections.CollectionUtils;
5   
6   /**
7    * MetafacadeLogic implementation for org.andromda.metafacades.uml.LinkFacade.
8    *
9    * @see org.andromda.metafacades.uml.LinkFacade
10   */
11  public class LinkFacadeLogicImpl extends LinkFacadeLogic
12  {
13      private static final long serialVersionUID = -3677987842769687470L;
14  
15      /**
16       * @param metaObject
17       * @param context
18       */
19      public LinkFacadeLogicImpl(final LinkInstance metaObject, final String context)
20      {
21          super(metaObject, context);
22      }
23  
24      /**
25       * @see org.andromda.metafacades.uml.LinkFacade#getLinkEnds()
26       */
27      @Override
28      protected Collection<LinkEnd> handleGetLinkEnds()
29      {
30          return CollectionUtils.collect(this.metaObject.getSlots(), UmlUtilities.ELEMENT_TRANSFORMER);
31      }
32  }