KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > addressbook > model > ContactModelPartial


1 // The contents of this file are subject to the Mozilla Public License Version
2
// 1.1
3
//(the "License"); you may not use this file except in compliance with the
4
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
5
//
6
//Software distributed under the License is distributed on an "AS IS" basis,
7
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
8
//for the specific language governing rights and
9
//limitations under the License.
10
//
11
//The Original Code is "The Columba Project"
12
//
13
//The Initial Developers of the Original Code are Frederik Dietz and Timo
14
// Stich.
15
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
16
//
17
//All Rights Reserved.
18
package org.columba.addressbook.model;
19
20 /**
21  * @author fdietz
22  *
23  */

24 public class ContactModelPartial extends BasicModelPartial implements
25         IContactModelPartial {
26
27     protected String JavaDoc address;
28
29     protected String JavaDoc website;
30
31     protected String JavaDoc firstname;
32
33     protected String JavaDoc lastname;
34
35     /**
36      *
37      */

38     public ContactModelPartial() {
39         super(true);
40
41     }
42
43     public ContactModelPartial(String JavaDoc name) {
44         this();
45         
46         this.name = name;
47     }
48
49     /**
50      *
51      * @param id
52      * @param displayname
53      * @param firstname
54      * @param lastname
55      * @param address
56      * @param website can be <code>null</code>
57      */

58     public ContactModelPartial(String JavaDoc id, String JavaDoc name, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc address,
59             String JavaDoc website) {
60         super(id, name, true);
61         
62         this.firstname = firstname;
63         this.lastname = lastname;
64         this.address = address;
65         this.website = website;
66     }
67
68     /**
69      * @return Returns the address.
70      */

71     public String JavaDoc getAddress() {
72         return address;
73     }
74
75     /**
76      * @return Returns the website.
77      */

78     public String JavaDoc getWebsite() {
79         return website;
80     }
81
82     public String JavaDoc getFirstname() {
83         return firstname;
84     }
85
86     public String JavaDoc getLastname() {
87         return lastname;
88     }
89
90 }
Free Books   Free Magazines  
Popular Tags