Package org.ametys.core.util
Class LocalDateSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdSerializer<LocalDate>
org.ametys.core.util.LocalDateSerializer
- All Implemented Interfaces:
JsonFormatVisitable
,SchemaAware
,Serializable
,Component
Serializer for
LocalDate
.
Returns the formatted date for JSON value to ISO 8601 standard format (e.g. 2013-02-28T17:13:50.000+02:00)- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(LocalDate value, JsonGenerator jgen, SerializerProvider provider) Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
-
Field Details
-
ROLE
The Avalon Role
-
-
Constructor Details
-
LocalDateSerializer
public LocalDateSerializer()Constructor
-
-
Method Details
-
serialize
public void serialize(LocalDate value, JsonGenerator jgen, SerializerProvider provider) throws IOException - Specified by:
serialize
in classStdSerializer<LocalDate>
- Throws:
IOException
-