Package lu.kbra.modelizer_next.json
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 -
Method Summary
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Constructor Details
-
AwtColorSerializer
public AwtColorSerializer()
-
-
Method Details
-
handledType
Handles the d type while converting JSON data.- Overrides:
handledTypein classcom.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:
serializein classcom.fasterxml.jackson.databind.JsonSerializer<Color>- Parameters:
value- value to processgen- gen value used by the operationserializers- serializers value used by the operation- Throws:
IOException- if the operation cannot be completed
-