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
|
protected static PropertyList |
readArrayProperty(org.codehaus.jackson.JsonParser jp) |
protected static Document |
readDocument(org.codehaus.jackson.JsonParser jp) |
protected static PropertyMap |
readObjectProperty(org.codehaus.jackson.JsonParser jp) |
protected static void |
readProperties(org.codehaus.jackson.JsonParser jp,
PropertyMap props) |
void |
write(org.codehaus.jackson.JsonGenerator jg,
Document value)
Writes the POJO object to the JsonGenerator
|
public String getType()
JsonMarshallergetType in interface JsonMarshaller<Document>public Class<Document> getJavaType()
JsonMarshallergetJavaType in interface JsonMarshaller<Document>public Document read(org.codehaus.jackson.JsonParser jp) throws Exception
JsonMarshallerread in interface JsonMarshaller<Document>Exceptionprotected static Document readDocument(org.codehaus.jackson.JsonParser jp) throws Exception
Exceptionprotected static void readProperties(org.codehaus.jackson.JsonParser jp,
PropertyMap props)
throws Exception
Exceptionprotected static PropertyMap readObjectProperty(org.codehaus.jackson.JsonParser jp) throws Exception
Exceptionprotected static PropertyList readArrayProperty(org.codehaus.jackson.JsonParser jp) throws Exception
Exceptionpublic void write(org.codehaus.jackson.JsonGenerator jg,
Document value)
throws Exception
JsonMarshallerwrite in interface JsonMarshaller<Document>ExceptionCopyright © 2018. All rights reserved.