public class BuildReport
extends java.lang.Object
Record
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_RECORD |
Modifier and Type | Method and Description |
---|---|
void |
addRecord(Record record)
Add a record into the build report.
|
Record |
findRecordFromReference(Reference reference)
Resolve a
Reference to a Record . |
void |
generateHTML(java.io.File htmlFile)
Generate the html file from the list of records
|
java.util.List<Record> |
getRecords()
Returns a immutable list of records being stored in this build report.
|
static BuildReport |
parse(java.io.InputStream inputStream)
Create a build report from an
InputStream . |
static BuildReport |
parse(java.io.InputStreamReader inputStreamReader)
Create a build report from an
InputStreamReader . |
void |
save(java.io.File outputFile,
java.lang.String encoding)
Save all records stored in this build report to a file.
|
void |
setRecordFilter(com.ibm.dbb.build.report.record.internal.IRecordFilter recordFilter)
Set a filter to determine which records should be included in the build report.
|
com.ibm.json.java.JSONObject |
toJSON()
Returns the build report in JSON format.
|
java.lang.String |
toString()
Returns the build report in String format.
|
public static final java.lang.String PROP_RECORD
public java.util.List<Record> getRecords()
public void setRecordFilter(com.ibm.dbb.build.report.record.internal.IRecordFilter recordFilter)
recordFilter
- the filter.public void addRecord(Record record)
record
- the record to be added.public void save(java.io.File outputFile, java.lang.String encoding) throws BuildException
outputFile
- the file to store the build report.encoding
- the encoding to use to store the build report.BuildException
- if an error occurs in saving the build report.public static BuildReport parse(java.io.InputStream inputStream) throws java.io.IOException
InputStream
.inputStream
- the contents of the build report.BuildReport
represents the contents.java.io.IOException
- if an error occurs in reading the contents.public static BuildReport parse(java.io.InputStreamReader inputStreamReader) throws java.io.IOException
InputStreamReader
.inputStreamReader
- the contents of the build report.BuildReport
represents the contents.java.io.IOException
- if an error occurs in reading the contents.public com.ibm.json.java.JSONObject toJSON()
public Record findRecordFromReference(Reference reference)
Reference
to a Record
.reference
- to be resolved.Record
that the reference is pointing to or
NULL
if no records could be found in this build report.public java.lang.String toString()
toString
in class java.lang.Object
String
that represents the build report.public void generateHTML(java.io.File htmlFile) throws BuildException, java.io.IOException, java.lang.Exception
htmlFile
- the file to write the html out toBuildException
java.io.IOException
java.lang.Exception
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.