net.sourceforge.java.feednread.backend.exporter
Class NewsFeedFavoritesTreeOPMLExport

java.lang.Object
  extended bynet.sourceforge.java.feednread.backend.exporter.OPMLExport
      extended bynet.sourceforge.java.feednread.backend.exporter.NewsFeedFavoritesTreeOPMLExport

public class NewsFeedFavoritesTreeOPMLExport
extends OPMLExport

Exports the NewsFeedFavoriteTree i.e. its hierarchical Category structure to an xml JDOM Document which can on his part be exported to a extended OPML File. In difference to the default OPMLExport it extends the opml format using supplementally meta data, e.g. identification and auto refresh data.

Author:
Sebastian Machhausen

Field Summary
 
Fields inherited from class net.sourceforge.java.feednread.backend.exporter.OPMLExport
 
Constructor Summary
NewsFeedFavoritesTreeOPMLExport(Category root)
           Creates a new NewsFeedFavoritesTreeOPMLExport bound to the specified Category.
 
Method Summary
protected  void exportCategory(Category category, Element parent)
           Recursively exports the specified Category to the specified parent Element.
protected  void exportFavorite(Favorite favorite, Element categoryOutline)
           Exports the specified Favorite to the specified categoryOutline Element.
 
Methods inherited from class net.sourceforge.java.feednread.backend.exporter.OPMLExport
doExport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsFeedFavoritesTreeOPMLExport

public NewsFeedFavoritesTreeOPMLExport(Category root)

Creates a new NewsFeedFavoritesTreeOPMLExport bound to the specified Category.

Parameters:
root - the Category to export
Method Detail

exportCategory

protected void exportCategory(Category category,
                              Element parent)

Recursively exports the specified Category to the specified parent Element.

Overrides:
exportCategory in class OPMLExport
Parameters:
category - the Category to export
parent - the parent Element to export the specified Category to

exportFavorite

protected void exportFavorite(Favorite favorite,
                              Element categoryOutline)

Exports the specified Favorite to the specified categoryOutline Element.

Overrides:
exportFavorite in class OPMLExport
Parameters:
favorite - the Favorite to export
categoryOutline - the outline Element to export the specified Favorite to