Class ComponentDataModelSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<ComponentData>
com.fasterxml.jackson.databind.ser.std.StdSerializer<ComponentData>
com.adobe.cq.wcm.core.components.models.datalayer.jackson.ComponentDataModelSerializer
All Implemented Interfaces:
JsonFormatVisitable, SchemaAware, Serializable

public class ComponentDataModelSerializer extends StdSerializer<ComponentData>
See Also:
  • Constructor Details

    • ComponentDataModelSerializer

      public ComponentDataModelSerializer()
    • ComponentDataModelSerializer

      public ComponentDataModelSerializer(Class<ComponentData> t)
  • Method Details

    • serialize

      public void serialize(ComponentData componentData, JsonGenerator jsonGenerator, SerializerProvider provider) throws IOException
      Description copied from class: JsonSerializer
      Method that can be called to ask implementation to serialize values of type this serializer handles.
      Specified by:
      serialize in class StdSerializer<ComponentData>
      Parameters:
      componentData - Value to serialize; can not be null.
      jsonGenerator - Generator used to output resulting Json content
      provider - Provider that can be used to get serializers for serializing Objects value contains, if any.
      Throws:
      IOException