Class StdKeyDeserializer
- java.lang.Object
-
- org.codehaus.jackson.map.KeyDeserializer
-
- org.codehaus.jackson.map.deser.std.StdKeyDeserializer
-
- Direct Known Subclasses:
StdKeyDeserializer
public abstract class StdKeyDeserializer extends KeyDeserializer
Base class for simple key deserializers.- Since:
- 1.9 (moved from 'org.codehaus.jackson.map.deser.StdKeyDeserializer')
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.jackson.map.KeyDeserializer
KeyDeserializer.None
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StdKeyDeserializer(Class<?> cls)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Object
_parse(String key, DeserializationContext ctxt)
protected double
_parseDouble(String key)
protected int
_parseInt(String key)
protected long
_parseLong(String key)
Object
deserializeKey(String key, DeserializationContext ctxt)
Method called to deserialize aMap
key from JSON property name.Class<?>
getKeyClass()
-
-
-
Field Detail
-
_keyClass
protected final Class<?> _keyClass
-
-
Constructor Detail
-
StdKeyDeserializer
protected StdKeyDeserializer(Class<?> cls)
-
-
Method Detail
-
deserializeKey
public final Object deserializeKey(String key, DeserializationContext ctxt) throws IOException, JsonProcessingException
Description copied from class:KeyDeserializer
Method called to deserialize aMap
key from JSON property name.- Specified by:
deserializeKey
in classKeyDeserializer
- Throws:
IOException
JsonProcessingException
-
getKeyClass
public Class<?> getKeyClass()
-
_parse
protected abstract Object _parse(String key, DeserializationContext ctxt) throws Exception
- Throws:
Exception
-
_parseInt
protected int _parseInt(String key) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
_parseLong
protected long _parseLong(String key) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
_parseDouble
protected double _parseDouble(String key) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-