Class AnnotationJsonReader
- java.lang.Object
-
- org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader<EntityType>
-
- org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader<Annotation>
-
- org.nuxeo.ecm.platform.comment.impl.AnnotationJsonReader
-
- All Implemented Interfaces:
Marshaller<Annotation>
,Reader<Annotation>
@Setup(mode=SINGLETON, priority=2000) public class AnnotationJsonReader extends EntityJsonReader<Annotation>
- Since:
- 10.1
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description AnnotationJsonReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Annotation
readEntity(com.fasterxml.jackson.databind.JsonNode jn)
Implement this method to read the entity.-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader
read
-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
accept, getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntity
-
-
-
-
Constructor Detail
-
AnnotationJsonReader
public AnnotationJsonReader()
-
-
Method Detail
-
readEntity
protected Annotation readEntity(com.fasterxml.jackson.databind.JsonNode jn)
Description copied from class:EntityJsonReader
Implement this method to read the entity.- Specified by:
readEntity
in classEntityJsonReader<Annotation>
- Parameters:
jn
- AJsonNode
pointing at the root of the json input.- Returns:
- The parsed entity.
-
-