public interface DocumentRenderer
document rendering context| Modifier and Type | Method and Description |
|---|---|
String |
getOutputName()
Deprecated.
Method name does not properly reflect its purpose. Implement and use
getOutputPath() instead. |
default String |
getOutputPath()
The output path of the 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.
|
void renderDocument(Writer writer, SiteRenderer siteRenderer, SiteRenderingContext siteRenderingContext) throws IOException, RendererException
writer - the Writer for the document output.siteRenderer - the site renderer to merge document content to.siteRenderingContext - the site rendering context.RendererException - if it bombs.IOException - if it bombs.default String getOutputPath()
Note: This method won't be default anymore when getOutputName() is removed.
You are advised to implement it as soon as possible.
@Deprecated String getOutputName()
getOutputPath() instead.DocumentRenderingContext getRenderingContext()
boolean isOverwrite()
boolean isExternalReport()
true if report is external, otherwise falseCopyright © 2005–2024 The Apache Software Foundation. All rights reserved.