01: /*
02: * (C) Copyright 2000 - 2005 Nabh Information Systems, Inc.
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * 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: */
19: package com.nabhinc.portlet.news;
20:
21: import java.util.Date;
22:
23: /**
24: *
25: *
26: * @author Padmanabh Dabke
27: * (c) 2005 Nabh Information Systems, Inc. All Rights Reserved.
28: */
29: public class NewsItem {
30: private Date niPubDate = null;
31: private String niTitle = null;
32: private String niURL = null;
33: private String niLink = null;
34: private String niDescr = null;
35: public String niGUID = null;
36:
37: public NewsItem(String title, String link, String descr) {
38: niTitle = title;
39: niLink = link;
40: niDescr = descr;
41: }
42:
43: public NewsItem(Date pubDate, String title, String link,
44: String descr) {
45: niPubDate = pubDate;
46: niTitle = title;
47: niLink = link;
48: niDescr = descr;
49: }
50:
51: public NewsItem(Date pubDate, String title, String link,
52: String descr, String guid) {
53: niPubDate = pubDate;
54: niTitle = title;
55: niLink = link;
56: niDescr = descr;
57: niGUID = guid;
58: }
59:
60: public Date getPubDate() {
61: return niPubDate;
62: }
63:
64: public String getTitle() {
65: return niTitle;
66: }
67:
68: public String getLink() {
69: return niLink;
70: }
71:
72: public String getDescription() {
73: return niDescr;
74: }
75:
76: public String getGUID() {
77: return niGUID;
78: }
79: }
|