KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hudson > FeedAdapter


1 package hudson;
2
3 import java.util.Calendar JavaDoc;
4
5 /**
6  * Provides a RSS feed view of the data.
7  *
8  * @author Kohsuke Kawaguchi
9  */

10 public interface FeedAdapter<E> {
11     /**
12      * Gets the human readable title of the entry.
13      * In RSS readers, this is usually displayed like an e-mail subject.
14      */

15     String JavaDoc getEntryTitle(E entry);
16
17     /**
18      * Gets the URL that represents this entry.
19      * Relative to context root of the Hudson.
20      */

21     String JavaDoc getEntryUrl(E entry);
22
23     /**
24      * Unique ID of each entry.
25      * RSS readers use this to determine what feeds are new and what are not.
26      */

27     String JavaDoc getEntryID(E entry);
28
29     /**
30      * Timestamp of the last change in this entry.
31      */

32     Calendar JavaDoc getEntryTimestamp(E entry);
33 }
34
Popular Tags