View Javadoc
1   package org.andromda.cartridges.jbpm.metafacades;
2   
3   /**
4    * MetafacadeLogic implementation for org.andromda.cartridges.jbpm.metafacades.JBpmNode.
5    *
6    * @see org.andromda.cartridges.jbpm.metafacades.JBpmNode
7    */
8   public class JBpmNodeLogicImpl
9       extends JBpmNodeLogic
10  {
11      private static final long serialVersionUID = 34L;
12      /**
13       * @param metaObject
14       * @param context
15       */
16      public JBpmNodeLogicImpl (Object metaObject, String context)
17      {
18          super (metaObject, context);
19      }
20  
21      /**
22       * @return !this.getTasks().isEmpty()
23       * @see org.andromda.cartridges.jbpm.metafacades.JBpmNode#isTaskNode()
24       */
25      protected boolean handleIsTaskNode()
26      {
27          return !this.getTasks().isEmpty();
28      }
29  
30      /**
31       * @see org.andromda.cartridges.jbpm.metafacades.JBpmNodeLogic#handleGetSwimlane()
32       * @see org.andromda.cartridges.jbpm.metafacades.JBpmNode#getSwimlane()
33       */
34      protected Object handleGetSwimlane()
35      {
36          return this.getPartition();
37      }
38  
39      //TODO Generation from UML2 Metafacade model does not put these methods in *Logic generated class.
40      // Implementation copied from UML14 generated version, to avoid compiler error on missing method implementation from abstract method.
41      /**
42       *
43       * @see org.andromda.cartridges.jbpm.metafacades.JBpmStateVertex#getNodeClassName()
44       */
45      @Override
46      public String getNodeClassName()
47      {
48          return this.getSuperJBpmEventState().getNodeClassName();
49      }
50  
51      /**
52       *
53       * @see org.andromda.cartridges.jbpm.metafacades.JBpmStateVertex#getNodePackageName()
54       */
55      @Override
56      public String getNodePackageName()
57      {
58          return this.getSuperJBpmEventState().getNodePackageName();
59      }
60  
61      /**
62       *
63       * @see org.andromda.cartridges.jbpm.metafacades.JBpmStateVertex#getProcessDefinition()
64       */
65      @Override
66      public JBpmProcessDefinition getProcessDefinition()
67      {
68          return this.getSuperJBpmEventState().getProcessDefinition();
69      }
70  
71      /**
72       * <p>
73       * True if this element is part of a business process usecase.
74       * </p>
75       * @see org.andromda.cartridges.jbpm.metafacades.JBpmStateVertex#isContainedInBusinessProcess()
76       */
77      @Override
78      public boolean isContainedInBusinessProcess()
79      {
80          return this.getSuperJBpmEventState().isContainedInBusinessProcess();
81      }
82  }