public interface DocumentRenderer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ROLE
Plexus lookup role.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOutputExtension()
Get the output extension associated with this DocumentRenderer.
|
org.apache.maven.doxia.document.DocumentModel |
readDocumentModel(java.io.File documentDescriptor)
Read a document model from a file.
|
void |
render(java.util.Collection<java.lang.String> files,
java.io.File outputDirectory,
org.apache.maven.doxia.document.DocumentModel documentModel)
Render a document from a set of files, depending on a rendering context.
|
void |
render(java.io.File baseDirectory,
java.io.File outputDirectory,
org.apache.maven.doxia.document.DocumentModel documentModel)
Render a document from the files found in a source directory, depending on a rendering context.
|
void render(java.util.Collection<java.lang.String> files,
java.io.File outputDirectory,
org.apache.maven.doxia.document.DocumentModel documentModel)
throws DocumentRendererException,
java.io.IOException
files - the path name Strings (relative to a common base directory)
of files to include in the document generation.outputDirectory - the output directory where the document should be generated.documentModel - the document model, containing all the metadata, etc.
If the model contains a TOC, only the files found in this TOC are rendered,
otherwise all files from the Collection of files will be processed.
If the model is null, render all files individually.DocumentRendererException - if any.java.io.IOException - if any.void render(java.io.File baseDirectory,
java.io.File outputDirectory,
org.apache.maven.doxia.document.DocumentModel documentModel)
throws DocumentRendererException,
java.io.IOException
baseDirectory - the directory containing the source files.
This should follow the standard Maven convention, ie containing all the site modules.outputDirectory - the output directory where the document should be generated.documentModel - the document model, containing all the metadata, etc.
If the model contains a TOC, only the files found in this TOC are rendered,
otherwise all files found under baseDirectory will be processed.
If the model is null, render all files from baseDirectory individually.DocumentRendererException - if anyjava.io.IOException - if any
// * @deprecated since 1.1.2, use #render(File, File, DocumentModel, DocumentRendererContext)org.apache.maven.doxia.document.DocumentModel readDocumentModel(java.io.File documentDescriptor)
throws DocumentRendererException,
java.io.IOException
documentDescriptor - a document descriptor file that contains the document model.DocumentRendererException - if anyjava.io.IOException - if anyjava.lang.String getOutputExtension()