org.codehaus.jackson.map.deser
Class StdScalarDeserializer<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.StdScalarDeserializer<T>
Direct Known Subclasses:
CoreXMLDeserializers.GregorianCalendarDeserializer, DataHandlerJsonDeserializer, DateDeserializer, EnumDeserializer, EnumDeserializer.FactoryBasedDeserializer, FromStringDeserializer, JodaDeserializers.DateMidnightDeserializer, JodaDeserializers.DateTimeDeserializer, JodaDeserializers.LocalDateDeserializer, JodaDeserializers.LocalDateTimeDeserializer, StdDeserializer.AtomicBooleanDeserializer, StdDeserializer.AtomicReferenceDeserializer, StdDeserializer.BigDecimalDeserializer, StdDeserializer.BigIntegerDeserializer, StdDeserializer.CalendarDeserializer, StdDeserializer.ClassDeserializer, StdDeserializer.NumberDeserializer, StdDeserializer.PrimitiveOrWrapperDeserializer, StdDeserializer.SqlDateDeserializer, StdDeserializer.StackTraceElementDeserializer, StdDeserializer.StringDeserializer, StdDeserializer.TokenBufferDeserializer, TimestampDeserializer

public abstract class StdScalarDeserializer<T>
extends StdDeserializer<T>

Base class for deserializers that handle types that are serialized as JSON scalars (non-structured, i.e. non-Object, non-Array, values).

Author:
tatu

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.deser.StdDeserializer
StdDeserializer.AtomicBooleanDeserializer, StdDeserializer.AtomicReferenceDeserializer, 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, StdDeserializer.TokenBufferDeserializer
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonDeserializer
JsonDeserializer.None
 
Field Summary
 
Fields inherited from class org.codehaus.jackson.map.deser.StdDeserializer
_valueClass
 
Constructor Summary
protected StdScalarDeserializer(Class<?> vc)
           
 
Method Summary
 Object deserializeWithType(JsonParser jp, DeserializationContext ctxt, TypeDeserializer typeDeserializer)
          Base implementation that does not assume specific type inclusion mechanism.
 
Methods inherited from class org.codehaus.jackson.map.deser.StdDeserializer
_parseBoolean, _parseBooleanPrimitive, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, findDeserializer, getValueClass, getValueType, handleUnknownProperty, isDefaultSerializer, parseDouble, reportUnknownProperty
 
Methods inherited from class org.codehaus.jackson.map.JsonDeserializer
deserialize, deserialize, getNullValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdScalarDeserializer

protected StdScalarDeserializer(Class<?> vc)
Method Detail

deserializeWithType

public Object deserializeWithType(JsonParser jp,
                                  DeserializationContext ctxt,
                                  TypeDeserializer typeDeserializer)
                           throws IOException,
                                  JsonProcessingException
Description copied from class: StdDeserializer
Base implementation that does not assume specific type inclusion mechanism. Sub-classes are expected to override this method if they are to handle type information.

Overrides:
deserializeWithType in class StdDeserializer<T>
typeDeserializer - Deserializer to use for handling type information
Throws:
IOException
JsonProcessingException