org.codehaus.jackson.map
Class BaseMapper
java.lang.Object
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). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
.
BaseMapper
public BaseMapper()
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
Apache License, Version 2.0