|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.feednread.backend.importer.NewsFeedWatchesTreeImport
Imports a NewsFeedWatchesTree serialized as xml structure into
an arbitrary WatchFolder. Note that a
NewsFeedFavoritesTreeOPMLImport has to be precede a
NewsFeedWatchesTreeImport to create the required back
references to the corresponding watched Favorites during the
import.
| Field Summary | |
private Map |
elements
Maps guids to IMutableTreeElements |
private IProgressMonitor |
monitor
The IProgressMonitor to report the progress of the import
to
|
private WatchFolder |
targetFolder
The WatchFolder to import into |
| 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 | |
NewsFeedWatchesTreeImport(IProgressMonitor monitor,
WatchFolder targetFolder,
Map elements)
Creates a new NewsFeedWatchesTreeImport that imports into
the specified targetFolder.
|
|
| Method Summary | |
void |
doImport(String fileName)
Imports the NewsFeedWatchesTree Document
from the File with the specified fileName.
|
protected void |
importWatch(Element watchElem,
WatchFolder parent)
Imports the Watch specified by the given
watchElem and hangs it in the given parent
WatchFolder.
|
protected void |
importWatchedElements(Element watchedElementsElem,
Watch watch)
Imports the watched IMutableTreeElements specified by the
given watchElementsElem and associates them to the given
Watch.
|
protected void |
importWatchFolder(Element folderElem,
WatchFolder parent)
Imports the WatchFolder specified by the given
folderElem and hangs it in the given parent
WatchFolder.
|
protected void |
importWatchSettings(Element settingsElem,
Watch watch)
Imports the WatchSettings specified by the given
settingsElem and associates it to the given
Watch.
|
protected void |
importWatchSettingsEntry(Element entryElem,
WatchSettings settings)
Imports the WatchSettingsEntry specified by the given
entryElem and adds it to the given
WatchSettings.
|
protected void |
parseDocument(Document doc)
Parses the NewsFeedWatchesTree Document.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private IProgressMonitor monitor
The IProgressMonitor to report the progress of the import
to
private WatchFolder targetFolder
The WatchFolder to import into
private Map elements
Maps guids to IMutableTreeElements
| Constructor Detail |
public NewsFeedWatchesTreeImport(IProgressMonitor monitor,
WatchFolder targetFolder,
Map elements)
Creates a new NewsFeedWatchesTreeImport that imports into
the specified targetFolder.
monitor - the IProgressMonitor to report the progress
of this NewsFeedWatchesTreeImport totargetFolder - the WatchFolder to import intoelements - the list of IMutableTreeElements backed up
by a Map; A single IMutableTreeElement is
accessible in the Map via its guid| Method Detail |
public void doImport(String fileName)
throws JDOMException,
IOException
Imports the NewsFeedWatchesTree Document
from the File with the specified fileName.
fileName - the name of the file to import from
IOException - if the import failed due to an IO error
JDOMExceptionprotected void parseDocument(Document doc)
Parses the NewsFeedWatchesTree Document.
doc - the NewsFeedWatchesTree Document
to parse
protected void importWatchFolder(Element folderElem,
WatchFolder parent)
Imports the WatchFolder specified by the given
folderElem and hangs it in the given parent
WatchFolder.
folderElem - the Element specifying a
WatchFolderparent - the parent WatchFolder to import into
protected void importWatchSettings(Element settingsElem,
Watch watch)
Imports the WatchSettings specified by the given
settingsElem and associates it to the given
Watch.
settingsElem - the Element specifying the
WatchSettingswatch - the Watch to associate the imported
WatchSettings to
protected void importWatchSettingsEntry(Element entryElem,
WatchSettings settings)
Imports the WatchSettingsEntry specified by the given
entryElem and adds it to the given
WatchSettings.
entryElem - the Element specifying a
WatchSettingsEntrysettings - the WatchSettings to add the imported
WatchSettingsEntry to
protected void importWatchedElements(Element watchedElementsElem,
Watch watch)
Imports the watched IMutableTreeElements specified by the
given watchElementsElem and associates them to the given
Watch.
watchedElementsElem - the Element specifying the
watched IMutableTreeElementswatch - the Watch to associate the imported watched
IMutableTreeElements to
protected void importWatch(Element watchElem,
WatchFolder parent)
Imports the Watch specified by the given
watchElem and hangs it in the given parent
WatchFolder.
watchElem - the Element specifying a
Watchparent - the parent WatchFolder to import into
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||