KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > examples > listexample > SimpleCar


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.examples.listexample;
17
18 import java.io.Serializable JavaDoc;
19
20 /**
21  * DOCUMENT ME!
22  * @author Thomas Spiegl (latest modification by $Author: matzew $)
23  * @version $Revision: 1.1 $ $Date: 2005/03/24 16:47:10 $
24  */

25 public class SimpleCar
26         implements Serializable JavaDoc
27 {
28     private int _id;
29     private String JavaDoc _type;
30     private String JavaDoc _color;
31
32     public SimpleCar(int id, String JavaDoc type, String JavaDoc color)
33     {
34         _id = id;
35         _type = type;
36         _color = color;
37     }
38
39     public int getId()
40     {
41         return _id;
42     }
43
44     public void setId(int id)
45     {
46         _id = id;
47     }
48
49     public String JavaDoc getType()
50     {
51         return _type;
52     }
53
54     public void setType(String JavaDoc type)
55     {
56         _type = type;
57     }
58
59     public String JavaDoc getColor()
60     {
61         return _color;
62     }
63
64     public void setColor(String JavaDoc color)
65     {
66         _color = color;
67     }
68 }
69
Popular Tags