KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > repository > test > SimpleItem


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.repository.test;
8
9
10 import com.inversoft.verge.mvc.controller.Action;
11
12
13 /**
14  * This class is a simple JavaBean used to test the Repository
15  *
16  * @author Brian Pontarelli
17  * @since 2.0
18  * @version 2.0
19  */

20 public class SimpleItem {
21
22     private String JavaDoc name;
23     private Integer JavaDoc age;
24     private Float JavaDoc money;
25     private SimpleItem2 reference;
26
27     /**
28      * Gets the name
29      *
30      * @return Returns the name
31      */

32     public String JavaDoc getName() {
33         return name;
34     }
35
36     /**
37      * Sets the name
38      *
39      * @param name the name
40      */

41     public void setName(String JavaDoc name) {
42         this.name = name;
43     }
44
45     /**
46      * Gets the age
47      *
48      * @return Returns the age
49      */

50     public Integer JavaDoc getAge() {
51         return age;
52     }
53
54     /**
55      * Sets the age
56      *
57      * @param age the age
58      */

59     public void setAge(Integer JavaDoc age) {
60         this.age = age;
61     }
62
63     /**
64      * Gets the money
65      *
66      * @return Returns the money
67      */

68     public Float JavaDoc getMoney() {
69         return money;
70     }
71
72     /**
73      * Sets the money
74      *
75      * @param money the money
76      */

77     public void setMoney(Float JavaDoc money) {
78         this.money = money;
79     }
80
81     /**
82      * Gets the reference
83      *
84      * @return Returns the reference
85      */

86     public SimpleItem2 getReference() {
87         return reference;
88     }
89
90     /**
91      * Sets the reference
92      *
93      * @param reference the reference
94      */

95     public void setReference(SimpleItem2 reference) {
96         this.reference = reference;
97     }
98
99     /**
100      * An action handler for testing other packages
101      */

102     public void handleAction(Action action) {
103     }
104
105     /**
106      * Getter that throws an exception.
107      */

108     public String JavaDoc getFailProperty() throws Exception JavaDoc {
109         throw new Exception JavaDoc();
110     }
111
112     /**
113      * Setter that throws an exception.
114      */

115     public void setFailProperty(String JavaDoc value) throws Exception JavaDoc {
116         throw new Exception JavaDoc();
117     }
118 }
Popular Tags