Class WidgetTypeDefinitionsJsonWriter

java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<WidgetTypeDefinitions>
org.nuxeo.ecm.platform.forms.layout.export.WidgetTypeDefinitionsJsonWriter
All Implemented Interfaces:
Marshaller<WidgetTypeDefinitions>, Writer<WidgetTypeDefinitions>

@Setup(mode=SINGLETON, priority=2000) public class WidgetTypeDefinitionsJsonWriter extends AbstractJsonWriter<WidgetTypeDefinitions>
Since:
5.4, 10.1 converted to a marshaller
Author:
Anahide Tchertchian
  • Constructor Details

    • WidgetTypeDefinitionsJsonWriter

      public WidgetTypeDefinitionsJsonWriter()
  • Method Details

    • write

      public void write(WidgetTypeDefinitions entities, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
      Description copied from class: AbstractJsonWriter
      Implement this method to writes the entity in the provided JsonGenerator.

      This method implementation can use injected properties.

      The JsonGenerator's flushing is done by this abstract class, it's also not not necessary to flush it. Do not close the provided JsonGenerator. It may be used is another marshaller calling this one.

      Specified by:
      write in class AbstractJsonWriter<WidgetTypeDefinitions>
      Parameters:
      entities - The entity to marshall as Json.
      jg - The JsonGenerator used to produce Json output.
      Throws:
      IOException