com.fasterxml.jackson.datatype.joda.ser
Class DateMidnightSerializer

java.lang.Object
  extended by com.fasterxml.jackson.databind.JsonSerializer<T>
      extended by com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
          extended by com.fasterxml.jackson.datatype.joda.ser.DateMidnightSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware

public final class DateMidnightSerializer
extends com.fasterxml.jackson.databind.ser.std.StdSerializer<T>


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
 
Constructor Summary
DateMidnightSerializer()
           
 
Method Summary
 com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.SerializerProvider provider, Type typeHint)
           
 void serialize(org.joda.time.DateMidnight dt, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
           
 void serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
           
 
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
acceptJsonFormatVisitor, createObjectNode, createSchemaNode, createSchemaNode, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow
 
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isUnwrappingSerializer, replaceDelegatee, unwrappingSerializer, usesObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateMidnightSerializer

public DateMidnightSerializer()
Method Detail

serialize

public void serialize(org.joda.time.DateMidnight dt,
                      com.fasterxml.jackson.core.JsonGenerator jgen,
                      com.fasterxml.jackson.databind.SerializerProvider provider)
               throws IOException,
                      com.fasterxml.jackson.core.JsonGenerationException
Specified by:
serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<org.joda.time.DateMidnight>
Throws:
IOException
com.fasterxml.jackson.core.JsonGenerationException

getSchema

public com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.SerializerProvider provider,
                                                         Type typeHint)
Specified by:
getSchema in interface com.fasterxml.jackson.databind.jsonschema.SchemaAware
Overrides:
getSchema in class com.fasterxml.jackson.databind.ser.std.StdSerializer<org.joda.time.DateMidnight>

serializeWithType

public void serializeWithType(T value,
                              com.fasterxml.jackson.core.JsonGenerator jgen,
                              com.fasterxml.jackson.databind.SerializerProvider provider,
                              com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
                       throws IOException,
                              com.fasterxml.jackson.core.JsonProcessingException
Overrides:
serializeWithType in class com.fasterxml.jackson.databind.JsonSerializer<T>
Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException


Copyright © 2012 FasterXML. All Rights Reserved.