• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.fasterxml.jackson.databind;
2 
3 import java.io.IOException;
4 
5 /**
6  * Abstract class that defines API used for deserializing JSON content
7  * field names into Java Map keys. These deserializers are only used
8  * if the Map key class is not <code>String</code> or <code>Object</code>.
9  */
10 public abstract class KeyDeserializer
11 {
12     /**
13      * Method called to deserialize a {@link java.util.Map} key from JSON property name.
14      */
deserializeKey(String key, DeserializationContext ctxt)15     public abstract Object deserializeKey(String key, DeserializationContext ctxt)
16         throws IOException;
17 
18     /**
19      * This marker class is only to be used with annotations, to
20      * indicate that <b>no deserializer is configured</b>.
21      *<p>
22      * Specifically, this class is to be used as the marker for
23      * annotation {@link com.fasterxml.jackson.databind.annotation.JsonDeserialize}.
24      */
25     public abstract static class None
26         extends KeyDeserializer { }
27 }
28