public class PolymorphicScoreJacksonJsonDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<Score>
Score type (but not a subtype).
For a Score subtype field, use HardSoftScoreJacksonJsonDeserializer or similar instead.
For example: use @JsonSerialize(using = PolymorphicScoreJacksonJsonSerializer.class) @JsonDeserialize(using = PolymorphicScoreJacksonJsonDeserializer.class)
on a Score score field which contains a HardSoftScore instance
and it will marshalled to JSON as "score":{"type":"HARD_SOFT",score:"-999hard/-999soft"}.
Score,
PolymorphicScoreJacksonJsonDeserializer| Constructor and Description |
|---|
PolymorphicScoreJacksonJsonDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
Score |
deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context) |
deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic PolymorphicScoreJacksonJsonDeserializer()
public Score deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<Score>IOExceptionCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.