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.MetafacadeAttribute.
7    *
8    * @see org.andromda.cartridges.meta.metafacades.MetafacadeAttribute
9    * @author Bob Fields
10   */
11  public class MetafacadeAttributeLogicImpl
12      extends MetafacadeAttributeLogic
13  {
14      private static final long serialVersionUID = 34L;
15      /**
16       * @param metaObjectIn
17       * @param context
18       */
19      public MetafacadeAttributeLogicImpl(
20          Object metaObjectIn,
21          String context)
22      {
23          super(metaObjectIn, context);
24      }
25  
26      /**
27       * @see org.andromda.cartridges.meta.metafacades.MetafacadeAttribute#getImplementationOperationName()
28       */
29      @Override
30      protected String handleGetImplementationOperationName()
31      {
32          return StringUtils.trimToEmpty(
33              String.valueOf(
34                  this.getConfiguredProperty(
35                      MetaGlobals.PROPERTY_IMPLEMENTATION_OPERATION_NAME_PATTERN))).replaceAll(
36              "\\{0\\}",
37              StringUtils.capitalize(this.getGetterName()));
38      }
39  }