View Javadoc
1   // license-header java merge-point
2   //
3   // Attention: generated code (by MetafacadeLogic.vsl) - do not modify!
4   //
5   package org.andromda.metafacades.uml14;
6   
7   import java.util.Collection;
8   import org.andromda.core.metafacade.ModelValidationMessage;
9   import org.andromda.metafacades.uml.Topic;
10  
11  /**
12   * TODO: Model Documentation for Topic
13   * MetafacadeLogic for Topic
14   *
15   * @see Topic
16   */
17  public abstract class TopicLogic
18      extends DestinationLogicImpl
19      implements Topic
20  {
21      /**
22       * The underlying UML object
23       * @see Object
24       */
25      protected Object metaObject;
26  
27      /** Create Metafacade implementation instance using the MetafacadeFactory from the context
28       * @param metaObjectIn
29       * @param context
30       */
31      protected TopicLogic(Object metaObjectIn, String context)
32      {
33          super(metaObjectIn, getContext(context));
34          this.metaObject = metaObjectIn;
35      }
36  
37      /**
38       * Gets the context for this metafacade logic instance.
39       * @param context String. Set to Topic if null
40       * @return context String
41       */
42      private static String getContext(String context)
43      {
44          if (context == null)
45          {
46              context = "org.andromda.metafacades.uml.Topic";
47          }
48          return context;
49      }
50  
51      /** Reset context only for non-root metafacades
52       * @param context
53       */
54      @Override
55      public void resetMetafacadeContext(String context)
56      {
57          if (!this.contextRoot) // reset context only for non-root metafacades
58          {
59              context = getContext(context);  // to have same value as in original constructor call
60              setMetafacadeContext (context);
61          }
62      }
63  
64      /**
65       * @return boolean true always
66       * @see Topic
67       */
68      public boolean isTopicMetaType()
69      {
70          return true;
71      }
72  
73      /**
74       * @param validationMessages Collection<ModelValidationMessage>
75       * @see DestinationLogicImpl#validateInvariants(Collection validationMessages)
76       */
77      @Override
78      public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
79      {
80          super.validateInvariants(validationMessages);
81      }
82  }