public class Resources
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
GREENBAR |
The name of the green part of the coverage bar
|
static java.lang.String |
PRETTIFY_SCRIPT |
The name of the prettify script
|
static java.lang.String |
PRETTIFY_STYLESHEET |
The name of the prettify style sheet
|
static java.lang.String |
REDBAR |
The name of the red part of the coverage bar
|
static java.lang.String |
SORT_SCRIPT |
The name of the sort script
|
static java.lang.String |
STYLESHEET |
The name of the style sheet
|
Constructor | Description |
---|---|
Resources(ReportOutputFolder root) |
Attaches resources to the report with the given root folder.
|
Modifier and Type | Method | Description |
---|---|---|
void |
copyResources() |
Copies all static resources into the report.
|
static java.lang.String |
getElementStyle(ICoverageNode.ElementType type) |
Determines the style sheet class for the given element type.
|
java.lang.String |
getLink(ReportOutputFolder base,
java.lang.String name) |
Returns a relative link to a static resource.
|
public static final java.lang.String STYLESHEET
public static final java.lang.String PRETTIFY_STYLESHEET
public static final java.lang.String PRETTIFY_SCRIPT
public static final java.lang.String SORT_SCRIPT
public static final java.lang.String REDBAR
public static final java.lang.String GREENBAR
public Resources(ReportOutputFolder root)
root
- root folder of the reportpublic java.lang.String getLink(ReportOutputFolder base, java.lang.String name)
base
- base folder from where the link should be createdname
- name of the static resource, see constants in this classpublic static java.lang.String getElementStyle(ICoverageNode.ElementType type)
type
- type of the elementpublic void copyResources() throws java.io.IOException
java.io.IOException
- if the resources can't be written to the reportCopyright © 2018. All rights reserved.