KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > samples > photos > Comment


1 /*
2   Copyright (C) AOPSYS (http://www.aopsys.com)
3
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU General Public License as published by
6   the Free Software Foundation; either version 2 of the License, or
7   (at your option) any later version.
8
9   This program is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12   GNU General Public License for more details.
13
14   You should have received a copy of the GNU General Public License
15   along with this program; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */

17
18 package org.objectweb.jac.samples.photos;
19
20 import java.util.Date JavaDoc;
21
22
23 /**
24  * A comment on a photo
25  */

26 public class Comment {
27    /**
28     * the author of the comment
29     */

30    Person author;
31    public Person getAuthor() {
32       return author;
33    }
34    public void setAuthor(Person author) {
35       this.author = author;
36    }
37
38    /**
39     * the text of the comment
40     */

41    String JavaDoc comment;
42    public String JavaDoc getComment() {
43       return comment;
44    }
45    public void setComment(String JavaDoc comment) {
46       this.comment = comment;
47    }
48
49    Date JavaDoc date = new Date JavaDoc();
50    public Date JavaDoc getDate() {
51       return date;
52    }
53
54    /**
55     * the commented photo
56     */

57    Photo photo;
58    public Photo getPhoto() {
59       return photo;
60    }
61    public void setPhoto(Photo photo) {
62       this.photo = photo;
63    }
64 }
65
Popular Tags