KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > el > B


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 package org.apache.myfaces.el;
17
18 /**
19  * DOCUMENT ME!
20  * @author Manfred Geiler (latest modification by $Author: matze $)
21  * @version $Revision: 1.7 $ $Date: 2004/10/13 11:50:59 $
22  */

23 public class B
24 {
25     public static final String JavaDoc NAME = "Dummy object B";
26     
27     private String JavaDoc _name = NAME;
28     private int _int = -1;
29     private double _double = -1.1;
30     private Integer JavaDoc _integer = new Integer JavaDoc(-2);
31     private Double JavaDoc _double2 = new Double JavaDoc(-2.2);
32
33     public String JavaDoc getName()
34     {
35         return _name;
36     }
37
38     public void setName(String JavaDoc name)
39     {
40         _name = name;
41         // Note: in certain cases, our tests reset the object on every invocation!
42
}
43
44     public C getC()
45     {
46         return new C();
47     }
48
49     public C getTheC()
50     {
51         return new C();
52     }
53     
54     public void setInt(int i)
55     {
56         _int = i;
57     }
58     
59     public int getInt()
60     {
61         return _int;
62     }
63     public double getDouble()
64     {
65         return _double;
66     }
67     public void setDouble(double double1)
68     {
69         _double = double1;
70     }
71     public Double JavaDoc getDouble2()
72     {
73         return _double2;
74     }
75     public void setDouble2(Double JavaDoc double2)
76     {
77         _double2 = double2;
78     }
79     public Integer JavaDoc getInteger()
80     {
81         return _integer;
82     }
83     public void setInteger(Integer JavaDoc integer)
84     {
85         _integer = integer;
86     }
87 }
88
Popular Tags