001: /*
002: * $Id: TestBean.java 471754 2006-11-06 14:55:09Z husted $
003: *
004: * Licensed to the Apache Software Foundation (ASF) under one
005: * or more contributor license agreements. See the NOTICE file
006: * distributed with this work for additional information
007: * regarding copyright ownership. The ASF licenses this file
008: * to you under the Apache License, Version 2.0 (the
009: * "License"); you may not use this file except in compliance
010: * with the License. You may obtain a copy of the License at
011: *
012: * http://www.apache.org/licenses/LICENSE-2.0
013: *
014: * Unless required by applicable law or agreed to in writing,
015: * software distributed under the License is distributed on an
016: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017: * KIND, either express or implied. See the License for the
018: * specific language governing permissions and limitations
019: * under the License.
020: */
021:
022: package examples;
023:
024: import java.io.Serializable;
025:
026: /**
027: * An example bean for Bean Examples
028: *
029: * @version $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $
030: */
031: public class TestBean implements Serializable {
032:
033: // ------------------------------------------------------ Instance Variables
034:
035: /** A boolean value */
036: private boolean booleanValue = false;
037:
038: /** A double value */
039: private double doubleValue = 45213.451;
040:
041: /** A float value */
042: private float floatValue = -123.582F;
043:
044: /** An integer value */
045: private int intValue = 256;
046:
047: /** A long integer value */
048: private long longValue = 1321546L;
049:
050: /** A short integer value */
051: private short shortValue = 257;
052:
053: /** A string value */
054: private String stringValue = "Hello, world!";
055:
056: /** A dateValue value */
057: private java.util.Date dateValue = new java.util.Date();
058:
059: // ------------------------------------------------------------ Constructors
060:
061: /**
062: * Constructor for TestBean.
063: */
064: public TestBean() {
065: super ();
066: }
067:
068: // -------------------------------------------------------------- Properties
069:
070: /**
071: * Returns the booleanValue.
072: * @return boolean
073: */
074: public boolean isBooleanValue() {
075: return booleanValue;
076: }
077:
078: /**
079: * Returns the doubleValue.
080: * @return double
081: */
082: public double getDoubleValue() {
083: return doubleValue;
084: }
085:
086: /**
087: * Returns the floatValue.
088: * @return float
089: */
090: public float getFloatValue() {
091: return floatValue;
092: }
093:
094: /**
095: * Returns the intValue.
096: * @return int
097: */
098: public int getIntValue() {
099: return intValue;
100: }
101:
102: /**
103: * Returns the longValue.
104: * @return long
105: */
106: public long getLongValue() {
107: return longValue;
108: }
109:
110: /**
111: * Returns the shortValue.
112: * @return short
113: */
114: public short getShortValue() {
115: return shortValue;
116: }
117:
118: /**
119: * Returns the stringValue.
120: * @return String
121: */
122: public String getStringValue() {
123: return stringValue;
124: }
125:
126: /**
127: * Sets the booleanValue.
128: * @param booleanValue The booleanValue to set
129: */
130: public void setBooleanValue(boolean booleanValue) {
131: this .booleanValue = booleanValue;
132: }
133:
134: /**
135: * Sets the doubleValue.
136: * @param doubleValue The doubleValue to set
137: */
138: public void setDoubleValue(double doubleValue) {
139: this .doubleValue = doubleValue;
140: }
141:
142: /**
143: * Sets the floatValue.
144: * @param floatValue The floatValue to set
145: */
146: public void setFloatValue(float floatValue) {
147: this .floatValue = floatValue;
148: }
149:
150: /**
151: * Sets the intValue.
152: * @param intValue The intValue to set
153: */
154: public void setIntValue(int intValue) {
155: this .intValue = intValue;
156: }
157:
158: /**
159: * Sets the longValue.
160: * @param longValue The longValue to set
161: */
162: public void setLongValue(long longValue) {
163: this .longValue = longValue;
164: }
165:
166: /**
167: * Sets the shortValue.
168: * @param shortValue The shortValue to set
169: */
170: public void setShortValue(short shortValue) {
171: this .shortValue = shortValue;
172: }
173:
174: /**
175: * Sets the stringValue.
176: * @param stringValue The stringValue to set
177: */
178: public void setStringValue(String stringValue) {
179: this .stringValue = stringValue;
180: }
181:
182: /**
183: * Returns the dateValue.
184: * @return java.util.Date
185: */
186: public java.util.Date getDateValue() {
187: return dateValue;
188: }
189:
190: /**
191: * Sets the dateValue.
192: * @param date The date to set
193: */
194: public void setDateValue(java.util.Date date) {
195: this.dateValue = date;
196: }
197:
198: }
|