de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive
|
|||
public
|
WikiDataSource Inner class.
|
|
|||
protected
String
|
categoryMarker |
|
|||
public
|
ArchiveHandlerWiki(String categoryMarker)
|
|
|||
public
Object
|
createData()
Creates an empty data source to be filled for export.
|
||
protected
void
|
createEntry(Object data, ArchiveEntry entry)
Creates a new archive entry in the data source handled by this ArchiveIOHandler.
@param plugin The WikiArcive plugin.
|
||
public
String
|
dataToString(Object data)
Converts the handled data source to string for export.
|
||
protected static
String
|
entry2wiki(ArchiveEntry entry, String categoryMarker, boolean useOutgoingLinks)
|
||
public
String
|
getContentSuffix()
Content type for export via HTTP.
|
||
public
String
|
getContentType()
Content type for export via HTTP.
|
||
protected static
String
|
getNormalPageText(String s)
Returns all normal text in a wiki page, i.e. all text that is not part of a table.
|
||
protected
String
|
msgDone(ArchiveEntry inEntry, ArchiveEntry outEntry, int mode)
Outputs a message informing about the action that has been taken for an entry.
|
||
protected
String
|
msgNotDone(ArchiveEntry inEntry, ArchiveEntry outEntry, int mode)
Outputs a message informing that an action has not been taken for an entry.
|
||
protected
String
|
msgToDo(ArchiveEntry inEntry, ArchiveEntry outEntry, int mode)
Outputs a message informing about the possible action to be taken for an input entry, e.g.
whether it would be added as a new entry, or an existing one would be updated.
|
||
protected
Map
|
parseAll(Object data)
Retrieves all archive entries from the data source.
("Parse" is not the best chosen term in this method's name, although
in some cases it may perform parsing if the data source is a string.)
|
||
protected static
Map
|
parseWikiTableAsMap(String s)
Parses entries of a Wiki table as a key/value-map.
The specified string gets scanned for Wiki-table markup (using '|' as marker),
each first column of a table is considered to contain key values,
each second column is taken as source for an entry-value. Other columns are not used.
|
||
protected
void
|
replaceEntry(Object data, ArchiveEntry newEntry, ArchiveEntry oldEntry)
Replaces an archive entry in the data source handled by this ArchiveIOHandler.
@param plugin The WikiArcive plugin.
|
||
public
void
|
stringToData(String s, Object data)
Converts a string to a handled data source for import.
|
||
public static
ArchiveEntry
|
wiki2entry(String pagename, String pagedata, String categoryMarker)
Converts Wiki-markup of a bibliography entry page in the Wiki to a ArchiveEntryBibTeX.
|
Tagged Values | |
static
|
false
|
documentation#author
|
Jens Gulden
|
documentation#version
|
0.2.0
|
|
public
WikiDataSource
Inner Tagged Values | |
static
|
false
|
|
protected
String categoryMarker
|
public
de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerWiki
ArchiveHandlerWiki(String categoryMarker)
categoryMarker
-
|
public
Object
createData()
protected
void createEntry(Object data, ArchiveEntry entry)
Method Tagged Values | |
documentation#throws
|
IOException if an i/o error occurs
|
data
- The data source handled by this ArchiveIOHandler.
entry
- The entry.
public
String
dataToString(Object data)
data
-
protected static
String
entry2wiki(ArchiveEntry entry, String categoryMarker, boolean useOutgoingLinks)
entry
-
categoryMarker
-
useOutgoingLinks
-
public
String
getContentSuffix()
public
String
getContentType()
protected static
String
getNormalPageText(String s)
s
-
protected
String
msgDone(ArchiveEntry inEntry, ArchiveEntry outEntry, int mode)
inEntry
- The entry processed.
outEntry
- The currently existing possible output entry, or null if such does not exist yet.
mode
- The action mode, like the mode
parameter of performIO().
protected
String
msgNotDone(ArchiveEntry inEntry, ArchiveEntry outEntry, int mode)
inEntry
- The entry not processed.
outEntry
- The currently existing possible output entry, or null if such does not exist yet.
mode
- The action mode, like the mode
parameter of performIO().
protected
String
msgToDo(ArchiveEntry inEntry, ArchiveEntry outEntry, int mode)
inEntry
- The input entry.
outEntry
- The currently existing possible output entry, or null if such does not exist yet.
mode
- The action mode, like the mode
parameter of performIO().
protected
Map
parseAll(Object data)
data
- The data source handled by this ArchiveIOHandler.
protected static
Map
parseWikiTableAsMap(String s)
Method Tagged Values | |
documentation#see
|
#bib2wiki(BibEntry)
|
s
- Wiki-text with table markup.
protected
void replaceEntry(Object data, ArchiveEntry newEntry, ArchiveEntry oldEntry)
Method Tagged Values | |
documentation#throws
|
IOException if an i/o error occurs
|
data
- The data source handled by this ArchiveIOHandler.
newEntry
- The new entry.
oldEntry
- The old entry.
public
void stringToData(String s, Object data)
s
-
data
-
public static
ArchiveEntry
wiki2entry(String pagename, String pagedata, String categoryMarker)
Method Tagged Values | |
documentation#see
|
#bib2wiki(ArchiveEntryBibTeX)
|
pagename
- Name of a Wiki page representing a bibliography entry.
pagedata
- The page's Wiki-markup.
categoryMarker
-