public class OfmMeterModCodec extends OfJsonCodec<OfmMeterMod>
OfmMeterMod
objects.Modifier and Type | Field and Description |
---|---|
static String |
METER_MOD_COMMAND
JSON key for meter mod command
|
static String |
METER_MOD_ID
JSON key for meter mod ID
|
static String |
ROOT
JSON key for meter
|
static String |
ROOTS
JSON key for meters
|
VERSION
log, mapper, NO_DECODING_SUP, root, roots
Modifier | Constructor and Description |
---|---|
protected |
OfmMeterModCodec() |
Modifier and Type | Method and Description |
---|---|
OfmMeterMod |
decode(com.fasterxml.jackson.databind.node.ObjectNode meterNode)
Decodes the JSON into a typed POJO.
|
com.fasterxml.jackson.databind.node.ObjectNode |
encode(OfmMeterMod meterMod)
Encodes the given POJO to its JSON representation.
|
decode, decodeList, encode, encodeList, version
arrayNode, encodeIterator, encodeIterator, encodeList, fromEnums, isMissingContent, longVal, objectNode, read, root, roots, toEnums, write
public static final String ROOT
public static final String ROOTS
public static final String METER_MOD_ID
public static final String METER_MOD_COMMAND
public com.fasterxml.jackson.databind.node.ObjectNode encode(OfmMeterMod meterMod)
JsonCodec
meterMod
- POJO to encodepublic OfmMeterMod decode(com.fasterxml.jackson.databind.node.ObjectNode meterNode)
JsonCodec
meterNode
- JSON representation of the typed POJO. This does not have a
"top" rootCopyright © 2015. All Rights Reserved.