View Javadoc
1   package org.andromda.cartridges.jsf2.metafacades;
2   
3   import org.andromda.cartridges.jsf2.JSFGlobals;
4   
5   /**
6    * MetafacadeLogic implementation for org.andromda.cartridges.jsf2.metafacades.JSFBackendService.
7    *
8    * @see org.andromda.cartridges.jsf2.metafacades.JSFBackendService
9    */
10  public class JSFBackendServiceLogicImpl
11      extends JSFBackendServiceLogic
12  {
13      private static final long serialVersionUID = 34L;
14      /**
15       * @param metaObject
16       * @param context
17       */
18      public JSFBackendServiceLogicImpl(
19          Object metaObject,
20          String context)
21      {
22          super(metaObject, context);
23      }
24  
25      /**
26       * @return accessorImplementation
27       * @see org.andromda.cartridges.jsf2.metafacades.JSFBackendService#getAccessorImplementation()
28       */
29      protected String handleGetAccessorImplementation()
30      {
31          String accessorImplementation = String.valueOf(getConfiguredProperty(JSFGlobals.SERVICE_ACCESSOR_PATTERN));
32          return accessorImplementation.replaceAll("\\{0\\}",
33              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(getConfiguredProperty(JSFGlobals.SERVICE_PACKAGE_NAME_PATTERN));
42          return packageName.replaceAll(
43              "\\{0\\}",
44              super.getPackageName()) + "." + this.getName();
45      }
46  }