Class JsonApiRelationshipSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, java.io.Serializable

    public class JsonApiRelationshipSerializer
    extends com.fasterxml.jackson.databind.ser.ContainerSerializer<T>
    See Also:
    Serialized Form
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.fasterxml.jackson.databind.ser.ContainerSerializer<?> _withValueTypeSerializer​(com.fasterxml.jackson.databind.jsontype.TypeSerializer vts)  
      com.fasterxml.jackson.databind.JsonSerializer<?> getContentSerializer()  
      com.fasterxml.jackson.databind.JavaType getContentType()  
      boolean hasSingleElement​(T value)  
      void serialize​(com.toedter.spring.hateoas.jsonapi.JsonApiRelationship value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider)  
      • Methods inherited from class com.fasterxml.jackson.databind.ser.ContainerSerializer

        hasContentTypeAnnotation, withValueTypeSerializer
      • 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
      • Methods inherited from class java.lang.Object

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

      • JsonApiRelationshipSerializer

        public JsonApiRelationshipSerializer​(JsonApiConfiguration jsonApiConfiguration)
    • Method Detail

      • serialize

        public void serialize​(com.toedter.spring.hateoas.jsonapi.JsonApiRelationship value,
                              com.fasterxml.jackson.core.JsonGenerator gen,
                              com.fasterxml.jackson.databind.SerializerProvider provider)
                       throws java.io.IOException
        Specified by:
        serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<com.toedter.spring.hateoas.jsonapi.JsonApiRelationship>
        Throws:
        java.io.IOException
      • getContentType

        public com.fasterxml.jackson.databind.JavaType getContentType()
        Specified by:
        getContentType in class com.fasterxml.jackson.databind.ser.ContainerSerializer<T>
      • getContentSerializer

        public com.fasterxml.jackson.databind.JsonSerializer<?> getContentSerializer()
        Specified by:
        getContentSerializer in class com.fasterxml.jackson.databind.ser.ContainerSerializer<T>
      • hasSingleElement

        public boolean hasSingleElement​(T value)
        Specified by:
        hasSingleElement in class com.fasterxml.jackson.databind.ser.ContainerSerializer<T>
      • _withValueTypeSerializer

        protected com.fasterxml.jackson.databind.ser.ContainerSerializer<?> _withValueTypeSerializer​(com.fasterxml.jackson.databind.jsontype.TypeSerializer vts)
        Specified by:
        _withValueTypeSerializer in class com.fasterxml.jackson.databind.ser.ContainerSerializer<T>