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
8
9
10 public class UMLOperationData
11 extends MethodData
12 {
13
14
15
16
17
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 }