Interface DocumentRenderer
-
- All Known Implementing Classes:
DoxiaDocumentRenderer
public interface DocumentRendererRenders a page in a site, whatever the source is: a Doxia source file, a report or anything else.- Author:
- Brett Porter
- See Also:
document rendering context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetOutputName()Deprecated.Method name does not properly reflect its purpose.default java.lang.StringgetOutputPath()The output path of the document.DocumentRenderingContextgetRenderingContext()Return the rendering context of the document.booleanisExternalReport()Whether this document is an external report, independent from the site templating.booleanisOverwrite()Whether to always overwrite the document, or only do so when it is changed.voidrenderDocument(java.io.Writer writer, SiteRenderer siteRenderer, SiteRenderingContext siteRenderingContext)Render a document in a site.
-
-
-
Method Detail
-
renderDocument
void renderDocument(java.io.Writer writer, SiteRenderer siteRenderer, SiteRenderingContext siteRenderingContext) throws java.io.IOException, RendererExceptionRender a document in a site.- Parameters:
writer- the Writer for the document output.siteRenderer- the site renderer to merge document content to.siteRenderingContext- the site rendering context.- Throws:
RendererException- if it bombs.java.io.IOException- if it bombs.
-
getOutputPath
default java.lang.String getOutputPath()
The output path of the document.Note: This method won't be
defaultanymore whengetOutputName()is removed. You are advised to implement it as soon as possible.- Returns:
- the name of the output document.
- Since:
- 2.0.0
-
getOutputName
@Deprecated java.lang.String getOutputName()
Deprecated.Method name does not properly reflect its purpose. Implement and usegetOutputPath()instead.
-
getRenderingContext
DocumentRenderingContext getRenderingContext()
Return the rendering context of the document.- Returns:
- DocumentRenderingContext.
-
isOverwrite
boolean isOverwrite()
Whether to always overwrite the document, or only do so when it is changed.- Returns:
- whether to overwrite
-
isExternalReport
boolean isExternalReport()
Whether this document is an external report, independent from the site templating.- Returns:
trueif report is external, otherwisefalse- Since:
- 1.7
-
-