Package tenapull.data.deserialize
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
-
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.
-
Constructor Details
-
SeverityBaseReducer
public SeverityBaseReducer()
-
-
Method Details
-
serialize
public void serialize(SeverityBase sc, com.fasterxml.jackson.core.JsonGenerator jg, com.fasterxml.jackson.databind.SerializerProvider sp) throws java.io.IOExceptionSimplifies 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 classcom.fasterxml.jackson.databind.JsonSerializer<SeverityBase>
- Parameters:
sc
- the SeverityBase bean to be serializedjg
-sp
-- Throws:
java.io.IOException
-