public class DocumentsMarshaller extends Object implements JsonMarshaller<Documents>
Constructor and Description |
---|
DocumentsMarshaller() |
Modifier and Type | Method and Description |
---|---|
Class<Documents> |
getJavaType()
The marshalled java type
|
String |
getType()
The type name that appears in serialization
|
Documents |
read(com.fasterxml.jackson.core.JsonParser jp)
Builds and returns a POJO from the JSON object
|
protected void |
readDocumentEntries(com.fasterxml.jackson.core.JsonParser jp,
Documents docs) |
protected Documents |
readDocuments(com.fasterxml.jackson.core.JsonParser jp) |
protected Documents |
readPaginableDocuments(com.fasterxml.jackson.core.JsonParser jp) |
void |
write(com.fasterxml.jackson.core.JsonGenerator jg,
Object value)
Writes the POJO object to the JsonGenerator
|
public DocumentsMarshaller()
public String getType()
JsonMarshaller
getType
in interface JsonMarshaller<Documents>
public Class<Documents> getJavaType()
JsonMarshaller
getJavaType
in interface JsonMarshaller<Documents>
public void write(com.fasterxml.jackson.core.JsonGenerator jg, Object value) throws IOException
JsonMarshaller
write
in interface JsonMarshaller<Documents>
IOException
protected void readDocumentEntries(com.fasterxml.jackson.core.JsonParser jp, Documents docs) throws IOException
IOException
protected Documents readDocuments(com.fasterxml.jackson.core.JsonParser jp) throws IOException
IOException
protected Documents readPaginableDocuments(com.fasterxml.jackson.core.JsonParser jp) throws IOException
IOException
public Documents read(com.fasterxml.jackson.core.JsonParser jp) throws IOException
JsonMarshaller
read
in interface JsonMarshaller<Documents>
IOException
Copyright © 2018 Nuxeo. All rights reserved.