001: package org.methodize.nntprss.rss;
002:
003: /* -----------------------------------------------------------
004: * nntp//rss - a bridge between the RSS world and NNTP clients
005: * Copyright (c) 2002, 2003 Jason Brome. All Rights Reserved.
006: *
007: * email: nntprss@methodize.org
008: * mail: Methodize Solutions
009: * PO Box 3865
010: * Grand Central Station
011: * New York NY 10163
012: *
013: * This file is part of nntp//rss
014: *
015: * nntp//rss is free software; you can redistribute it
016: * and/or modify it under the terms of the GNU General
017: * Public License as published by the Free Software Foundation;
018: * either version 2 of the License, or (at your option) any
019: * later version.
020: *
021: * This program is distributed in the hope that it will be
022: * useful, but WITHOUT ANY WARRANTY; without even the implied
023: * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
024: * PURPOSE. See the GNU General Public License for more
025: * details.
026: *
027: * You should have received a copy of the GNU General Public
028: * License along with this program; if not, write to the
029: * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
030: * Boston, MA 02111-1307 USA
031: * ----------------------------------------------------- */
032:
033: import java.util.Date;
034:
035: /**
036: * @author Jason Brome <jason@methodize.org>
037: * @version $Id: Item.java,v 1.4 2003/03/22 16:29:14 jasonbrome Exp $
038: */
039: public class Item {
040:
041: private int articleNumber;
042: private String signature;
043: private String title;
044: private String description;
045: private String link;
046: private Date date;
047: private String comments;
048: private Channel channel;
049:
050: public Item() {
051: }
052:
053: public Item(int articleNumber, String signature) {
054: this .articleNumber = articleNumber;
055: this .signature = signature;
056: }
057:
058: /**
059: * Returns the articleNumber.
060: * @return int
061: */
062: public int getArticleNumber() {
063: return articleNumber;
064: }
065:
066: /**
067: * Returns the signature.
068: * @return String
069: */
070: public String getSignature() {
071: return signature;
072: }
073:
074: /**
075: * Returns the description.
076: * @return String
077: */
078: public String getDescription() {
079: return description;
080: }
081:
082: /**
083: * Returns the link.
084: * @return String
085: */
086: public String getLink() {
087: return link;
088: }
089:
090: /**
091: * Returns the title.
092: * @return String
093: */
094: public String getTitle() {
095: return title;
096: }
097:
098: /**
099: * Sets the description.
100: * @param description The description to set
101: */
102: public void setDescription(String description) {
103: this .description = description;
104: }
105:
106: /**
107: * Sets the link.
108: * @param link The link to set
109: */
110: public void setLink(String link) {
111: this .link = link;
112: }
113:
114: /**
115: * Sets the title.
116: * @param title The title to set
117: */
118: public void setTitle(String title) {
119: this .title = title;
120: }
121:
122: /**
123: * Returns the date.
124: * @return Date
125: */
126: public Date getDate() {
127: return date;
128: }
129:
130: /**
131: * Sets the date.
132: * @param date The date to set
133: */
134: public void setDate(Date date) {
135: this .date = date;
136: }
137:
138: /**
139: * Sets the articleNumber.
140: * @param articleNumber The articleNumber to set
141: */
142: public void setArticleNumber(int articleNumber) {
143: this .articleNumber = articleNumber;
144: }
145:
146: /**
147: * Sets the signature.
148: * @param signature The signature to set
149: */
150: public void setSignature(String signature) {
151: this .signature = signature;
152: }
153:
154: /**
155: * Returns the channel.
156: * @return Channel
157: */
158: public Channel getChannel() {
159: return channel;
160: }
161:
162: /**
163: * Sets the channel.
164: * @param channel The channel to set
165: */
166: public void setChannel(Channel channel) {
167: this .channel = channel;
168: }
169:
170: /**
171: * Returns the comments.
172: * @return String
173: */
174: public String getComments() {
175: return comments;
176: }
177:
178: /**
179: * Sets the comments.
180: * @param comments The comments to set
181: */
182: public void setComments(String comments) {
183: this.comments = comments;
184: }
185:
186: }
|