01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: Friend.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package tutorial.friends.backend;
09:
10: public class Friend {
11: private String firstname;
12: private String lastname;
13: private String description;
14: private String url;
15:
16: public Friend(String firstname, String lastname,
17: String description, String url) {
18: this .firstname = firstname;
19: this .lastname = lastname;
20: this .description = description;
21: this .url = url;
22: }
23:
24: public Friend() {
25: }
26:
27: public void setFirstname(String firstname) {
28: this .firstname = firstname;
29: }
30:
31: public String getFirstname() {
32: return firstname;
33: }
34:
35: public void setLastname(String lastname) {
36: this .lastname = lastname;
37: }
38:
39: public String getLastname() {
40: return lastname;
41: }
42:
43: public void setDescription(String description) {
44: this .description = description;
45: }
46:
47: public String getDescription() {
48: return description;
49: }
50:
51: public void setUrl(String url) {
52: this .url = url;
53: }
54:
55: public String getUrl() {
56: return url;
57: }
58: }
|