|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.feednread.backend.exporter.NewsFeedWatchesTreeExport
Exports the NewsFeedWatchesTree, i.e. its hierarchical
WatchFolder structure to an xml JDOM Document
which can on his part be exported to a File .
| Field Summary | |
private WatchFolder |
rootFolder
The root WatchFolderto export |
| Fields inherited from interface net.sourceforge.java.feednread.backend.exporter.INewsFeedWatchesTreeExportIdentifiers |
CASE_SENSITIVE, DEFAULT_NAMESPACE, DESCRIPTION, ELEMENTS, ENTRY, FOLDER, GUID_ATTRIBUTE, ITEM, KEYWORD, SETTINGS, TITLE_ATTRIBUTE, VERSION_ATTRIBUTE, WATCH, WATCH_LIST_ROOT, WHOLE_WORD |
| Constructor Summary | |
NewsFeedWatchesTreeExport(WatchFolder rootFolder)
Creates a new NewsFeedWatchesTreeExport instance.
|
|
| Method Summary | |
protected Document |
createDocument()
Creates a Dcoument from the set
rootFolder.
|
protected void |
createFolder(WatchFolder folder,
Element parent)
Creates a watch folder Element from the specified
WatchFolder inside the denoted parent.
|
protected void |
createWatch(Watch watch,
Element folderElem)
Creates a watch Element from the specified
Watch inside the denoted folderElem.
|
protected void |
createWatchedElements(IMutableTreeElement[] watchedElements,
Element elementsElem)
Creates the watched elements Elements inside the denoted
elementsElem using the given watchedElements.
|
protected void |
createWatchSettings(Watch watch,
Element watchElem)
Creates the watch settings Element for the specified
Watch inside the denoted watchElem.
|
protected void |
createWatchSettingsEntries(WatchSettingsEntry[] entries,
Element settingsElem)
Creates the watch settings entries Elements inside the
denoted settingsElem using the given entries.
|
void |
doExport(String fileName)
Exports the specified rootFolder to a File
with the specified fileName.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private WatchFolder rootFolder
The root WatchFolderto export
| Constructor Detail |
public NewsFeedWatchesTreeExport(WatchFolder rootFolder)
Creates a new NewsFeedWatchesTreeExport instance.
rootFolder - the root WatchFolder to export| Method Detail |
public void doExport(String fileName)
throws IOException
Exports the specified rootFolder to a File
with the specified fileName.
fileName - the name of the file to export to
IOException - if the export failed due to an IO errorprotected Document createDocument()
Creates a Dcoument from the set
rootFolder.
Document
protected void createFolder(WatchFolder folder,
Element parent)
Creates a watch folder Element from the specified
WatchFolder inside the denoted parent.
folder - the WatchFolder for which to create a watch
folder Elementparent - the parent Element
protected void createWatch(Watch watch,
Element folderElem)
Creates a watch Element from the specified
Watch inside the denoted folderElem.
watch - the Watch for which to create a watch
ElementfolderElem - the watch folder Element to embed the
created Element in
protected void createWatchSettings(Watch watch,
Element watchElem)
Creates the watch settings Element for the specified
Watch inside the denoted watchElem.
watch - the Watch for which to create the watch
settings ElementwatchElem - the watch Element to embed the
created Element in
protected void createWatchSettingsEntries(WatchSettingsEntry[] entries,
Element settingsElem)
Creates the watch settings entries Elements inside the
denoted settingsElem using the given entries.
entries - an array of WatchSettingsEntry instancessettingsElem - the watch settings Element to embed
the created Elements in
protected void createWatchedElements(IMutableTreeElement[] watchedElements,
Element elementsElem)
Creates the watched elements Elements inside the denoted
elementsElem using the given watchedElements.
watchedElements - an array of IMutableTreeElement
instanceselementsElem - the watched elements Element to embed
the created Elements in
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||