Class EntryFieldJsonSerializer

java.lang.Object
com.emc.documentum.rest.parser.json.writer.field.AbstractFieldJsonSerializer
com.emc.documentum.rest.parser.json.writer.field.EntryFieldJsonSerializer
All Implemented Interfaces:
AnnotatedFieldBindingProcessor, AnnotatedFieldSerializer<com.emc.documentum.rest.parser.json.writer.TypeJsonWriter>

public class EntryFieldJsonSerializer extends AbstractFieldJsonSerializer
JSON field writer for simple data type.
  • Constructor Details

    • EntryFieldJsonSerializer

      public EntryFieldJsonSerializer()
  • Method Details

    • serialize

      public void serialize(com.emc.documentum.rest.parser.json.writer.TypeJsonWriter writer, Object value, SerializableFieldMeta fieldNode, org.springframework.http.MediaType mediaType, com.emc.documentum.rest.config.BindingConfig bindingConfig)
      Description copied from interface: AnnotatedFieldSerializer
      Serialize the field.
      Parameters:
      writer - message writer
      value - field value
      fieldNode - the serializable field meta
      mediaType - the target media type to serialize
      bindingConfig - the binding configuration
    • serializable

      public boolean serializable(Object fieldValue, SerializableFieldMeta fieldNode)
      Description copied from interface: AnnotatedFieldSerializer
      Check if the field value and field type is serializable by this serializer.
      Parameters:
      fieldValue - the field value
      fieldNode - the serializable field meta
      Returns:
      true if the field value is serializable; false otherwise.
    • writeEntryListValue

      protected void writeEntryListValue(com.emc.documentum.rest.parser.json.writer.TypeJsonWriter writer, Object fieldValue, org.springframework.http.MediaType contentType, SerializableFieldMeta node, com.emc.documentum.rest.config.BindingConfig bindingConfig) throws IOException
      Throws:
      IOException