View Javadoc
1   package org.andromda.cartridges.jbpm.metafacades;
2   
3   import org.andromda.cartridges.jbpm.JBpmProfile;
4   
5   /**
6    * MetafacadeLogic implementation for org.andromda.cartridges.jbpm.metafacades.JBpmState.
7    *
8    * @see org.andromda.cartridges.jbpm.metafacades.JBpmState
9    */
10  public class JBpmStateLogicImpl
11      extends JBpmStateLogic
12  {
13      private static final long serialVersionUID = 34L;
14      /**
15       * @param metaObject
16       * @param context
17       */
18      public JBpmStateLogicImpl (Object metaObject, String context)
19      {
20          super (metaObject, context);
21      }
22  
23      /**
24       * @return hasStereotype(JBpmProfile.STEREOTYPE_TASK)
25       */
26      protected boolean handleIsTaskNode()
27      {
28          return hasStereotype(JBpmProfile.STEREOTYPE_TASK);
29      }
30  
31      /**
32       * @return getPartition()
33       * @see #getPartition()
34       */
35      protected Object handleGetSwimlane()
36      {
37          return this.getPartition();
38      }
39  
40      /**
41       *
42       * @see org.andromda.cartridges.jbpm.metafacades.JBpmStateVertex#getNodeClassName()
43       */
44      @Override
45      public String getNodeClassName()
46      {
47          return this.getSuperJBpmEventState().getNodeClassName();
48      }
49  
50      /**
51       *
52       * @see org.andromda.cartridges.jbpm.metafacades.JBpmStateVertex#getNodePackageName()
53       */
54      @Override
55      public String getNodePackageName()
56      {
57          return this.getSuperJBpmEventState().getNodePackageName();
58      }
59  
60      /**
61       *
62       * @see org.andromda.cartridges.jbpm.metafacades.JBpmStateVertex#getProcessDefinition()
63       */
64      @Override
65      public JBpmProcessDefinition getProcessDefinition()
66      {
67          return this.getSuperJBpmEventState().getProcessDefinition();
68      }
69  
70      /**
71       * <p>
72       * True if this element is part of a business process usecase.
73       * </p>
74       * @see org.andromda.cartridges.jbpm.metafacades.JBpmStateVertex#isContainedInBusinessProcess()
75       */
76      @Override
77      public boolean isContainedInBusinessProcess()
78      {
79          return this.getSuperJBpmEventState().isContainedInBusinessProcess();
80      }
81  }