KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
19  * @author Manfred Geiler (latest modification by $Author: matze $)
20  * @version $Revision: 1.5 $ $Date: 2004/10/13 11:50:56 $
21  * $Log: CommonModelBean.java,v $
22  * Revision 1.5 2004/10/13 11:50:56 matze
23  * renamed packages to org.apache
24  *
25  * Revision 1.4 2004/07/01 21:57:59 mwessendorf
26  * ASF switch
27  *
28  * Revision 1.3 2004/06/28 22:12:11 o_rossmueller
29  * fix #978654: do not coerce null
30  *
31  * Revision 1.2 2004/05/26 17:19:56 o_rossmueller
32  * test for bug 948626
33  *
34  * Revision 1.1 2004/04/23 15:12:14 manolito
35  * inputHidden bug reported by Travis
36  *
37  */

38 public class CommonModelBean
39 {
40     //private static final Log log = LogFactory.getLog(CommonModelBean.class);
41

42     private long _primitiveLong = 0;
43     private boolean primitiveLongSet = false;
44     private Integer JavaDoc integer = null;
45     private String JavaDoc string;
46
47
48     public String JavaDoc getString()
49     {
50         return string;
51     }
52
53
54     public void setString(String JavaDoc string)
55     {
56         this.string = string;
57     }
58
59
60     public long getPrimitiveLong()
61     {
62         return _primitiveLong;
63     }
64
65     public void setPrimitiveLong(long primitiveLong)
66     {
67         _primitiveLong = primitiveLong;
68         primitiveLongSet = true;
69     }
70
71
72     public boolean isPrimitiveLongSet()
73     {
74         return primitiveLongSet;
75     }
76
77
78     public Integer JavaDoc getInteger()
79     {
80         return integer;
81     }
82
83
84     public void setInteger(Integer JavaDoc integer)
85     {
86         this.integer = integer;
87     }
88 }
89
Popular Tags