01: package org.swingml.action;
02:
03: import org.w3c.dom.*;
04:
05: /**
06: * @author dpitt
07: */
08: public abstract class RemoteAction {
09:
10: private String id = null;
11: private String name = null;
12:
13: public abstract void applyResult(RemoteActionResult result);
14:
15: public abstract String createParamString();
16:
17: /**
18: * @return Returns the id.
19: */
20: public String getId() {
21: return id;
22: }
23:
24: /**
25: * @return Returns the name.
26: */
27: public String getName() {
28: return name;
29: }
30:
31: public abstract void parseResponse(Node element);
32:
33: /**
34: * @param id
35: * The id to set.
36: */
37: public void setId(String id) {
38: this .id = id;
39: }
40:
41: /**
42: * @param name
43: * The name to set.
44: */
45: public void setName(String name) {
46: this.name = name;
47: }
48: }
|