1
2
3
4
5
6
7
8 package net.kwfgrid.gworkflowdl.protocol.calls;
9
10 import net.kwfgrid.gworkflowdl.protocol.structure.ProtocolOperationClass;
11 import net.kwfgrid.gworkflowdl.protocol.structure.IRootObject;
12 import org.xmlpull.v1.XmlSerializer;
13
14 import java.io.IOException;
15
16 /***
17 * @author Andreas Hoheisel
18 * (<a href="http://www.andreas-hoheisel.de">www.andreas-hoheisel.de</a>)
19 * @version $Id: OperationClassSetName.java 916 2008-07-08 15:47:06Z kwfgrid.bassheide $
20 */
21 public class OperationClassSetName extends AbstractMethodCall {
22 protected ProtocolOperationClass _operation;
23 protected String _name;
24
25 public OperationClassSetName(ProtocolOperationClass operation, String name) {
26 super(operation.getRoot());
27 this._operation = operation;
28 this._name = name;
29 }
30
31 public void marshal(IMethodCallMarshaller encoder, XmlSerializer serializer) throws IOException {
32 encoder.marshalOperationClassSetName(serializer, _operation, _name);
33 }
34
35 public Object execute() {
36 _operation.__setName(_name);
37 setExecuted();
38 return null;
39 }
40
41 }