org.codehaus.jackson.map.deser
Class StdDeserializer.PrimitiveOrWrapperDeserializer<T>

java.lang.Object
  extended by org.codehaus.jackson.map.JsonDeserializer<T>
      extended by org.codehaus.jackson.map.deser.StdDeserializer<T>
          extended by org.codehaus.jackson.map.deser.StdDeserializer.PrimitiveOrWrapperDeserializer<T>
Direct Known Subclasses:
StdDeserializer.BooleanDeserializer, StdDeserializer.ByteDeserializer, StdDeserializer.CharacterDeserializer, StdDeserializer.DoubleDeserializer, StdDeserializer.FloatDeserializer, StdDeserializer.IntegerDeserializer, StdDeserializer.LongDeserializer, StdDeserializer.ShortDeserializer
Enclosing class:
StdDeserializer<T>

protected abstract static class StdDeserializer.PrimitiveOrWrapperDeserializer<T>
extends StdDeserializer<T>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.deser.StdDeserializer
StdDeserializer.BigDecimalDeserializer, StdDeserializer.BigIntegerDeserializer, StdDeserializer.BooleanDeserializer, StdDeserializer.ByteDeserializer, StdDeserializer.CalendarDeserializer, StdDeserializer.CharacterDeserializer, StdDeserializer.ClassDeserializer, StdDeserializer.DoubleDeserializer, StdDeserializer.FloatDeserializer, StdDeserializer.IntegerDeserializer, StdDeserializer.LongDeserializer, StdDeserializer.NumberDeserializer, StdDeserializer.PrimitiveOrWrapperDeserializer<T>, StdDeserializer.ShortDeserializer, StdDeserializer.SqlDateDeserializer, StdDeserializer.StackTraceElementDeserializer, StdDeserializer.StringDeserializer
 
Constructor Summary
protected StdDeserializer.PrimitiveOrWrapperDeserializer(java.lang.Class<T> vc, T nvl)
           
 
Method Summary
 T getNullValue()
          Method that can be called to determine value to be used for representing null values (values deserialized when Json token is JsonToken.VALUE_NULL).
 
Methods inherited from class org.codehaus.jackson.map.deser.StdDeserializer
_parseDate, _parseDouble, _parseInt, getValueClass
 
Methods inherited from class org.codehaus.jackson.map.JsonDeserializer
deserialize, deserialize, shouldBeCached
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdDeserializer.PrimitiveOrWrapperDeserializer

protected StdDeserializer.PrimitiveOrWrapperDeserializer(java.lang.Class<T> vc,
                                                         T nvl)
Method Detail

getNullValue

public final T getNullValue()
Description copied from class: JsonDeserializer
Method that can be called to determine value to be used for representing null values (values deserialized when Json token is JsonToken.VALUE_NULL). Usually this is simply Java null, but for some types (primitives) it may be necessary to use actual values.

Note that deserializers are allowed to call this just once and then reuse returned value; that is, method is not guaranteed to be called once for each conversion.

Default implementation simply returns null.

Overrides:
getNullValue in class JsonDeserializer<T>