View Javadoc
1   package org.andromda.cartridges.meta.metafacades;
2   
3   import org.apache.commons.lang.StringUtils;
4   
5   /**
6    * MetafacadeLogic implementation for org.andromda.cartridges.meta.metafacades.MetafacadeOperation.
7    *
8    * @see org.andromda.cartridges.meta.metafacades.MetafacadeOperation
9    * @author Bob Fields
10   */
11  public class MetafacadeOperationLogicImpl
12      extends MetafacadeOperationLogic
13  {
14      private static final long serialVersionUID = 34L;
15      // ---------------- constructor -------------------------------
16      /**
17       * @param metaObjectIn
18       * @param context
19       */
20      public MetafacadeOperationLogicImpl(
21          Object metaObjectIn,
22          String context)
23      {
24          super(metaObjectIn, context);
25      }
26  
27      /**
28       * @see org.andromda.cartridges.meta.metafacades.MetafacadeOperation#getImplementationName()
29       */
30      @Override
31      protected String handleGetImplementationName()
32      {
33          return StringUtils.trimToEmpty(
34              String.valueOf(
35                  this.getConfiguredProperty(
36                      MetaGlobals.PROPERTY_IMPLEMENTATION_OPERATION_NAME_PATTERN))).replaceAll(
37              "\\{0\\}",
38              StringUtils.capitalize(this.getName()));
39      }
40  }