Class AnnotationJsonWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<Annotation>
org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<Annotation>
org.nuxeo.ecm.platform.comment.impl.AnnotationJsonWriter
- All Implemented Interfaces:
Marshaller<Annotation>,Writer<Annotation>
@Setup(mode=SINGLETON,
priority=2000)
public class AnnotationJsonWriter
extends ExtensibleEntityJsonWriter<Annotation>
- Since:
- 10.1
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteEntityBody(Annotation entity, com.fasterxml.jackson.core.JsonGenerator jg) Implement this method to write the entity body.Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter
extend, writeMethods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
Field Details
-
ENTITY_TYPE
Deprecated.since 11.1, useAnnotationConstants.ANNOTATION_ENTITY_TYPEinstead.- See Also:
-
-
Constructor Details
-
AnnotationJsonWriter
public AnnotationJsonWriter()
-
-
Method Details
-
writeEntityBody
protected void writeEntityBody(Annotation entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException Description copied from class:ExtensibleEntityJsonWriterImplement this method to write the entity body.- Specified by:
writeEntityBodyin classExtensibleEntityJsonWriter<Annotation>- Parameters:
entity- The Java entity.jg- AJsonGeneratorready to write your entity as Json.- Throws:
IOException
-
AnnotationConstants.ANNOTATION_ENTITY_TYPEinstead.