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 Exception
JsonMarshallerread in interface JsonMarshaller<T>Exceptionpublic void write(org.codehaus.jackson.JsonGenerator jg,
         Object value)
           throws Exception
JsonMarshallerwrite in interface JsonMarshaller<T>ExceptionCopyright © 2014 Nuxeo SA. All rights reserved.