Class MapSerializer
- java.lang.Object
-
- io.outofprintmagazine.nlp.pipeline.serializers.MapSerializer
-
- All Implemented Interfaces:
ISerializer
public class MapSerializer extends Object implements ISerializer
-
-
Field Summary
Fields Modifier and Type Field Description protected Class
annotationClass
-
Constructor Summary
Constructors Constructor Description MapSerializer()
MapSerializer(Class annotationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getAnnotationClass()
void
serialize(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)
void
serializeAggregate(Object aggregate, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
protected void
serializeDocument(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
protected void
serializeSentences(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
protected void
serializeTokens(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
void
setAnnotationClass(Class annotationClass)
-
-
-
Field Detail
-
annotationClass
protected Class annotationClass
-
-
Constructor Detail
-
MapSerializer
public MapSerializer()
-
MapSerializer
public MapSerializer(Class annotationClass)
-
-
Method Detail
-
setAnnotationClass
public void setAnnotationClass(Class annotationClass)
-
getAnnotationClass
public Class getAnnotationClass()
-
serialize
public void serialize(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)
- Specified by:
serialize
in interfaceISerializer
-
serializeAggregate
public void serializeAggregate(Object aggregate, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
- Specified by:
serializeAggregate
in interfaceISerializer
-
serializeDocument
protected void serializeDocument(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
-
serializeSentences
protected void serializeSentences(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
-
serializeTokens
protected void serializeTokens(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
-
-