KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > woody > samples > bindings > ValuesBean


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.woody.samples.bindings;
17
18 /**
19  * ValuesBean used in the 01values test.
20  * @author Marc Portier
21  * @version $Id: ValuesBean.java 30932 2004-07-29 17:35:38Z vgritsenko $
22  */

23 public class ValuesBean {
24     private String JavaDoc simple = "Simple";
25     private String JavaDoc writeOnly = "Write-Only";
26     private String JavaDoc readOnly = "Read-Only";
27     private String JavaDoc date = "19700506";
28     private String JavaDoc diffIn = "Diff-in/out";
29     private String JavaDoc diffOut;
30     private String JavaDoc onUpdate = "On Update";
31     private int updateCount = 0;
32     private boolean bool = true;
33     private String JavaDoc other = "This field is not involved in the form.";
34
35     public String JavaDoc toString() {
36         return "ValuesBean[\n"
37         +"\tsimple=" +simple +"\n"
38         +"\treadonly=" +readOnly +"\n"
39         +"\twriteonly=" +writeOnly +"\n"
40         +"\tdiff-in=" +diffIn +"\n"
41         +"\tdiff-out=" +diffOut +"\n"
42         +"\tdate=" +date +"\n"
43         +"\tbool=" +bool +"\n"
44         +"\tonupdate=" + onUpdate +"\n"
45         +"\tupdateCount=" + updateCount +"\n"
46         +"\tother=" + other +"\n";
47     }
48
49     /**
50      * @return Returns the bool.
51      */

52     public boolean isBool() {
53         return bool;
54     }
55
56     /**
57      * @param bool The bool to set.
58      */

59     public void setBool(boolean bool) {
60         this.bool = bool;
61     }
62
63     /**
64      * @return Returns the date.
65      */

66     public String JavaDoc getDate() {
67         return date;
68     }
69
70     /**
71      * @param date The date to set.
72      */

73     public void setDate(String JavaDoc date) {
74         this.date = date;
75     }
76
77     /**
78      * @return Returns the diffIn.
79      */

80     public String JavaDoc getDiffIn() {
81         return diffIn;
82     }
83
84     /**
85      * @param diffIn The diffIn to set.
86      */

87     public void setDiffIn(String JavaDoc diffIn) {
88         this.diffIn = diffIn;
89     }
90
91     /**
92      * @return Returns the diffOut.
93      */

94     public String JavaDoc getDiffOut() {
95         return diffOut;
96     }
97
98     /**
99      * @param diffOut The diffOut to set.
100      */

101     public void setDiffOut(String JavaDoc diffOut) {
102         this.diffOut = diffOut;
103     }
104
105     /**
106      * @return Returns the onUpdate.
107      */

108     public String JavaDoc getOnUpdate() {
109         return onUpdate;
110     }
111
112     /**
113      * @param onUpdate The onUpdate to set.
114      */

115     public void setOnUpdate(String JavaDoc onUpdate) {
116         this.onUpdate = onUpdate;
117     }
118
119     /**
120      * @return Returns the other.
121      */

122     public String JavaDoc getOther() {
123         return other;
124     }
125
126     /**
127      * @param other The other to set.
128      */

129     public void setOther(String JavaDoc other) {
130         this.other = other;
131     }
132
133     /**
134      * @return Returns the readOnly.
135      */

136     public String JavaDoc getReadOnly() {
137         return readOnly;
138     }
139
140     /**
141      * @param readOnly The readOnly to set.
142      */

143     public void setReadOnly(String JavaDoc readOnly) {
144         this.readOnly = readOnly;
145     }
146
147     /**
148      * @return Returns the simple.
149      */

150     public String JavaDoc getSimple() {
151         return simple;
152     }
153
154     /**
155      * @param simple The simple to set.
156      */

157     public void setSimple(String JavaDoc simple) {
158         this.simple = simple;
159     }
160
161     /**
162      * @return Returns the updateCount.
163      */

164     public int getUpdateCount() {
165         return updateCount;
166     }
167
168     /**
169      * @param updateCount The updateCount to set.
170      */

171     public void setUpdateCount(int updateCount) {
172         this.updateCount = updateCount;
173     }
174
175     /**
176      * @return Returns the writeOnly.
177      */

178     public String JavaDoc getWriteOnly() {
179         return writeOnly;
180     }
181
182     /**
183      * @param writeOnly The writeOnly to set.
184      */

185     public void setWriteOnly(String JavaDoc writeOnly) {
186         this.writeOnly = writeOnly;
187     }
188 }
189
Popular Tags