KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > web > rss > Channel


1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * 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 JavaDoc;
19 import java.util.ArrayList JavaDoc;
20 import java.util.List JavaDoc;
21
22 /**
23  * 协议无关的网站摘要
24  * @author Winter Lau
25  */

26 public class Channel implements Serializable JavaDoc {
27     
28     protected String JavaDoc title;
29     protected String JavaDoc link;
30     protected String JavaDoc description;
31     
32     protected List JavaDoc items;
33
34     public Channel() {
35         items = new ArrayList JavaDoc();
36     }
37     
38     public void addItem(Item item){
39         items.add(item);
40     }
41
42     public String JavaDoc getDescription() {
43         return description;
44     }
45     public void setDescription(String JavaDoc description) {
46         this.description = description;
47     }
48     public List JavaDoc getItems() {
49         return items;
50     }
51     public void setItems(List JavaDoc items) {
52         this.items = items;
53     }
54     public String JavaDoc getLink() {
55         return link;
56     }
57     public void setLink(String JavaDoc link) {
58         this.link = link;
59     }
60     public String JavaDoc getTitle() {
61         return title;
62     }
63     public void setTitle(String JavaDoc title) {
64         this.title = title;
65     }
66 }
67
Popular Tags