public class Reference extends Record
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_REF_ID |
static java.lang.String |
PROP_REF_TYPE |
Constructor and Description |
---|
Reference()
Construct a record with a default ID
|
Reference(java.lang.String id)
Construct a reference with a specific ID.
|
Modifier and Type | Method and 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.ibm.json.java.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.ibm.json.java.JSONObject |
toJSON()
Returns the record in JSON format.
|
public static final java.lang.String PROP_REF_TYPE
public static final java.lang.String PROP_REF_ID
public Reference()
public Reference(java.lang.String id)
id
- the ID of the reference.public java.lang.String getRefId()
public void setRefId(java.lang.String refId)
refId
- the ID of the actual record.public java.lang.String getRefType()
public void setRefType(java.lang.String refType)
refType
- the type of the actual record.public com.ibm.json.java.JSONObject toJSON()
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.