public class AliasesDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<Map<String,List<JacksonMonolingualTextValue>>>
JacksonTermedStatementDocument.
It implements a workaround to cope with empty aliases being represented as
"aliases":[] despite its declaration as map and not as list or
array. This is neither nice nor fast, and should be obsolete as soon as
possible.
JacksonTermedStatementDocument.setAliases(Map)| Constructor and Description |
|---|
AliasesDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<JacksonMonolingualTextValue>> |
deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
public Map<String,List<JacksonMonolingualTextValue>> deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<Map<String,List<JacksonMonolingualTextValue>>>IOExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionCopyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage