View Javadoc
1   /*
2    * $Header: /cvsroot/sinon/sinon/src/java/eteg/sinon/core/Prompt.java,v 1.2 2005/06/21 14:25:08 thiagohp Exp $
3    * $Revision: 1.2 $
4    * $Date: 2005/06/21 14:25:08 $
5    * $Author: thiagohp $
6    *
7    * =============================================================================
8    *
9    * Copyright 2004-2005 Eteg Internet Ltda. (http://www.eteg.com.br)
10   *
11   * Licensed under the Apache License, Version 2.0 (the "License");
12   * you may not use this file except in compliance with the License.
13   * You may obtain a copy of the License at
14   *
15   *     http://www.apache.org/licenses/LICENSE-2.0
16   *
17   * Unless required by applicable law or agreed to in writing, software
18   * distributed under the License is distributed on an "AS IS" BASIS,
19   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20   * See the License for the specific language governing permissions and
21   * limitations under the License.
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 }