org.codehaus.jackson.map.deser.EnumMapDeserializer Maven / Gradle / Ivy
Go to download
Data Mapper package is a high-performance data binding package
built on Jackson JSON processor
package org.codehaus.jackson.map.deser;
import java.io.IOException;
import java.util.*;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonToken;
import org.codehaus.jackson.map.JsonDeserializer;
import org.codehaus.jackson.map.DeserializationContext;
import org.codehaus.jackson.map.TypeDeserializer;
/**
*
*
* Note: casting within this class is all messed up -- just could not figure out a way
* to properly deal with recursive definition of "EnumMap, V>
*
* @author tsaloranta
*/
public final class EnumMapDeserializer
extends StdDeserializer>
{
protected final Class> _enumClass;
protected final JsonDeserializer> _keyDeserializer;
protected final JsonDeserializer