KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jahia.webapps.addressbook;
2
3 import java.util.*;
4
5 import org.jahia.tools.*;
6
7
8 /**
9  * Class Category: represents a category 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 Category
15 {
16     private int id=0;
17     private String JavaDoc name;
18         private int addbookId;
19         private int rank;
20
21         public Category()
22                 {
23                         this.id = id;
24                 }
25
26     public Category(int id)
27     {
28         this.id = id;
29     }
30
31     public Category(int id,String JavaDoc name)
32     {
33         this.id = id;
34         this.name = name;
35     }
36
37     public int getId()
38     {
39         return this.id;
40     }
41
42     public void setName(String JavaDoc name)
43     {
44         this.name = name;
45     }
46         public int getAddbookId()
47         {
48                 return this.addbookId;
49         }
50
51         public void setAddbookId(int id)
52         {
53                 this.addbookId = id;
54         }
55
56
57     public String JavaDoc getName()
58     {
59         return this.name;
60     }
61 }
62
Popular Tags