Package org.apache.maven.plugins.changes
Class FeedGenerator
java.lang.Object
org.apache.maven.plugins.changes.FeedGenerator
- Author:
- ltheussl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExtract a feed and export it to a Writer.The author of the feed.The DateFormat.getLink()The main link of the feed.A List of supported feed types.getTitle()The title of the feed.booleanisSupportedFeedType(String type) Determine if a given feed type is supported.voidSet the author of the feed.voidsetDateFormat(DateFormat dateFormat) Set the date format.voidSet the main link of the feed.voidSet the title of the feed.
-
Constructor Details
-
FeedGenerator
Initialize feedGenerator for a given locale.- Parameters:
locale- a locale for i18n
-
-
Method Details
-
getAuthor
The author of the feed.- Returns:
- the author
-
setAuthor
Set the author of the feed.- Parameters:
author- not null
-
getTitle
The title of the feed.- Returns:
- the title
-
setTitle
Set the title of the feed.- Parameters:
title- not null
-
getDateFormat
The DateFormat.- Returns:
- may be null
-
setDateFormat
Set the date format. This should match the date format used for the release dates in changes.xml.- Parameters:
dateFormat- may be null
-
getLink
The main link of the feed.- Returns:
- the link
-
setLink
Set the main link of the feed.- Parameters:
link- not null
-
isSupportedFeedType
Determine if a given feed type is supported. The currently supported values are:"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".- Parameters:
type- the feed type to check. May be null.- Returns:
- true if the given type is supported by the rome library, false otherwise
-
getSupportedFeedTypes
A List of supported feed types.- Returns:
- a List of supported feed types
- See Also:
-
export
Extract a feed and export it to a Writer.- Parameters:
releases- the List of Releases. Only the last release is used in the feed.feedType- The type of the feed to generate. SeeisSupportedFeedType(java.lang.String)for supported values.writer- a Writer. Note that this is not flushed nor closed upon exit.- Throws:
IOException- if an error occurs during export
-