public class Document extends Object implements ReportDocument
| Modifier and Type | Field and Description |
|---|---|
private List<String> |
cacheLines
Transformed lines prepared to print out, for example PlantUml lines
|
private boolean |
checkAllLineProcessors
If the
Printable.checkAllLineProcessors() is 'false', only the first applicable
LineProcessor
will be processed. |
private int |
fileNumber
One report may have more files, for example application.0.log.expanded, application.1.log.expanded and so on.
|
private Consumer<ReportDocument> |
footerMethod
This method will be called as the last method before closing of a
Document file |
private Set<NodeFile> |
nodeFiles
|
private PrintWriter |
printWriter
Writer of the report document |
private Report |
report
|
private Class<? extends ReportDocumentType> |
reportDocumentType
A
ReportDocumentType of this Document |
| Constructor and Description |
|---|
Document() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAllLineProcessors() |
List<String> |
getCacheLines() |
Consumer<ReportDocument> |
getFooterMethod() |
Set<NodeFile> |
getNodeFiles() |
PrintWriter |
getPrintWriter() |
Report |
getReport() |
Class<? extends ReportDocumentType> |
getReportDocumentType() |
void |
setCacheLines(List<String> cacheLines) |
void |
setCheckAllLineProcessors(boolean checkAllLineProcessors) |
void |
setFooterMethod(Consumer<ReportDocument> footerMethod) |
void |
setNodeFiles(Set<NodeFile> nodeFiles) |
void |
setPrintWriter(PrintWriter printWriter) |
void |
setReport(Report report) |
void |
setReportDocumentType(Class<? extends ReportDocumentType> reportDocumentType) |
String |
toString() |
private PrintWriter printWriter
Writer of the report documentprivate int fileNumber
private Consumer<ReportDocument> footerMethod
Document fileprivate List<String> cacheLines
private Class<? extends ReportDocumentType> reportDocumentType
ReportDocumentType of this Documentprivate boolean checkAllLineProcessors
Printable.checkAllLineProcessors() is 'false', only the first applicable
LineProcessor
will be processed. Else all applicable line processors will be processed.public Document()
public PrintWriter getPrintWriter()
getPrintWriter in interface Printablepublic void setPrintWriter(PrintWriter printWriter)
printWriter - see the printWriter fieldpublic Consumer<ReportDocument> getFooterMethod()
getFooterMethod in interface ReportDocumentfooterMethod fieldpublic void setFooterMethod(Consumer<ReportDocument> footerMethod)
footerMethod - see the footerMethod fieldpublic List<String> getCacheLines()
getCacheLines in interface Printablepublic void setCacheLines(List<String> cacheLines)
cacheLines - see the cacheLines fieldpublic Class<? extends ReportDocumentType> getReportDocumentType()
getReportDocumentType in interface ReportDocumentreportDocumentType field value.public void setReportDocumentType(Class<? extends ReportDocumentType> reportDocumentType)
reportDocumentType - see the reportDocumentType field description.public Set<NodeFile> getNodeFiles()
getNodeFiles in interface ReportDocumentnodeFiles field value.public void setNodeFiles(Set<NodeFile> nodeFiles)
nodeFiles - see the nodeFiles fieldpublic Report getReport()
getReport in interface ReportDocumentreport field value.public void setReport(Report report)
setReport in interface ReportDocumentreport - see the report field description.public boolean checkAllLineProcessors()
checkAllLineProcessors in interface PrintablecheckAllLineProcessors field value.public void setCheckAllLineProcessors(boolean checkAllLineProcessors)
checkAllLineProcessors - see the checkAllLineProcessors field description.Copyright © 2023. All rights reserved.