|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.changes.FeedGenerator
public class FeedGenerator
| Constructor Summary | |
|---|---|
FeedGenerator(Locale locale)
Initialize feedGenerator for a given locale. |
|
| Method Summary | |
|---|---|
void |
export(List<Release> releases,
String feedType,
Writer writer)
Extract a feed and export it to a Writer. |
String |
getAuthor()
The author of the feed. |
DateFormat |
getDateFormat()
The DateFormat. |
String |
getLink()
The main link of the feed. |
List<String> |
getSupportedFeedTypes()
A List of supported feed types. |
String |
getTitle()
The title of the feed. |
boolean |
isSupportedFeedType(String type)
Determine if a given feed type is supported. |
void |
setAuthor(String author)
Set the author of the feed. |
void |
setDateFormat(DateFormat dateFormat)
Set the date format. |
void |
setLink(String link)
Set the main link of the feed. |
void |
setTitle(String title)
Set the title of the feed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeedGenerator(Locale locale)
locale - a locale for i18n.| Method Detail |
|---|
public String getAuthor()
public void setAuthor(String author)
author - not null.public String getTitle()
public void setTitle(String title)
title - not null.public DateFormat getDateFormat()
public void setDateFormat(DateFormat dateFormat)
dateFormat - may be null.public String getLink()
public void setLink(String link)
link - not null.public boolean isSupportedFeedType(String type)
"rss_0.9", "rss_0.91N" (RSS 0.91 Netscape), "rss_0.91U" (RSS 0.91 Userland),
"rss_0.92", "rss_0.93", "rss_0.94", "rss_1.0", "rss_2.0", "atom_0.3", "atom_1.0".
type - the feed type to check. May be null.
public List<String> getSupportedFeedTypes()
isSupportedFeedType(java.lang.String)
public void export(List<Release> releases,
String feedType,
Writer writer)
throws IOException
releases - the List of Releases. Only the last release is used in the feed.feedType - The type of the feed to generate.
See isSupportedFeedType(java.lang.String) for supported values.writer - a Writer. Note that this is not flushed nor closed upon exit.
IOException - if an error occurs during export.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||