1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package eteg.sinon.core;
24
25 /***
26 * Class that represents an user interaction request.
27 *
28 * @author <a href="mailto:thiagohp at users.sourceforge.net">Thiago H. de Paula Figueiredo</a>
29 * @author Last modified by $Author: thiagohp $
30 * @version $Revision: 1.2 $
31 * @since 0.0
32 */
33 public class Prompt {
34
35 /***
36 * Prompt identifier.
37 */
38 private String id;
39
40 /***
41 * Message to be shown to the user.
42 */
43 private String message;
44
45 /***
46 * Default value. Used if the user does not enter any input.
47 */
48 private String defaultValue;
49
50 /***
51 * Constructor without parameters.
52 */
53 public Prompt() {
54 }
55
56 /***
57 * Returns the value of the <code>id</code> property.
58 * @return a <code>String</code>.
59 */
60 public String getId() {
61 return id;
62 }
63
64 /***
65 * Sets the value of the <code>id</code> property.
66 * @param id the new <code>id</code> value.
67 */
68 public void setId(String id) {
69 this.id = id;
70 }
71
72 /***
73 * Returns the value of the <code>message</code> property.
74 * @return a <code>String</code>.
75 */
76 public String getMessage() {
77 return message;
78 }
79
80 /***
81 * Sets the value of the <code>message</code> property.
82 * @param message the new <code>message</code> value.
83 */
84 public void setMessage(String message) {
85 this.message = message;
86 }
87
88 /***
89 * Returns the value of the <code>defaultValue</code> property.
90 * @return a <code>String</code>.
91 */
92 public String getDefaultValue() {
93 return defaultValue;
94 }
95
96 /***
97 * Sets the value of the <code>defaultValue</code> property.
98 * @param defaultValue the new <code>defaultValue</code> value.
99 */
100 public void setDefaultValue(String defaultValue) {
101 this.defaultValue = defaultValue;
102 }
103
104 }