Package com.ibm.dbb.build.report.records
Class Reference
- java.lang.Object
-
- com.ibm.dbb.build.report.records.Record
-
- com.ibm.dbb.build.report.records.Reference
-
public class Reference extends Record
The Reference is a special type of Record that does not contain any information. It only contains ID and type of the reference of the actual record.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_REF_ID
static java.lang.String
PROP_REF_TYPE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRefId()
Return the ID of the actual record that this reference is referring to.java.lang.String
getRefType()
Return the type of the actual record that this reference is referring to.Record
parse(com.google.gson.JsonObject jsonObj)
Create the record from JSON.void
setRefId(java.lang.String refId)
Set the ID of the actual record that this reference is referring to.void
setRefType(java.lang.String refType)
Set the type of the actual record that this reference is referring to.com.google.gson.JsonObject
toJSON()
Returns the record in JSON format.
-
-
-
Field Detail
-
PROP_REF_TYPE
public static final java.lang.String PROP_REF_TYPE
- See Also:
- Constant Field Values
-
PROP_REF_ID
public static final java.lang.String PROP_REF_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRefId
public java.lang.String getRefId()
Return the ID of the actual record that this reference is referring to.- Returns:
- the ID of the actual record.
-
setRefId
public void setRefId(java.lang.String refId)
Set the ID of the actual record that this reference is referring to.- Parameters:
refId
- the ID of the actual record.
-
getRefType
public java.lang.String getRefType()
Return the type of the actual record that this reference is referring to.- Returns:
- the type of the actual record.
-
setRefType
public void setRefType(java.lang.String refType)
Set the type of the actual record that this reference is referring to.- Parameters:
refType
- the type of the actual record.
-
toJSON
public com.google.gson.JsonObject toJSON()
Returns the record in JSON format.
-
-