com.ibm.dbb.build.report

Class BuildReport

  • java.lang.Object
    • com.ibm.dbb.build.report.BuildReport
  • Direct Known Subclasses:
    NoopBuildReport


    public class BuildReport
    extends java.lang.Object
    The build report contains a list of Record
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String PROP_RECORD 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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.
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getRecords

        public java.util.List<Record> getRecords()
        Returns a immutable list of records being stored in this build report.
        Returns:
        the list of records.
      • setRecordFilter

        public 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.
        Parameters:
        recordFilter - the filter.
      • addRecord

        public void addRecord(Record record)
        Add a record into the build report.
        Parameters:
        record - the record to be added.
      • save

        public void save(java.io.File outputFile,
                         java.lang.String encoding)
                  throws BuildException
        Save all records stored in this build report to a file.
        Parameters:
        outputFile - the file to store the build report.
        encoding - the encoding to use to store the build report.
        Throws:
        BuildException - if an error occurs in saving the build report.
      • parse

        public static BuildReport parse(java.io.InputStream inputStream)
                                 throws java.io.IOException
        Create a build report from an InputStream.
        Parameters:
        inputStream - the contents of the build report.
        Returns:
        the BuildReport represents the contents.
        Throws:
        java.io.IOException - if an error occurs in reading the contents.
      • parse

        public static BuildReport parse(java.io.InputStreamReader inputStreamReader)
                                 throws java.io.IOException
        Create a build report from an InputStreamReader.
        Parameters:
        inputStreamReader - the contents of the build report.
        Returns:
        the BuildReport represents the contents.
        Throws:
        java.io.IOException - if an error occurs in reading the contents.
      • toJSON

        public com.ibm.json.java.JSONObject toJSON()
        Returns the build report in JSON format.
        Returns:
        JSONObject that represents the build report.
      • findRecordFromReference

        public Record findRecordFromReference(Reference reference)
        Resolve a Reference to a Record.
        Parameters:
        reference - to be resolved.
        Returns:
        Record that the reference is pointing to or NULL if no records could be found in this build report.
      • toString

        public java.lang.String toString()
        Returns the build report in String format.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String that represents the build report.

<IBM Copyright © 2018 IBM Corp. All Rights Reserved.