public class DocumentMarshaller extends Object implements JsonMarshaller<Document>
Constructor and Description |
---|
DocumentMarshaller() |
Modifier and Type | Method and Description |
---|---|
Class<Document> |
getJavaType()
The marshalled java type
|
String |
getType()
The type name that appears in serialization
|
Document |
read(org.codehaus.jackson.JsonParser jp)
Builds and returns a POJO from the JSON object
|
void |
write(org.codehaus.jackson.JsonGenerator jg,
Document value)
Writes the POJO object to the JsonGenerator
|
public String getType()
JsonMarshaller
getType
in interface JsonMarshaller<Document>
public Class<Document> getJavaType()
JsonMarshaller
getJavaType
in interface JsonMarshaller<Document>
public Document read(org.codehaus.jackson.JsonParser jp) throws Exception
JsonMarshaller
read
in interface JsonMarshaller<Document>
Exception
public void write(org.codehaus.jackson.JsonGenerator jg, Document value) throws Exception
JsonMarshaller
write
in interface JsonMarshaller<Document>
Exception
Copyright © 2011 Nuxeo SA. All Rights Reserved.