01: /*
02: * This program is free software; you can redistribute it and/or modify
03: * it under the terms of the GNU General Public License as published by
04: * the Free Software Foundation; either version 2 of the License, or
05: * (at your option) any later version.
06: *
07: * This program is distributed in the hope that it will be useful,
08: * but WITHOUT ANY WARRANTY; without even the implied warranty of
09: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10: * GNU Library General Public License for more details.
11: *
12: * You should have received a copy of the GNU General Public License
13: * along with this program; if not, write to the Free Software
14: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15: */
16: package web.rss;
17:
18: import java.io.Serializable;
19: import java.util.ArrayList;
20: import java.util.List;
21:
22: /**
23: * 协议无关的网站摘要
24: * @author Winter Lau
25: */
26: public class Channel implements Serializable {
27:
28: protected String title;
29: protected String link;
30: protected String description;
31:
32: protected List items;
33:
34: public Channel() {
35: items = new ArrayList();
36: }
37:
38: public void addItem(Item item) {
39: items.add(item);
40: }
41:
42: public String getDescription() {
43: return description;
44: }
45:
46: public void setDescription(String description) {
47: this .description = description;
48: }
49:
50: public List getItems() {
51: return items;
52: }
53:
54: public void setItems(List items) {
55: this .items = items;
56: }
57:
58: public String getLink() {
59: return link;
60: }
61:
62: public void setLink(String link) {
63: this .link = link;
64: }
65:
66: public String getTitle() {
67: return title;
68: }
69:
70: public void setTitle(String title) {
71: this.title = title;
72: }
73: }
|