KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > schema > SimpleBean


1 /*
2  * Copyright 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
18 package org.apache.commons.betwixt.schema;
19
20 /**
21  * Very simple bean to allow basic tests for attribute and element
22  * transcription.
23  * @author <a HREF='http://jakarta.apache.org/'>Jakarta Commons Team</a>
24  * @version $Revision: 1.2 $
25  */

26 public class SimpleBean {
27     private String JavaDoc one;
28     private String JavaDoc two;
29     private String JavaDoc three;
30     private String JavaDoc four;
31     
32     public SimpleBean() {}
33
34     public SimpleBean(String JavaDoc one, String JavaDoc two, String JavaDoc three, String JavaDoc four) {
35         setOne(one);
36         setTwo(two);
37         setThree(three);
38         setFour(four);
39     }
40
41     public String JavaDoc getOne() {
42         return one;
43     }
44
45     public void setOne(String JavaDoc string) {
46         one = string;
47     }
48     
49     public String JavaDoc getTwo() {
50         return two;
51     }
52     
53     public void setTwo(String JavaDoc string) {
54         two = string;
55     }
56     
57     public String JavaDoc getThree() {
58         return three;
59     }
60     
61     public void setThree(String JavaDoc string) {
62         three = string;
63     }
64     
65     public String JavaDoc getFour() {
66         return four;
67     }
68
69     public void setFour(String JavaDoc string) {
70         four = string;
71     }
72
73 }
74
Popular Tags