KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > dotbetwixt > SimpleTestBean


1 /*
2  * Copyright 2001-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  
17 package org.apache.commons.betwixt.dotbetwixt;
18
19 /**
20   * This is a simple bean used in testing id-attribute custom mapping.
21   *
22   * @author Robert Burrell Donkin
23   */

24 public class SimpleTestBean {
25     
26 //-------------------------- Attributes
27
private String JavaDoc alpha;
28     private String JavaDoc beta;
29     private String JavaDoc gamma;
30     
31 //-------------------------- Constructors
32
public SimpleTestBean(String JavaDoc alpha, String JavaDoc beta, String JavaDoc gamma) {
33         setAlpha(alpha);
34         setBeta(beta);
35         setGamma(gamma);
36     }
37         
38 //--------------------------- Properties
39

40     public String JavaDoc getAlpha() {
41         return alpha;
42     }
43     
44     public void setAlpha(String JavaDoc alpha) {
45         this.alpha = alpha;
46     }
47     
48     public String JavaDoc getBeta() {
49         return beta;
50     }
51     
52     public void setBeta(String JavaDoc beta) {
53         this.beta = beta;
54     }
55     
56     public String JavaDoc getGamma() {
57         return gamma;
58     }
59     
60     public void setGamma(String JavaDoc gamma) {
61         this.gamma = gamma;
62     }
63 }
64
Popular Tags