Class JsonNodeExampleSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<Example>
org.mockserver.openapi.examples.JsonNodeExampleSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class JsonNodeExampleSerializer extends com.fasterxml.jackson.databind.JsonSerializer<Example>
See: https://github.com/swagger-api/swagger-inflector
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    serialize(Example value, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider provider)
     
    void
    writeTo(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, Example o)
     
    void
    writeValue(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, String field, Example o)
     

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class java.lang.Object

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

    • JsonNodeExampleSerializer

      public JsonNodeExampleSerializer()
  • Method Details

    • serialize

      public void serialize(Example value, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
      Specified by:
      serialize in class com.fasterxml.jackson.databind.JsonSerializer<Example>
      Throws:
      IOException
    • writeTo

      public void writeTo(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, Example o) throws IOException
      Throws:
      IOException
    • writeValue

      public void writeValue(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, String field, Example o) throws IOException
      Throws:
      IOException
    • handledType

      public Class<Example> handledType()
      Overrides:
      handledType in class com.fasterxml.jackson.databind.JsonSerializer<Example>