com.ibm.dbb.build.report.records

Class Record

  • java.lang.Object
    • com.ibm.dbb.build.report.records.Record
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      java.lang.String id 
      static java.lang.String PROP_ID 
      static java.lang.String PROP_TYPE 
      java.lang.String type 
    • Constructor Summary

      Constructors 
      Constructor and Description
      Record(java.lang.String type)
      Construct a record with a default ID
      Record(java.lang.String id, java.lang.String type)
      Construct a record from an ID and type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getId()
      Return the ID of the record.
      java.lang.String getType()
      Return the type of the record.
      Record parse(com.ibm.json.java.JSONObject jsonObj)
      Create the record from JSON.
      void setId(java.lang.String id)
      Set the ID of the record.
      void setType(java.lang.String type)
      Set the type of the record.
      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
    • Field Detail

      • id

        public java.lang.String id
      • type

        public java.lang.String type
    • Constructor Detail

      • Record

        public Record(java.lang.String type)
        Construct a record with a default ID
        Parameters:
        type - the type of record to be created
      • Record

        public Record(java.lang.String id,
                      java.lang.String type)
        Construct a record from an ID and type.
        Parameters:
        id - the id.
        type - the type.
    • Method Detail

      • getId

        public java.lang.String getId()
        Return the ID of the record.
        Returns:
        the ID of the record.
      • setId

        public void setId(java.lang.String id)
        Set the ID of the record.
        Parameters:
        id - the ID of the record.
      • getType

        public java.lang.String getType()
        Return the type of the record.
        Returns:
        the type of the record.
      • setType

        public void setType(java.lang.String type)
        Set the type of the record.
        Parameters:
        type - the type of the record.
      • toJSON

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

        public Record parse(com.ibm.json.java.JSONObject jsonObj)
        Create the record from JSON.
        Parameters:
        jsonObj - The object in JSON to be parsed.
        Returns:
        the record representing by the supplied JSON contents.

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