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