blob: bb1c3d0638d582f35ae29308cf71b33e5fe01235 [file] [log] [blame]
package org.codehaus.jackson.map;
import java.io.IOException;
import org.codehaus.jackson.*;
/**
* Abstract class that defines API used for deserializing Json content
* field names into Java Map keys. These deserializers are only used
* if the Map key class is not <code>String</code> or <code>Object</code>.
*/
public abstract class KeyDeserializer
{
public abstract Object deserializeKey(String key, DeserializationContext ctxt)
throws IOException, JsonProcessingException;
/**
* This marker class is only to be used with annotations, to
* indicate that <b>no deserializer is configured</b>.
*<p>
* Specifically, this class is to be used as the marker for
* annotation {@link org.codehaus.jackson.map.annotate.JsonDeserialize}
* (and deprecated {@link org.codehaus.jackson.annotate.JsonUseDeserializer}).
*
* @since 1.3
*/
public abstract static class None
extends KeyDeserializer { }
}