Package org.opencms.report.wrapper
Class CmsReportWrapper
java.lang.Object
org.opencms.report.wrapper.CmsReportWrapper
Wrapper for writing reports.
It allows to write the same messages to multiple reports and has high-level interface for writing.
- Since:
- 12.0.0
- Version:
- $Revision: 1.0 $
- Author:
- Daniel Seidel
-
Constructor Summary
ConstructorsConstructorDescriptionCmsReportWrapper(I_CmsMessageBundle messages, Collection<I_CmsReport> reports) Constructor for the wrapper.CmsReportWrapper(I_CmsMessageBundle messages, I_CmsReport... report) Constructor for the wrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoidreportAddWarning(Object warning) Adds a warning to the report (invisible in the GUI).voidreportDefault(String message, Object... params) Print a message in default style.voidreportDefaultNoBreak(String message, Object... params) Print a message in default style without linebreak.voidreportFailed(boolean withDots) Report failed.voidreportFailed(String message, Object... params) Report failed.voidreportHeadline(String message, Object... params) Print a message as headline.voidreportHeadlineNoBreak(String message, Object... params) Print a message as headline.voidPrints an empty line.voidreportNote(String message, Object... params) Print a message as note.voidreportNoteNoBreak(String message, Object... params) Print a message as note without linebreak.voidreportOk(boolean withDots) Report ok.voidReport ok.voidreportSkipped(boolean withDots) Report ok.voidreportSkipped(String message, Object... params) Report skipped.voidreportWarning(String message, Object... params) Print a message in warning style.voidreportWarningNoBreak(String message, Object... params) Print a message in warning style.
-
Constructor Details
-
CmsReportWrapper
Constructor for the wrapper.- Parameters:
messages- the message bundle to read the printed messages from.reports- the reports to write to.
-
CmsReportWrapper
Constructor for the wrapper.- Parameters:
messages- the message bundle to read the printed messages from.report- a sequence of reports to write the messages to.
-
-
Method Details
-
reportAddWarning
Adds a warning to the report (invisible in the GUI).- Parameters:
warning- the warning to add.
-
reportDefault
Print a message in default style.- Parameters:
message- the messageparams- the parameters
-
reportDefaultNoBreak
Print a message in default style without linebreak.- Parameters:
message- the messageparams- the parameters
-
reportFailed
Report failed.- Parameters:
withDots- with dots or only the word.
-
reportFailed
Report failed.- Parameters:
message- the message to printparams- parameters of the message
-
reportHeadline
Print a message as headline.- Parameters:
message- the messageparams- the parameters
-
reportHeadlineNoBreak
Print a message as headline.- Parameters:
message- the messageparams- the parameters
-
reportNewline
Prints an empty line. -
reportNote
Print a message as note.- Parameters:
message- the messageparams- the parameters
-
reportNoteNoBreak
Print a message as note without linebreak.- Parameters:
message- the messageparams- the parameters
-
reportOk
Report ok.- Parameters:
withDots- with dots or only the word.
-
reportOk
Report ok.- Parameters:
message- the message to printparams- parameters of the message
-
reportSkipped
Report ok.- Parameters:
withDots- with dots or only the word.
-
reportSkipped
Report skipped.- Parameters:
message- the message to printparams- parameters of the message
-
reportWarning
Print a message in warning style.- Parameters:
message- the messageparams- the parameters
-
reportWarningNoBreak
Print a message in warning style.- Parameters:
message- the messageparams- the parameters
-