Class ColorModule.AwtColorSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<Color>
lu.kbra.modelizer_next.json.ColorModule.AwtColorSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
Enclosing class:
ColorModule

public class ColorModule.AwtColorSerializer extends com.fasterxml.jackson.databind.JsonSerializer<Color>
Represents an AWT color serializer in the JSON import/export part of the application.
  • 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
    Handles the d type while converting JSON data.
    void
    serialize(Color value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers)
    Writes the value to JSON.

    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

    • AwtColorSerializer

      public AwtColorSerializer()
  • Method Details

    • handledType

      public Class<Color> handledType()
      Handles the d type while converting JSON data.
      Overrides:
      handledType in class com.fasterxml.jackson.databind.JsonSerializer<Color>
      Returns:
      the handled type result
    • serialize

      public void serialize(Color value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException
      Writes the value to JSON.
      Specified by:
      serialize in class com.fasterxml.jackson.databind.JsonSerializer<Color>
      Parameters:
      value - value to process
      gen - gen value used by the operation
      serializers - serializers value used by the operation
      Throws:
      IOException - if the operation cannot be completed