Package com.ibm.dbb.build.report.records
Class PropertiesRecord
- java.lang.Object
-
- com.ibm.dbb.build.report.records.Record
-
- com.ibm.dbb.build.report.records.PropertiesRecord
-
public class PropertiesRecord extends Record
A basic record containing a list of name,value pairs
-
-
Constructor Summary
Constructors Constructor Description PropertiesRecord()
Construct a record with a default IDPropertiesRecord(java.lang.String id)
Create a PropertiesRecord with a specific ID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(java.lang.String name, java.lang.String value)
Add a name,value pair to the recordjava.util.Map<java.lang.String,java.lang.String>
getProperties()
Return a list of properties in this recordjava.lang.String
getProperty(java.lang.String name)
Return the value of the property stored in this recordRecord
parse(com.google.gson.JsonObject jsonObj)
Create the record from JSON.com.google.gson.JsonObject
toJSON()
Returns the record in JSON format.
-
-
-
Field Detail
-
PROP_PROPERTIES
public static final java.lang.String PROP_PROPERTIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
addProperty
public void addProperty(java.lang.String name, java.lang.String value)
Add a name,value pair to the record- Parameters:
name
- name of the propertyvalue
- value of the property
-
getProperty
public java.lang.String getProperty(java.lang.String name)
Return the value of the property stored in this record- Parameters:
name
- the name of the property to be retrieved- Returns:
- the value of the property
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
Return a list of properties in this record- Returns:
- the list of properties in this record
-
toJSON
public com.google.gson.JsonObject toJSON()
Returns the record in JSON format.
-
-