KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > uitags > testdata > Country


1 /**
2  * Feb 23, 2005
3  *
4  * Copyright 2004 uitags
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package net.sf.uitags.testdata;
19
20 public class Country {
21   private int id;
22   private String JavaDoc name;
23   private Continent continent;
24
25   public Country(int id, String JavaDoc name) {
26     this.id = id;
27     this.name = name;
28   }
29
30   public void setId(int value) { this.id = value; }
31   public int getId() { return this.id; }
32
33   public void setName(String JavaDoc value) { this.name = value; }
34   public String JavaDoc getName() { return this.name; }
35
36   public void setContinent(Continent value) { this.continent = value; }
37   public Continent getContinent() { return this.continent; }
38
39   public String JavaDoc getContinentId() { return this.continent.getId(); }
40 }
41
Popular Tags