1 package net.sf.tomp.xtcl.command;
2
3 /***
4 * Creates a XTCL script template.
5 *
6 * @author tomp
7 */
8 public class Template extends AbstractCommand {
9
10 /*** Template name */
11 private String name;
12
13 /*** Template command */
14 private String body;
15
16 /***
17 * @return Returns the body.
18 */
19 public String getBody() {
20 return body;
21 }
22
23 /***
24 * @return Returns the name.
25 */
26 public String getName() {
27 return name;
28 }
29
30 /***
31 * DOCUMENT ME!
32 *
33 * @param p DOCUMENT ME!
34 */
35 public void setName(String p) {
36 name = p;
37 }
38
39 /***
40 * Set the command (sequence) found in this template body
41 *
42 * @param c the command from the body
43 */
44 public void setBody(String b) {
45 body = b;
46 }
47
48 /***
49 * @return "TEMPLATE " + name + " {" + body + "}";
50 */
51 public String toString() {
52 return "TEMPLATE " + name + " {" + body + "}";
53 }
54 }
55
56
57
58
59
60
61
62
63
64
65