org.codehaus.jackson.map.deser
Class StdDeserializationContext

java.lang.Object
  extended by org.codehaus.jackson.map.DeserializationContext
      extended by org.codehaus.jackson.map.deser.StdDeserializationContext

public class StdDeserializationContext
extends DeserializationContext

Default implementation of DeserializationContext.


Field Summary
protected  ArrayBuilders _arrayBuilders
           
protected  java.text.DateFormat _dateFormat
           
protected  ObjectBuffer _objectBuffer
           
protected  JsonParser _parser
           
 
Fields inherited from class org.codehaus.jackson.map.DeserializationContext
_config
 
Constructor Summary
StdDeserializationContext(DeserializationConfig config, JsonParser jp)
           
 
Method Summary
protected  java.lang.String _calcName(java.lang.Class<?> cls)
           
protected  java.lang.String _desc(java.lang.String desc)
           
protected  java.lang.String _valueDesc()
           
 java.util.Calendar constructCalendar(java.util.Date d)
           
protected  java.lang.String determineClassName(java.lang.Object instance)
           
 ArrayBuilders getArrayBuilders()
          Method for accessing object useful for building arrays of primitive types (such as int[]).
protected  java.text.DateFormat getDateFormat()
           
 JsonParser getParser()
           
 JsonMappingException instantiationException(java.lang.Class<?> instClass, java.lang.Exception e)
           
 ObjectBuffer leaseObjectBuffer()
          Method that can be used to get access to a reusable ObjectBuffer, useful for constructing Object arrays and Lists.
 JsonMappingException mappingException(java.lang.Class<?> targetClass)
           
 java.util.Date parseDate(java.lang.String dateStr)
           
 void returnObjectBuffer(ObjectBuffer buf)
           
 JsonMappingException unknownFieldException(java.lang.Object instance, java.lang.String fieldName)
           
 JsonMappingException weirdKeyException(java.lang.Class<?> keyClass, java.lang.String keyValue, java.lang.String msg)
           
 JsonMappingException weirdNumberException(java.lang.Class<?> instClass, java.lang.String msg)
           
 JsonMappingException weirdStringException(java.lang.Class<?> instClass, java.lang.String msg)
          Method that will construct an exception suitable for throwing when some String values are acceptable, but the one encountered is not
 
Methods inherited from class org.codehaus.jackson.map.DeserializationContext
getBase64Variant, getConfig, isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parser

protected final JsonParser _parser

_arrayBuilders

protected ArrayBuilders _arrayBuilders

_objectBuffer

protected ObjectBuffer _objectBuffer

_dateFormat

protected java.text.DateFormat _dateFormat
Constructor Detail

StdDeserializationContext

public StdDeserializationContext(DeserializationConfig config,
                                 JsonParser jp)
Method Detail

getParser

public JsonParser getParser()
Specified by:
getParser in class DeserializationContext

leaseObjectBuffer

public final ObjectBuffer leaseObjectBuffer()
Description copied from class: DeserializationContext
Method that can be used to get access to a reusable ObjectBuffer, useful for constructing Object arrays and Lists.

Specified by:
leaseObjectBuffer in class DeserializationContext

returnObjectBuffer

public final void returnObjectBuffer(ObjectBuffer buf)
Specified by:
returnObjectBuffer in class DeserializationContext

getArrayBuilders

public final ArrayBuilders getArrayBuilders()
Description copied from class: DeserializationContext
Method for accessing object useful for building arrays of primitive types (such as int[]).

Specified by:
getArrayBuilders in class DeserializationContext

parseDate

public java.util.Date parseDate(java.lang.String dateStr)
                         throws java.lang.IllegalArgumentException
Specified by:
parseDate in class DeserializationContext
Throws:
java.lang.IllegalArgumentException

constructCalendar

public java.util.Calendar constructCalendar(java.util.Date d)
Specified by:
constructCalendar in class DeserializationContext

mappingException

public JsonMappingException mappingException(java.lang.Class<?> targetClass)
Specified by:
mappingException in class DeserializationContext

_calcName

protected java.lang.String _calcName(java.lang.Class<?> cls)

instantiationException

public JsonMappingException instantiationException(java.lang.Class<?> instClass,
                                                   java.lang.Exception e)
Specified by:
instantiationException in class DeserializationContext

weirdStringException

public JsonMappingException weirdStringException(java.lang.Class<?> instClass,
                                                 java.lang.String msg)
Method that will construct an exception suitable for throwing when some String values are acceptable, but the one encountered is not

Specified by:
weirdStringException in class DeserializationContext

weirdNumberException

public JsonMappingException weirdNumberException(java.lang.Class<?> instClass,
                                                 java.lang.String msg)
Specified by:
weirdNumberException in class DeserializationContext

weirdKeyException

public JsonMappingException weirdKeyException(java.lang.Class<?> keyClass,
                                              java.lang.String keyValue,
                                              java.lang.String msg)
Specified by:
weirdKeyException in class DeserializationContext

unknownFieldException

public JsonMappingException unknownFieldException(java.lang.Object instance,
                                                  java.lang.String fieldName)
Specified by:
unknownFieldException in class DeserializationContext

determineClassName

protected java.lang.String determineClassName(java.lang.Object instance)

getDateFormat

protected java.text.DateFormat getDateFormat()

_valueDesc

protected java.lang.String _valueDesc()

_desc

protected java.lang.String _desc(java.lang.String desc)