com.ibm.dbb.build.report.records

Class BuildResultRecord



  • public class BuildResultRecord
    extends Record
    Record to store information about a build result
    • Constructor Summary

      Constructors 
      Constructor and Description
      BuildResultRecord()
      Construct a record with a default ID
      BuildResultRecord(java.lang.String id)
      Construct a record with the supplied ID.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getGroup()
      Return the group containing the build result
      java.lang.String getLabel()
      Return the label of the build result
      java.lang.String getUrl()
      Return the URL to the build result
      BuildResultRecord parse(com.ibm.json.java.JSONObject jsonObj)
      Create the record from JSON.
      void setGroup(java.lang.String group)
      Set the group containing the build result
      void setLabel(java.lang.String label)
      Set the build result label
      void setUrl(java.lang.String url)
      Set the build result URL
      com.ibm.json.java.JSONObject toJSON()
      Returns the record in JSON format.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BuildResultRecord

        public BuildResultRecord()
        Construct a record with a default ID
      • BuildResultRecord

        public BuildResultRecord(java.lang.String id)
        Construct a record with the supplied ID.
        Parameters:
        id - the id of the record.
    • Method Detail

      • toJSON

        public com.ibm.json.java.JSONObject toJSON()
        Returns the record in JSON format.
        Overrides:
        toJSON in class Record
        Returns:
        the JSON format of this record.
      • parse

        public BuildResultRecord parse(com.ibm.json.java.JSONObject jsonObj)
                                throws ParseException
        Create the record from JSON.
        Overrides:
        parse in class Record
        Parameters:
        jsonObj - The object in JSON to be parsed.
        Returns:
        the record representing by the supplied JSON contents.
        Throws:
        ParseException
      • getGroup

        public java.lang.String getGroup()
        Return the group containing the build result
        Returns:
        the group
      • getLabel

        public java.lang.String getLabel()
        Return the label of the build result
        Returns:
        the label of the build result
      • getUrl

        public java.lang.String getUrl()
        Return the URL to the build result
        Returns:
        the URL to the build result
      • setGroup

        public void setGroup(java.lang.String group)
        Set the group containing the build result
        Parameters:
        group - the group
      • setLabel

        public void setLabel(java.lang.String label)
        Set the build result label
        Parameters:
        label - the build result label
      • setUrl

        public void setUrl(java.lang.String url)
        Set the build result URL
        Parameters:
        url - the build result URL

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