Class AnnotationJsonWriter
- java.lang.Object
-
- org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<EntityType>
-
- 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
Fields Modifier and Type Field Description static String
ENTITY_TYPE
Deprecated.since 11.1, useAnnotationConstants.ANNOTATION_ENTITY_TYPE
instead.-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description AnnotationJsonWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
writeEntityBody(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, write
-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
-
-
-
Field Detail
-
ENTITY_TYPE
@Deprecated(since="11.1") public static final String ENTITY_TYPE
Deprecated.since 11.1, useAnnotationConstants.ANNOTATION_ENTITY_TYPE
instead.- See Also:
- Constant Field Values
-
-
Method Detail
-
writeEntityBody
protected void writeEntityBody(Annotation entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
Description copied from class:ExtensibleEntityJsonWriter
Implement this method to write the entity body.- Specified by:
writeEntityBody
in classExtensibleEntityJsonWriter<Annotation>
- Parameters:
entity
- The Java entity.jg
- AJsonGenerator
ready to write your entity as Json.- Throws:
IOException
-
-