public class Rate extends JSONParsable
Constructor and Description |
---|
Rate()
Empty Constructor
|
Rate(javax.json.JsonObject jsonObject)
Json Parsable constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder)
Method that should set the objects property to Json representation.
|
java.lang.String |
getCode()
See property comment
|
java.lang.String |
getName()
See property comment
|
java.lang.Double |
getRate()
See property comment
|
void |
parseJson(javax.json.JsonObject o)
Method to read all properties from a JsonObject into this value object.
|
void |
setCode(java.lang.String code)
See property comment
|
void |
setName(java.lang.String name)
See property comment
|
void |
setRate(java.lang.Double rate)
See property comment
|
add, addB58, addNotRequired, addNotRequiredB58, getBoolean, getBooleanIfSet, getByteArrayFromB58, getByteArrayFromB58IfSet, getByteArrayFromB64, getByteArrayFromB64IfSet, getByteArrayFromHex, getByteArrayFromHexIfSet, getDate, getDateIfSet, getDouble, getDoubleIfSet, getInt, getIntIfSet, getJsonArray, getJsonArrayIfSet, getJsonObject, getJsonObjectIfSet, getLong, getLongIfSet, getString, getStringIfSet, toJson, toJsonAsString, toString
public Rate()
public Rate(javax.json.JsonObject jsonObject) throws javax.json.JsonException
jsonObject
- the json data to parse.javax.json.JsonException
- if problem occurred parsing.public java.lang.String getCode()
public void setCode(java.lang.String code)
code
- the rate's code field.public java.lang.String getName()
public void setName(java.lang.String name)
name
- the rate's name field.public java.lang.Double getRate()
public void setRate(java.lang.Double rate)
rate
- the rate's rate field.public void convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder) throws javax.json.JsonException
JSONParsable
convertToJson
in class JSONParsable
jsonObjectBuilder
- the json object build to use to set key/values in jsonjavax.json.JsonException
- if problems occurred converting object to JSON.public void parseJson(javax.json.JsonObject o) throws javax.json.JsonException
JSONParsable
parseJson
in class JSONParsable
o
- the json object to read key and values from and set object properties.javax.json.JsonException
- if problems occurred converting object from JSON.