Class ApiEnumDeserializer<T extends Enum<?>>
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<T>
-
- org.springframework.social.google.api.impl.ApiEnumDeserializer<T>
-
- Type Parameters:
T- enum type
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
- Direct Known Subclasses:
AdditionalRoleDeserializer,AttendeeStatusDeserializer,CommentStatusDeserializer,DisplayModeDeserializer,EventStatusDeserializer,IconCategoryDeserializer,NotificationMethodDeserializer,NotificationTypeDeserializer,OrderByDeserializer,PermissionRoleDeserializer,PermissionRoleDeserializer,PermissionTypeDeserializer,ReplyVerbDeserializer,TaskStatusDeserializer,TransparencyDeserializer,UrlTypeDeserializer,VisibilityDeserializer
public abstract class ApiEnumDeserializer<T extends Enum<?>> extends com.fasterxml.jackson.databind.JsonDeserializer<T>JacksonJsonDeserializerthat converts a camel case string to capital underscored string and finds the enum value with that name.- Author:
- Gabriel Axel
-
-
Constructor Summary
Constructors Constructor Description ApiEnumDeserializer(Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdeserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt)-
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
-
-
-
Method Detail
-
deserialize
public T deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
- Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<T extends Enum<?>>- Throws:
IOException
-
-