KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > webapps > addressbook > Country


1 package org.jahia.webapps.addressbook;
2
3 import java.util.*;
4
5 import org.jahia.tools.*;
6
7
8 /**
9  * Class Country: represents a country in which we can classify the contacts
10  *
11  * @author Jerome Tamiotti <a HREF="mailto:tamiotti@xo3.com">tamiotti@xo3.com</a>
12  * @version %I%, %G%
13  */

14 public class Country
15 {
16     private int id=0;
17     private String JavaDoc name;
18
19     public Country(int id)
20     {
21         this.id = id;
22     }
23
24     public Country(int id,String JavaDoc name)
25     {
26         this.id = id;
27         this.name = name;
28     }
29
30     public int getId()
31     {
32         return this.id;
33     }
34
35     public void setName(String JavaDoc name)
36     {
37         this.name = name;
38     }
39
40     public String JavaDoc getName()
41     {
42         return this.name;
43     }
44 }
45
Popular Tags