com.googlecode.wickedcharts.highcharts.jackson
Class NullableSerializer<T>

java.lang.Object
  extended by com.fasterxml.jackson.databind.JsonSerializer<Nullable>
      extended by com.googlecode.wickedcharts.highcharts.jackson.NullableSerializer<T>
Direct Known Subclasses:
ColorReferenceSerializer

public abstract class NullableSerializer<T>
extends com.fasterxml.jackson.databind.JsonSerializer<Nullable>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
 
Constructor Summary
NullableSerializer()
           
 
Method Summary
 void serialize(Nullable value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
           
protected abstract  void serializeIfNotNull(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
           
 
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
handledType, isEmpty, isUnwrappingSerializer, serializeWithType, unwrappingSerializer, usesObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullableSerializer

public NullableSerializer()
Method Detail

serialize

public void serialize(Nullable value,
                      com.fasterxml.jackson.core.JsonGenerator jgen,
                      com.fasterxml.jackson.databind.SerializerProvider provider)
               throws IOException,
                      com.fasterxml.jackson.core.JsonProcessingException
Specified by:
serialize in class com.fasterxml.jackson.databind.JsonSerializer<Nullable>
Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException

serializeIfNotNull

protected abstract void serializeIfNotNull(T value,
                                           com.fasterxml.jackson.core.JsonGenerator jgen,
                                           com.fasterxml.jackson.databind.SerializerProvider provider)
                                    throws IOException,
                                           com.fasterxml.jackson.core.JsonProcessingException
Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException


Copyright © 2013. All Rights Reserved.