public class DoxiaDocumentRenderer extends Object implements DocumentRenderer
DocumentRenderingContext, which is expected to have
a non-null parserId and extension.| Constructor and Description |
|---|
DoxiaDocumentRenderer(DocumentRenderingContext docRenderingContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getOutputName()
The name of the output document.
|
DocumentRenderingContext |
getRenderingContext()
Return the rendering context of the document.
|
boolean |
isExternalReport()
Whether this document is an external report, independent from the site templating.
|
boolean |
isOverwrite()
Whether to always overwrite the document, or only do so when it is changed.
|
void |
renderDocument(Writer writer,
SiteRenderer siteRenderer,
SiteRenderingContext siteRenderingContext)
Render a document in a site.
|
public DoxiaDocumentRenderer(DocumentRenderingContext docRenderingContext)
docRenderingContext - the document's rendering context to use.public void renderDocument(Writer writer, SiteRenderer siteRenderer, SiteRenderingContext siteRenderingContext) throws IOException, RendererException
renderDocument in interface DocumentRendererwriter - the Writer for the document output.siteRenderer - the site renderer to merge document content to.siteRenderingContext - the site rendering context.IOException - if it bombs.RendererException - if it bombs.public String getOutputName()
getOutputName in interface DocumentRendererpublic DocumentRenderingContext getRenderingContext()
getRenderingContext in interface DocumentRendererpublic boolean isOverwrite()
isOverwrite in interface DocumentRendererpublic boolean isExternalReport()
DocumentRendererisExternalReport in interface DocumentRenderertrue if report is external, otherwise falseCopyright © 2005–2023 The Apache Software Foundation. All rights reserved.