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(org.codehaus.jackson.JsonParser jp)
Builds and returns a POJO from the JSON object
|
void |
write(org.codehaus.jackson.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(org.codehaus.jackson.JsonParser jp) throws IOException
JsonMarshaller
read
in interface JsonMarshaller<T>
IOException
public void write(org.codehaus.jackson.JsonGenerator jg, Object value) throws IOException
JsonMarshaller
write
in interface JsonMarshaller<T>
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.