Package org.codehaus.jackson.map.ext
Class JodaSerializers.JodaSerializer<T>
- java.lang.Object
-
- org.codehaus.jackson.map.JsonSerializer<T>
-
- org.codehaus.jackson.map.ser.std.SerializerBase<T>
-
- org.codehaus.jackson.map.ext.JodaSerializers.JodaSerializer<T>
-
- All Implemented Interfaces:
SchemaAware
- Direct Known Subclasses:
JodaSerializers.DateMidnightSerializer
,JodaSerializers.DateTimeSerializer
,JodaSerializers.LocalDateSerializer
,JodaSerializers.LocalDateTimeSerializer
- Enclosing class:
- JodaSerializers
protected abstract static class JodaSerializers.JodaSerializer<T> extends SerializerBase<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer
JsonSerializer.None
-
-
Field Summary
-
Fields inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
_handledType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JodaSerializer(java.lang.Class<T> cls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
printLocalDate(org.joda.time.ReadableInstant dateValue)
protected java.lang.String
printLocalDate(org.joda.time.ReadablePartial dateValue)
protected java.lang.String
printLocalDateTime(org.joda.time.ReadablePartial dateValue)
-
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, getSchema, handledType, isDefaultSerializer, serialize, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
-
Methods inherited from class org.codehaus.jackson.map.JsonSerializer
isUnwrappingSerializer, serializeWithType, unwrappingSerializer
-
-
-
-
Constructor Detail
-
JodaSerializer
protected JodaSerializer(java.lang.Class<T> cls)
-
-
Method Detail
-
printLocalDateTime
protected java.lang.String printLocalDateTime(org.joda.time.ReadablePartial dateValue) throws java.io.IOException, JsonProcessingException
- Throws:
java.io.IOException
JsonProcessingException
-
printLocalDate
protected java.lang.String printLocalDate(org.joda.time.ReadablePartial dateValue) throws java.io.IOException, JsonProcessingException
- Throws:
java.io.IOException
JsonProcessingException
-
printLocalDate
protected java.lang.String printLocalDate(org.joda.time.ReadableInstant dateValue) throws java.io.IOException, JsonProcessingException
- Throws:
java.io.IOException
JsonProcessingException
-
-