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(com.fasterxml.jackson.core.JsonParser jp)
Builds and returns a POJO from the JSON object
|
protected static PropertyList |
readArrayProperty(com.fasterxml.jackson.core.JsonParser jp) |
protected static Document |
readDocument(com.fasterxml.jackson.core.JsonParser jp) |
protected static PropertyMap |
readObjectProperty(com.fasterxml.jackson.core.JsonParser jp) |
protected static void |
readProperties(com.fasterxml.jackson.core.JsonParser jp,
PropertyMap props) |
void |
write(com.fasterxml.jackson.core.JsonGenerator jg,
Object value)
Writes the POJO object to the JsonGenerator
|
public DocumentMarshaller()
public String getType()
JsonMarshallergetType in interface JsonMarshaller<Document>public Class<Document> getJavaType()
JsonMarshallergetJavaType in interface JsonMarshaller<Document>public Document read(com.fasterxml.jackson.core.JsonParser jp) throws IOException
JsonMarshallerread in interface JsonMarshaller<Document>IOExceptionprotected static Document readDocument(com.fasterxml.jackson.core.JsonParser jp) throws IOException
IOExceptionprotected static void readProperties(com.fasterxml.jackson.core.JsonParser jp, PropertyMap props) throws IOException
IOExceptionprotected static PropertyMap readObjectProperty(com.fasterxml.jackson.core.JsonParser jp) throws IOException
IOExceptionprotected static PropertyList readArrayProperty(com.fasterxml.jackson.core.JsonParser jp) throws IOException
IOExceptionpublic void write(com.fasterxml.jackson.core.JsonGenerator jg, Object value) throws IOException
JsonMarshallerwrite in interface JsonMarshaller<Document>IOExceptionCopyright © 2019 Nuxeo. All rights reserved.