Class SeverityBaseReducer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<SeverityBase>
tenapull.data.deserialize.SeverityBaseReducer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class SeverityBaseReducer
extends com.fasterxml.jackson.databind.JsonSerializer<SeverityBase>
Serializer for simplifying a SeverityBase bean into a single text value, used for serializing the output.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Constructor Summary

    Constructors 
    Constructor Description
    SeverityBaseReducer()  
  • Method Summary

    Modifier and Type Method Description
    void serialize​(SeverityBase sc, com.fasterxml.jackson.core.JsonGenerator jg, com.fasterxml.jackson.databind.SerializerProvider sp)
    Simplifies a SeverityBase bean into a single text value, representing the display value of the SeverityBase if it is not null, or the value (abbreviated) if that is not null, or other the ExtraJson if that is not null.

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, handledType, 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 Details

  • Method Details

    • serialize

      public void serialize​(SeverityBase sc, com.fasterxml.jackson.core.JsonGenerator jg, com.fasterxml.jackson.databind.SerializerProvider sp) throws java.io.IOException
      Simplifies a SeverityBase bean into a single text value, representing the display value of the SeverityBase if it is not null, or the value (abbreviated) if that is not null, or other the ExtraJson if that is not null. Writes null if none can be found
      Specified by:
      serialize in class com.fasterxml.jackson.databind.JsonSerializer<SeverityBase>
      Parameters:
      sc - the SeverityBase bean to be serialized
      jg -
      sp -
      Throws:
      java.io.IOException