public final class SimpleListResponseMapper extends JsonMapper<SimpleListResponse>
| Constructor and Description |
|---|
SimpleListResponseMapper() |
| Modifier and Type | Method and Description |
|---|---|
SimpleListResponse |
parse(com.fasterxml.jackson.core.JsonParser jsonParser)
Parse an object from a pre-configured JsonParser object.
|
void |
parseField(SimpleListResponse instance,
java.lang.String fieldName,
com.fasterxml.jackson.core.JsonParser jsonParser)
Parse a single field from a pre-configured JsonParser object into a T instance.
|
java.lang.String |
serialize(java.util.List list)
Serialize a list of objects to a JSON String.
|
void |
serialize(java.util.List list,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator)
Serialize a list of objects to a JsonGenerator.
|
void |
serialize(java.util.List object,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
boolean writeStartAndEnd) |
void |
serialize(SimpleListResponse object,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
boolean writeStartAndEnd)
Serialize an object to a pre-configured JsonGenerator object.
|
public SimpleListResponse parse(com.fasterxml.jackson.core.JsonParser jsonParser) throws java.io.IOException
JsonMapperparse in class JsonMapper<SimpleListResponse>jsonParser - The pre-configured JsonParserjava.io.IOExceptionpublic void parseField(SimpleListResponse instance, java.lang.String fieldName, com.fasterxml.jackson.core.JsonParser jsonParser) throws java.io.IOException
JsonMapperparseField in class JsonMapper<SimpleListResponse>instance - The instance of the object that the JsonParser should parse intofieldName - The name of the field that should be parsedjsonParser - The pre-configured JsonParserjava.io.IOExceptionpublic void serialize(SimpleListResponse object, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws java.io.IOException
JsonMapperserialize in class JsonMapper<SimpleListResponse>object - The object to serialize.jsonGenerator - The pre-configured JsonGenerator being written to.writeStartAndEnd - True if writeStartObject() should be called before and writeEndObject() should be called after serializing. False if not.java.io.IOExceptionpublic void serialize(java.util.List object,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
boolean writeStartAndEnd)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String serialize(java.util.List list)
throws java.io.IOException
JsonMapperserialize in class JsonMapper<SimpleListResponse>list - The list of objects to serialize.java.io.IOExceptionpublic void serialize(java.util.List list,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator)
throws java.io.IOException
serialize in class JsonMapper<SimpleListResponse>list - The list of objects to serialize.jsonGenerator - The JsonGenerator to which the list should be serializedjava.io.IOException