public abstract class Jsonable<T extends org.ebay.datameta.dom.DataMetaEntity> extends Object
| Constructor and Description |
|---|
Jsonable() |
| Modifier and Type | Method and Description |
|---|---|
T |
read(com.fasterxml.jackson.core.JsonParser source)
Delegates to
read(JsonParser, boolean) with the last parameter set to true. |
abstract T |
read(com.fasterxml.jackson.core.JsonParser source,
boolean ignoreUnknown)
Creates a new instance of `T` and delegates to `read(source: JsonParser, into: T): T`.
|
T |
readInto(com.fasterxml.jackson.core.JsonParser source,
T target)
Delegates to
readInto(JsonParser, DataMetaEntity, boolean) with the last parameter true. |
abstract T |
readInto(com.fasterxml.jackson.core.JsonParser source,
T target,
boolean ignoreUnknown)
Reads into the given object.
|
abstract void |
write(com.fasterxml.jackson.core.JsonGenerator target,
T value)
Implementation to write just the object's insides.
|
void |
writeField(String fieldName,
com.fasterxml.jackson.core.JsonGenerator target,
T value)
Wraps the `write(target: JsonGenerator, value: T)` method to add the object field start and the end in
proper places.
|
public void writeField(String fieldName, com.fasterxml.jackson.core.JsonGenerator target, T value) throws IOException
IOExceptionpublic abstract void write(com.fasterxml.jackson.core.JsonGenerator target,
T value)
throws IOException
IOExceptionpublic abstract T readInto(com.fasterxml.jackson.core.JsonParser source, T target, boolean ignoreUnknown) throws IOException
IOExceptionpublic T readInto(com.fasterxml.jackson.core.JsonParser source, T target) throws IOException
readInto(JsonParser, DataMetaEntity, boolean) with the last parameter true.IOExceptionpublic abstract T read(com.fasterxml.jackson.core.JsonParser source, boolean ignoreUnknown) throws IOException
IOExceptionpublic T read(com.fasterxml.jackson.core.JsonParser source) throws IOException
read(JsonParser, boolean) with the last parameter set to true.IOExceptionCopyright © 2018. All rights reserved.