org.codehaus.jackson.map
Class DeserializationContext

java.lang.Object
  extended by org.codehaus.jackson.map.DeserializationContext
Direct Known Subclasses:
StdDeserializationContext

public abstract class DeserializationContext
extends java.lang.Object

Context for deserialization process. Used to allow passing in configuration settings and reusable temporary objects (scrap arrays, containers).


Field Summary
protected  DeserializationConfig _config
           
 
Constructor Summary
protected DeserializationContext(DeserializationConfig config)
           
 
Method Summary
abstract  java.util.Calendar constructCalendar(java.util.Date d)
           
abstract  ArrayBuilders getArrayBuilders()
          Method for accessing object useful for building arrays of primitive types (such as int[]).
 Base64Variant getBase64Variant()
           
 DeserializationConfig getConfig()
           
abstract  JsonParser getParser()
           
abstract  JsonMappingException instantiationException(java.lang.Class<?> instClass, java.lang.Exception e)
           
 boolean isEnabled(DeserializationConfig.Feature feat)
           
abstract  ObjectBuffer leaseObjectBuffer()
          Method that can be used to get access to a reusable ObjectBuffer, useful for constructing Object arrays and Lists.
abstract  JsonMappingException mappingException(java.lang.Class<?> targetClass)
           
abstract  java.util.Date parseDate(java.lang.String dateStr)
           
abstract  void returnObjectBuffer(ObjectBuffer buf)
           
abstract  JsonMappingException unknownFieldException(java.lang.Object instance, java.lang.String fieldName)
           
abstract  JsonMappingException weirdKeyException(java.lang.Class<?> keyClass, java.lang.String keyValue, java.lang.String msg)
           
abstract  JsonMappingException weirdNumberException(java.lang.Class<?> instClass, java.lang.String msg)
           
abstract  JsonMappingException weirdStringException(java.lang.Class<?> instClass, java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_config

protected final DeserializationConfig _config
Constructor Detail

DeserializationContext

protected DeserializationContext(DeserializationConfig config)
Method Detail

getConfig

public DeserializationConfig getConfig()

isEnabled

public boolean isEnabled(DeserializationConfig.Feature feat)

getBase64Variant

public Base64Variant getBase64Variant()

getParser

public abstract JsonParser getParser()

leaseObjectBuffer

public abstract ObjectBuffer leaseObjectBuffer()
Method that can be used to get access to a reusable ObjectBuffer, useful for constructing Object arrays and Lists.


returnObjectBuffer

public abstract void returnObjectBuffer(ObjectBuffer buf)

getArrayBuilders

public abstract ArrayBuilders getArrayBuilders()
Method for accessing object useful for building arrays of primitive types (such as int[]).


parseDate

public abstract java.util.Date parseDate(java.lang.String dateStr)
                                  throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

constructCalendar

public abstract java.util.Calendar constructCalendar(java.util.Date d)

mappingException

public abstract JsonMappingException mappingException(java.lang.Class<?> targetClass)

instantiationException

public abstract JsonMappingException instantiationException(java.lang.Class<?> instClass,
                                                            java.lang.Exception e)

weirdStringException

public abstract JsonMappingException weirdStringException(java.lang.Class<?> instClass,
                                                          java.lang.String msg)

weirdNumberException

public abstract JsonMappingException weirdNumberException(java.lang.Class<?> instClass,
                                                          java.lang.String msg)

weirdKeyException

public abstract JsonMappingException weirdKeyException(java.lang.Class<?> keyClass,
                                                       java.lang.String keyValue,
                                                       java.lang.String msg)

unknownFieldException

public abstract JsonMappingException unknownFieldException(java.lang.Object instance,
                                                           java.lang.String fieldName)