Child: [r24] (diff)

Download this file

Feed.java    66 lines (51 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package utils.vogella;
import java.util.ArrayList;
import java.util.List;
/*
* Stores an RSS feed
*/
public class Feed {
final String title;
final String link;
final String description;
final String language;
final String copyright;
final String pubDate;
final List<FeedMessage> entries = new ArrayList<FeedMessage>();
public Feed(String title, String link, String description, String language,
String copyright, String pubDate) {
this.title = title;
this.link = link;
this.description = description;
this.language = language;
this.copyright = copyright;
this.pubDate = pubDate;
}
public List<FeedMessage> getMessages() {
return entries;
}
public String getTitle() {
return title;
}
public String getLink() {
return link;
}
public String getDescription() {
return description;
}
public String getLanguage() {
return language;
}
public String getCopyright() {
return copyright;
}
public String getPubDate() {
return pubDate;
}
@Override
public String toString() {
return "Feed [copyright=" + copyright + ", description=" + description
+ ", language=" + language + ", link=" + link + ", pubDate="
+ pubDate + ", title=" + title + "]";
}
}