public class PojoMarshaller<T> extends Object implements JsonMarshaller<T>
EntityType annotation.| 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
|
public static <T> PojoMarshaller<T> forClass(Class<T> type)
public String getType()
JsonMarshallergetType in interface JsonMarshaller<T>public Class<T> getJavaType()
JsonMarshallergetJavaType in interface JsonMarshaller<T>public T read(org.codehaus.jackson.JsonParser jp) throws IOException
JsonMarshallerread in interface JsonMarshaller<T>IOExceptionpublic void write(org.codehaus.jackson.JsonGenerator jg,
Object value)
throws IOException
JsonMarshallerwrite in interface JsonMarshaller<T>IOExceptionCopyright © 2015 Nuxeo SA. All rights reserved.