KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > cactus > TestBean


1 /*
2  * Copyright 2002,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.myfaces.cactus;
17
18 import java.util.List JavaDoc;
19 import java.util.Map JavaDoc;
20 import java.util.Date JavaDoc;
21 import java.math.BigDecimal JavaDoc;
22
23
24 /**
25  * @author <a HREF="mailto:oliver@rossmueller.com">Oliver Rossmueller</a>
26  */

27 public class TestBean
28 {
29     private long numberPrimitiveLong;
30     private int numberPrimitiveInt;
31     private Long JavaDoc numberLong;
32     private BigDecimal JavaDoc numberBigDecimal;
33     private List JavaDoc list;
34     private Map JavaDoc map;
35     private Date JavaDoc date;
36     private String JavaDoc valueWithDefault = "default";
37
38
39     public String JavaDoc getValueWithDefault()
40     {
41         return valueWithDefault;
42     }
43
44
45     public void setValueWithDefault(String JavaDoc valueWithDefault)
46     {
47         this.valueWithDefault = valueWithDefault;
48     }
49
50
51     public long getNumberPrimitiveLong()
52     {
53         return numberPrimitiveLong;
54     }
55
56
57     public void setNumberPrimitiveLong(long numberPrimitiveLong)
58     {
59         this.numberPrimitiveLong = numberPrimitiveLong;
60     }
61
62
63     public Long JavaDoc getNumberLong()
64     {
65         return numberLong;
66     }
67
68
69     public void setNumberLong(Long JavaDoc numberLong)
70     {
71         this.numberLong = numberLong;
72     }
73
74
75     public BigDecimal JavaDoc getNumberBigDecimal()
76     {
77         return numberBigDecimal;
78     }
79
80
81     public void setNumberBigDecimal(BigDecimal JavaDoc numberBigDecimal)
82     {
83         this.numberBigDecimal = numberBigDecimal;
84     }
85
86
87     public List JavaDoc getList()
88     {
89         return list;
90     }
91
92
93     public void setList(List JavaDoc list)
94     {
95         this.list = list;
96     }
97
98
99     public Map JavaDoc getMap()
100     {
101         return map;
102     }
103
104
105     public void setMap(Map JavaDoc map)
106     {
107         this.map = map;
108     }
109
110
111     public Date JavaDoc getDate()
112     {
113         return date;
114     }
115
116
117     public void setDate(Date JavaDoc date)
118     {
119         this.date = date;
120     }
121
122
123     public int getNumberPrimitiveInt()
124     {
125         return numberPrimitiveInt;
126     }
127
128
129     public void setNumberPrimitiveInt(int numberPrimitiveInt)
130     {
131         this.numberPrimitiveInt = numberPrimitiveInt;
132     }
133
134
135     public String JavaDoc doAction() {
136         return "ok";
137     }
138 }
139
Popular Tags