View Javadoc
1   package org.andromda.metafacades.uml14;
2   
3   import java.util.Collection;
4   import org.omg.uml.behavioralelements.commonbehavior.Instance;
5   
6   /**
7    * MetafacadeLogic implementation for org.andromda.metafacades.uml.InstanceFacade.
8    *
9    * @see org.andromda.metafacades.uml.InstanceFacade
10   * @author Bob Fields
11   */
12  public class InstanceFacadeLogicImpl
13      extends InstanceFacadeLogic
14  {
15      private static final long serialVersionUID = 34L;
16      /**
17       * @param metaObject
18       * @param context
19       */
20      public InstanceFacadeLogicImpl (Instance metaObject, String context)
21      {
22          super (metaObject, context);
23      }
24  
25      /**
26       * @see org.andromda.metafacades.uml.InstanceFacade#getClassifiers()
27       */
28      @Override
29      protected Collection handleGetClassifiers()
30      {
31          return metaObject.getClassifier();
32      }
33  
34      /**
35       * @see org.andromda.metafacades.uml.InstanceFacade#getLinkEnds()
36       */
37      @Override
38      protected Collection handleGetLinkEnds()
39      {
40          return metaObject.getLinkEnd();
41      }
42  
43      /**
44       * @see org.andromda.metafacades.uml.InstanceFacade#getOwnedInstances()
45       */
46      @Override
47      protected Collection handleGetOwnedInstances()
48      {
49          return metaObject.getOwnedInstance();
50      }
51  
52      /**
53       * @see org.andromda.metafacades.uml.InstanceFacade#getOwnedLinks()
54       */
55      @Override
56      protected Collection handleGetOwnedLinks()
57      {
58          return metaObject.getOwnedLink();
59      }
60  
61      /**
62       * @see org.andromda.metafacades.uml.InstanceFacade#getSlots()
63       */
64      @Override
65      protected Collection handleGetSlots()
66      {
67          return metaObject.getSlot();
68      }
69  
70      /**
71       * @see org.andromda.metafacades.uml.InstanceFacade#getAttributeLinks()
72       */
73      @Override
74      protected Collection handleGetAttributeLinks()
75      {
76          // wouter: in UML1.4 the slots only convey the attribute links (unless I'm mistaken this is different in UML2)
77          return metaObject.getSlot();
78      }
79  }