public class PojoMarshaller<T> extends Object implements JsonMarshaller<T>
EntityType
annotation.Modifier and Type | Field and Description |
---|---|
protected String |
entityTypeName |
Constructor and Description |
---|
PojoMarshaller(Class<T> type) |
Modifier and Type | Method and Description |
---|---|
static <T> PojoMarshaller<T> |
forClass(Class<T> type) |
Class<T> |
getJavaType()
The marshalled java type
|
String |
getType()
The type name that appears in serialization
|
T |
read(com.fasterxml.jackson.core.JsonParser jp)
Builds and returns a POJO from the JSON object
|
void |
write(com.fasterxml.jackson.core.JsonGenerator jg,
Object value)
Writes the POJO object to the JsonGenerator
|
protected String entityTypeName
public PojoMarshaller(Class<T> type)
public static <T> PojoMarshaller<T> forClass(Class<T> type)
public String getType()
JsonMarshaller
getType
in interface JsonMarshaller<T>
public Class<T> getJavaType()
JsonMarshaller
getJavaType
in interface JsonMarshaller<T>
public T read(com.fasterxml.jackson.core.JsonParser jp) throws IOException
JsonMarshaller
read
in interface JsonMarshaller<T>
IOException
public void write(com.fasterxml.jackson.core.JsonGenerator jg, Object value) throws IOException
JsonMarshaller
write
in interface JsonMarshaller<T>
IOException
Copyright © 2018 Nuxeo. All rights reserved.