public final class XMLCoverageWriter
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static XMLElement |
createChild(XMLElement parent,
java.lang.String tagname,
java.lang.String name) |
Creates a child element with a name attribute.
|
static void |
writeBundle(IBundleCoverage bundle,
XMLElement element) |
Writes the structure of a given bundle.
|
static void |
writeCounters(ICoverageNode node,
XMLElement parent) |
Writes all non-zero counters of the given node.
|
public static XMLElement createChild(XMLElement parent, java.lang.String tagname, java.lang.String name) throws java.io.IOException
parent
- parent elementtagname
- name of the child tagname
- value of the name attributejava.io.IOException
- if XML can't be written to the underlying outputpublic static void writeBundle(IBundleCoverage bundle, XMLElement element) throws java.io.IOException
bundle
- bundle coverage dataelement
- container element for the bundle datajava.io.IOException
- if XML can't be written to the underlying outputpublic static void writeCounters(ICoverageNode node, XMLElement parent) throws java.io.IOException
node
- node to retrieve counters fromparent
- container for the counter elementsjava.io.IOException
- if XML can't be written to the underlying outputCopyright © 2018. All rights reserved.