JSON
Version 1.0

org.codehaus.jackson.map
Class BaseMapper

java.lang.Object
  extended by org.codehaus.jackson.map.BaseMapper
Direct Known Subclasses:
JavaTypeMapper, JsonTypeMapperBase

public abstract class BaseMapper
extends Object

This base class defines API aspects that are shared between different concrete mapper types.


Nested Class Summary
static class BaseMapper.DupFields
          Enumeration that defines strategies available for dealing with duplicate field names (when mapping JSON to Java types).
 
Field Summary
protected  BaseMapper.DupFields mCfgDupFields
          This option defines how duplicate field names (from JSON input) are to be handled.
 
Constructor Summary
BaseMapper()
           
 
Method Summary
 BaseMapper.DupFields getDupFieldHandling()
           
protected  void reportProblem(JsonParser jp, String msg)
           
 void setDupFieldHandling(BaseMapper.DupFields mode)
           
protected  void throwInternal(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mCfgDupFields

protected BaseMapper.DupFields mCfgDupFields
This option defines how duplicate field names (from JSON input) are to be handled. Default is to throw a JsonParseException.

Constructor Detail

BaseMapper

public BaseMapper()
Method Detail

setDupFieldHandling

public void setDupFieldHandling(BaseMapper.DupFields mode)

getDupFieldHandling

public BaseMapper.DupFields getDupFieldHandling()

throwInternal

protected void throwInternal(String msg)

reportProblem

protected void reportProblem(JsonParser jp,
                             String msg)
                      throws JsonParseException
Throws:
JsonParseException

JSON
Version 1.0

Apache License, Version 2.0