public class MediawikiOutputModule extends PublishOutputModuleBase
Modifier and Type | Field and Description |
---|---|
java.lang.String |
prefix |
java.lang.String |
sourceUrl |
static java.lang.String |
STYLESHEET_RESOURCE_DEFAULT |
java.lang.String |
username |
DATE_FORMAT_NOW
Constructor and Description |
---|
MediawikiOutputModule(java.lang.String sourceUrl) |
MediawikiOutputModule(java.lang.String mediaWikiPagePrefix,
java.lang.String sourceUrl) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateFilenameWithDate(java.lang.String name)
Generates a string containing the current date followed by the given
name.
|
java.io.InputStream |
getDefaultXsltInputStream() |
java.lang.String |
getOutputFileSuffix()
Returns the file suffix that should be used for the generated output.
|
static void |
main(java.lang.String[] args) |
void |
output(org.jdom.Document document,
java.io.File exportFolder,
IProgressMonitor progressMonitor)
The given
Document will be transformed into the output format defined by the implementing class. |
void |
setPrefix(java.lang.String prefix) |
void |
setUsername(java.lang.String username) |
getFilePath, getFilePath, getInputDocument, getNewFilePath, getStylesheets, getStylesheetsByLocation, getXslt, getXsltInputStream, setXslt
public static java.lang.String STYLESHEET_RESOURCE_DEFAULT
public java.lang.String prefix
public java.lang.String sourceUrl
public java.lang.String username
public MediawikiOutputModule(java.lang.String mediaWikiPagePrefix, java.lang.String sourceUrl)
public MediawikiOutputModule(java.lang.String sourceUrl)
public void setPrefix(java.lang.String prefix)
public void setUsername(java.lang.String username)
public void output(org.jdom.Document document, java.io.File exportFolder, IProgressMonitor progressMonitor)
IPublishOutputModule
Document
will be transformed into the output format defined by the implementing class.
The generated output file will be written to the given targetFolder.output
in interface IPublishOutputModule
output
in class PublishOutputModuleBase
document
- The Document
that will be used as input for this
modules publish process.exportFolder
- The folder, the generated output should be written to.public java.lang.String getOutputFileSuffix()
IPublishOutputModule
public java.io.InputStream getDefaultXsltInputStream()
getDefaultXsltInputStream
in class PublishOutputModuleBase
public static void main(java.lang.String[] args)
public java.lang.String generateFilenameWithDate(java.lang.String name)
PublishOutputModuleBase
generateFilenameWithDate
in class PublishOutputModuleBase
name
- a string.Copyright © 2007-2020 EDIT. All Rights Reserved.