IReportGroupVisitor
public class XMLGroupVisitor extends AbstractGroupVisitor
IReportGroupVisitor
that transforms the report
structure into XML elements.Modifier and Type | Field | Description |
---|---|---|
protected XMLElement |
element |
XML element of this group
|
total
Constructor | Description |
---|---|
XMLGroupVisitor(XMLElement element,
java.lang.String name) |
New handler for a group with the given name.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
handleBundle(IBundleCoverage bundle,
ISourceFileLocator locator) |
Called to handle the given bundle in a specific way.
|
protected void |
handleEnd() |
Called to handle the end of this group in a specific way.
|
protected AbstractGroupVisitor |
handleGroup(java.lang.String name) |
Called to handle a group with the given name in a specific way.
|
visitBundle, visitEnd, visitGroup
protected final XMLElement element
public XMLGroupVisitor(XMLElement element, java.lang.String name) throws java.io.IOException
element
- XML-Element representing this coverage node. The start tag
must not be closed yet to allow adding additional attributes.name
- name of the groupjava.io.IOException
- in case of problems with the underlying writerprotected void handleBundle(IBundleCoverage bundle, ISourceFileLocator locator) throws java.io.IOException
AbstractGroupVisitor
handleBundle
in class AbstractGroupVisitor
bundle
- analyzed bundlelocator
- source locatorjava.io.IOException
- if the report can't be writtenprotected AbstractGroupVisitor handleGroup(java.lang.String name) throws java.io.IOException
AbstractGroupVisitor
handleGroup
in class AbstractGroupVisitor
name
- name of the groupjava.io.IOException
- if the report can't be writtenprotected void handleEnd() throws java.io.IOException
AbstractGroupVisitor
handleEnd
in class AbstractGroupVisitor
java.io.IOException
- if the report can't be writtenCopyright © 2018. All rights reserved.