Class TMF630RepresentationModelSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.ser.std.StdSerializer
com.fasterxml.jackson.databind.ser.ContainerSerializer
com.orange.spring.tmf630.serializers.TMF630RepresentationModelSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, com.fasterxml.jackson.databind.ser.ContextualSerializer, Serializable
public final class TMF630RepresentationModelSerializer
extends com.fasterxml.jackson.databind.ser.ContainerSerializer
implements com.fasterxml.jackson.databind.ser.ContextualSerializer
A serializer to render
RepresentationModel in a TMF630 JSON.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType -
Constructor Summary
ConstructorsConstructorDescriptionTMF630RepresentationModelSerializer(org.springframework.hateoas.server.LinkRelationProvider linkRelProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.ser.ContainerSerializer<?> _withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer vts) @NotNull com.fasterxml.jackson.databind.JsonSerializer<?> createContextual(com.fasterxml.jackson.databind.SerializerProvider prov, com.fasterxml.jackson.databind.BeanProperty property) com.fasterxml.jackson.databind.JsonSerializer<?> com.fasterxml.jackson.databind.JavaTypebooleanhasSingleElement(Object value) booleanhasSingleElement(org.springframework.hateoas.RepresentationModel<?> value) voidserialize(Object value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) voidserialize(@NotNull org.springframework.hateoas.RepresentationModel<?> value, @NotNull com.fasterxml.jackson.core.JsonGenerator gen, @NotNull com.fasterxml.jackson.databind.SerializerProvider provider) Methods inherited from class com.fasterxml.jackson.databind.ser.ContainerSerializer
hasContentTypeAnnotation, withValueTypeSerializerMethods 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, wrapAndThrowMethods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Constructor Details
-
TMF630RepresentationModelSerializer
public TMF630RepresentationModelSerializer(@Nullable org.springframework.hateoas.server.LinkRelationProvider linkRelProvider) -
TMF630RepresentationModelSerializer
public TMF630RepresentationModelSerializer()
-
-
Method Details
-
serialize
public void serialize(@NotNull @NotNull org.springframework.hateoas.RepresentationModel<?> value, @NotNull @NotNull com.fasterxml.jackson.core.JsonGenerator gen, @NotNull @NotNull com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException - Throws:
IOException
-
getContentType
@Nullable public com.fasterxml.jackson.databind.JavaType getContentType()- Specified by:
getContentTypein classcom.fasterxml.jackson.databind.ser.ContainerSerializer
-
getContentSerializer
@Nullable public com.fasterxml.jackson.databind.JsonSerializer<?> getContentSerializer()- Specified by:
getContentSerializerin classcom.fasterxml.jackson.databind.ser.ContainerSerializer
-
_withValueTypeSerializer
@Nullable protected com.fasterxml.jackson.databind.ser.ContainerSerializer<?> _withValueTypeSerializer(@Nullable com.fasterxml.jackson.databind.jsontype.TypeSerializer vts) - Specified by:
_withValueTypeSerializerin classcom.fasterxml.jackson.databind.ser.ContainerSerializer
-
hasSingleElement
public boolean hasSingleElement(@Nullable org.springframework.hateoas.RepresentationModel<?> value) -
createContextual
@NotNull public @NotNull com.fasterxml.jackson.databind.JsonSerializer<?> createContextual(@Nullable com.fasterxml.jackson.databind.SerializerProvider prov, @Nullable com.fasterxml.jackson.databind.BeanProperty property) - Specified by:
createContextualin interfacecom.fasterxml.jackson.databind.ser.ContextualSerializer
-
serialize
public void serialize(Object value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException - Specified by:
serializein classcom.fasterxml.jackson.databind.ser.std.StdSerializer- Throws:
IOException
-
hasSingleElement
- Specified by:
hasSingleElementin classcom.fasterxml.jackson.databind.ser.ContainerSerializer
-