IReportGroupVisitor, IReportVisitorpublic class MultiReportVisitor extends java.lang.Object implements IReportVisitor
| Constructor | Description |
|---|---|
MultiReportVisitor(java.util.List<IReportVisitor> visitors) |
New visitor delegating to all given visitors.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
visitBundle(IBundleCoverage bundle,
ISourceFileLocator locator) |
Called to add a bundle to the the report.
|
void |
visitEnd() |
Has to be called after all report data has been emitted.
|
IReportGroupVisitor |
visitGroup(java.lang.String name) |
Called to add a new group to the report.
|
void |
visitInfo(java.util.List<SessionInfo> sessionInfos,
java.util.Collection<ExecutionData> executionData) |
Initializes the report with global information.
|
visitBundle, visitGrouppublic MultiReportVisitor(java.util.List<IReportVisitor> visitors)
visitors - visitors to delegate topublic void visitInfo(java.util.List<SessionInfo> sessionInfos, java.util.Collection<ExecutionData> executionData) throws java.io.IOException
IReportVisitorvisitInfo in interface IReportVisitorsessionInfos - list of chronological ordered SessionInfo objects
where execution data has been collected for this report.executionData - collection of all ExecutionData objects that are
considered for this reportjava.io.IOException - in case of IO problems with the report writerpublic void visitEnd()
throws java.io.IOException
IReportVisitorvisitEnd in interface IReportVisitorjava.io.IOException - in case of IO problems with the report writerpublic void visitBundle(IBundleCoverage bundle, ISourceFileLocator locator) throws java.io.IOException
IReportGroupVisitorvisitBundle in interface IReportGroupVisitorbundle - a bundle to include in the reportlocator - source locator for this bundlejava.io.IOException - in case of IO problems with the report writerpublic IReportGroupVisitor visitGroup(java.lang.String name) throws java.io.IOException
IReportGroupVisitorIReportGroupVisitor instance can be used to add nested bundles or
groups. The content of the group has to be completed before this or any
parent visitor can be used again ("deep first").visitGroup in interface IReportGroupVisitorname - name of the groupjava.io.IOException - in case of IO problems with the report writerCopyright © 2018. All rights reserved.