Class StdKeyDeserializers
java.lang.Object
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std.StdKeyDeserializers
- All Implemented Interfaces:
KeyDeserializers
,Serializable
Helper class used to contain simple/well-known key deserializers.
Following kinds of Objects can be handled currently:
- Primitive wrappers (Boolean, Byte, Char, Short, Integer, Float, Long, Double)
- Enums (usually not needed, since EnumMap doesn't call us)
Date
Calendar
UUID
Locale
- Anything with constructor that takes a single String arg (if not explicitly @JsonIgnore'd)
- Anything with
static T valueOf(String)
factory method (if not explicitly @JsonIgnore'd)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyDeserializer
constructDelegatingKeyDeserializer
(DeserializationConfig config, JavaType type, JsonDeserializer<?> deser) static KeyDeserializer
constructEnumKeyDeserializer
(EnumResolver enumResolver) static KeyDeserializer
constructEnumKeyDeserializer
(EnumResolver enumResolver, AnnotatedMethod factory) findKeyDeserializer
(JavaType type, DeserializationConfig config, BeanDescription beanDesc) static KeyDeserializer
findStringBasedKeyDeserializer
(DeserializationConfig config, JavaType type)
-
Constructor Details
-
StdKeyDeserializers
public StdKeyDeserializers()
-
-
Method Details
-
constructEnumKeyDeserializer
-
constructEnumKeyDeserializer
public static KeyDeserializer constructEnumKeyDeserializer(EnumResolver enumResolver, AnnotatedMethod factory) -
constructDelegatingKeyDeserializer
public static KeyDeserializer constructDelegatingKeyDeserializer(DeserializationConfig config, JavaType type, JsonDeserializer<?> deser) -
findStringBasedKeyDeserializer
public static KeyDeserializer findStringBasedKeyDeserializer(DeserializationConfig config, JavaType type) throws JsonMappingException - Throws:
JsonMappingException
-
findKeyDeserializer
public KeyDeserializer findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc) throws JsonMappingException - Specified by:
findKeyDeserializer
in interfaceKeyDeserializers
- Throws:
JsonMappingException
-