public class MultiReportVisitor extends Object implements IReportVisitor
| Constructor and Description |
|---|
MultiReportVisitor(List<IReportVisitor> visitors)
New visitor delegating to all given visitors.
|
| Modifier and Type | Method and 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(String name)
Called to add a new group to the report.
|
void |
visitInfo(List<SessionInfo> sessionInfos,
Collection<ExecutionData> executionData)
Initializes the report with global information.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitBundle, visitGrouppublic MultiReportVisitor(List<IReportVisitor> visitors)
visitors - visitors to delegate topublic void visitInfo(List<SessionInfo> sessionInfos, Collection<ExecutionData> executionData) throws 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 reportIOException - in case of IO problems with the report writerpublic void visitEnd()
throws IOException
IReportVisitorvisitEnd in interface IReportVisitorIOException - in case of IO problems with the report writerpublic void visitBundle(IBundleCoverage bundle, ISourceFileLocator locator) throws IOException
IReportGroupVisitorvisitBundle in interface IReportGroupVisitorbundle - a bundle to include in the reportlocator - source locator for this bundleIOException - in case of IO problems with the report writerpublic IReportGroupVisitor visitGroup(String name) throws 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 groupIOException - in case of IO problems with the report writerCopyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.