Class ObjectIdSerializer

java.lang.Object
tools.jackson.databind.ValueSerializer
All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class ObjectIdSerializer extends EmbeddedObjectSerializer
Serializer for object ids, serialises strings or byte arrays to an ObjectId class
Since:
1.0
Author:
James Roper
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer

    tools.jackson.databind.ValueSerializer.None
  • Field Summary

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(Object value, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext provider)
     

    Methods inherited from class tools.jackson.databind.ValueSerializer

    acceptJsonFormatVisitor, createContextual, getDelegatee, handledType, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ObjectIdSerializer

      public ObjectIdSerializer()
  • Method Details

    • serialize

      public void serialize(Object value, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext provider) throws tools.jackson.core.JacksonException, tools.jackson.core.JacksonException
      Overrides:
      serialize in class EmbeddedObjectSerializer
      Throws:
      tools.jackson.core.JacksonException