Class ExternalReferenceSerializer

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

    public class ExternalReferenceSerializer
    extends com.fasterxml.jackson.databind.ser.std.StdSerializer<ExternalReference>
    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 
      Modifier and Type Field Description
      private Version version  
      • 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
      java.lang.Class<ExternalReference> handledType()  
      void serialize​(ExternalReference extRef, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider)  
      private void serializeJson​(com.fasterxml.jackson.core.JsonGenerator gen, ExternalReference extRef)  
      private void serializeXml​(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator toXmlGenerator, ExternalReference extRef)  
      private boolean shouldSerializeField​(java.lang.Object obj)  
      • 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, 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, withIgnoredProperties
      • Methods inherited from class java.lang.Object

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

      • version

        private final Version version
    • Constructor Detail

      • ExternalReferenceSerializer

        public ExternalReferenceSerializer​(Version version)
      • ExternalReferenceSerializer

        public ExternalReferenceSerializer​(java.lang.Class<ExternalReference> t,
                                           Version version)
    • Method Detail

      • serialize

        public void serialize​(ExternalReference extRef,
                              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<ExternalReference>
        Throws:
        java.io.IOException
      • serializeXml

        private void serializeXml​(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator toXmlGenerator,
                                  ExternalReference extRef)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeJson

        private void serializeJson​(com.fasterxml.jackson.core.JsonGenerator gen,
                                   ExternalReference extRef)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldSerializeField

        private boolean shouldSerializeField​(java.lang.Object obj)
      • handledType

        public java.lang.Class<ExternalReference> handledType()
        Overrides:
        handledType in class com.fasterxml.jackson.databind.ser.std.StdSerializer<ExternalReference>