View Javadoc
1   package org.andromda.cartridges.bpm4struts.metafacades;
2   
3   import org.andromda.cartridges.bpm4struts.Bpm4StrutsGlobals;
4   
5   /**
6    * MetafacadeLogic implementation for org.andromda.cartridges.bpm4struts.metafacades.StrutsBackendService.
7    *
8    * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsBackendService
9    */
10  public class StrutsBackendServiceLogicImpl
11      extends StrutsBackendServiceLogic
12  {
13      private static final long serialVersionUID = 34L;
14      /**
15       * @param metaObject
16       * @param context
17       */
18      public StrutsBackendServiceLogicImpl(
19          Object metaObject,
20          String context)
21      {
22          super(metaObject, context);
23      }
24  
25      /**
26       * @return Bpm4StrutsGlobals.SERVICE_ACCESSOR_PATTERN) replace getName()
27       * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsBackendService#getAccessorImplementation()
28       */
29      protected String handleGetAccessorImplementation()
30      {
31          String accessorImplementation = String.valueOf(
32              getConfiguredProperty(Bpm4StrutsGlobals.SERVICE_ACCESSOR_PATTERN));
33          return accessorImplementation.replaceAll("\\{0\\}", getPackageName()).replaceAll("\\{1\\}", getName());
34      }
35  
36      /**
37       * @see org.andromda.metafacades.uml.ModelElementFacade#getFullyQualifiedName()
38       */
39      public String getFullyQualifiedName()
40      {
41          String packageName = String.valueOf(
42              getConfiguredProperty(Bpm4StrutsGlobals.SERVICE_PACKAGE_NAME_PATTERN));
43          return packageName.replaceAll("\\{0\\}", super.getPackageName()) + '.' + this.getName();
44      }
45  }