KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > crazybob > rss > Channel


1 package org.crazybob.rss;
2
3 import java.util.*;
4 import org.jdom.*;
5 import org.jdom.input.*;
6 import java.io.*;
7
8 /**
9  * Channel.
10  *
11  * @author Bob Lee (crazybob@crazybob.org)
12  */

13 public class Channel implements java.io.Serializable JavaDoc {
14
15     static final long serialVersionUID = -1;
16
17     private String JavaDoc lastModified;
18     private List items = new ArrayList();
19     private String JavaDoc title;
20
21     public String JavaDoc toString() {
22         return "Channel[" +
23             "title: " + this.title +
24             ", lastModified: " + this.lastModified +
25             ", items: " + this.items.toString() +
26             "]";
27     }
28     
29     /**
30      * Get lastModified.
31      *
32      * @return lastModified as long.
33      */

34     public String JavaDoc getLastModified() {
35         return lastModified;
36     }
37
38     /**
39      * Set lastModified.
40      *
41      * @param lastModified the value to set.
42      */

43     public void setLastModified(String JavaDoc lastModified) {
44         this.lastModified = lastModified;
45     }
46
47     /**
48      * Get items.
49      *
50      * @return items as List.
51      */

52     public List getItems() {
53         return items;
54     }
55
56     /**
57      * Set items.
58      *
59      * @param items the value to set.
60      */

61     public void setItems(List items) {
62         this.items = items;
63     }
64
65     /**
66      * Get title.
67      *
68      * @return title as String.
69      */

70     public String JavaDoc getTitle() {
71         return title;
72     }
73
74     /**
75      * Set title.
76      *
77      * @param title the value to set.
78      */

79     public void setTitle(String JavaDoc title) {
80         this.title = title;
81     }
82 }
83
Popular Tags