KickJava   Java API By Example, From Geeks To Geeks.

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


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

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