View Javadoc
1   package org.andromda.cartridges.meta.metafacades;
2   
3   import org.andromda.metafacades.uml.OperationFacade;
4   import org.andromda.metafacades.uml.ParameterFacade;
5   
6   /**
7    * @author <a href="http://www.mbohlen.de">Matthias Bohlen </a>
8    * @since 25.02.2004
9    */
10  public class UMLOperationData
11      extends MethodData
12  {
13      /**
14       * Constructs a MethodData object from an OperationFacade.
15       *
16       * @param metafacadeName the name of the parent class
17       * @param operation the operation facade
18       */
19      public UMLOperationData(
20          final String metafacadeName,
21          final OperationFacade operation)
22      {
23          super(
24              metafacadeName,
25              operation.getVisibility(),
26              operation.isAbstract(),
27              operation.getGetterSetterReturnTypeName(),
28              operation.getName(),
29              operation.getDocumentation("     * "));
30  
31          for (ParameterFacade parameter : operation.getArguments())
32          {
33              addArgument(
34                  new ArgumentData(
35                      parameter.getGetterSetterTypeName(),
36                      parameter.getName()));
37          }
38      }
39  }