public class JsonDeserializer extends Object
Constructor and Description |
---|
JsonDeserializer(String siteIri)
Constructs a new JSON deserializer for the
designated site.
|
Modifier and Type | Method and Description |
---|---|
EntityDocument |
deserializeEntityDocument(String json)
Deserializes a JSON string into a
EntityDocument . |
EntityRedirectDocument |
deserializeEntityRedirectDocument(String json)
Deserializes a JSON string into a
EntityRedirectDocument . |
ItemDocument |
deserializeItemDocument(String json)
Deserializes a JSON string into an
ItemDocument . |
LexemeDocument |
deserializeLexemeDocument(String json)
Deserializes a JSON string into a
LexemeDocument . |
MediaInfoDocument |
deserializeMediaInfoDocument(String json)
Deserializes a JSON string into a
MediaInfoDocument . |
PropertyDocument |
deserializePropertyDocument(String json)
Deserializes a JSON string into a
PropertyDocument . |
public JsonDeserializer(String siteIri)
siteIri
- Root IRI of the site to deserialize forpublic ItemDocument deserializeItemDocument(String json) throws com.fasterxml.jackson.core.JsonProcessingException
ItemDocument
.com.fasterxml.jackson.core.JsonProcessingException
- if the JSON payload is invalidpublic PropertyDocument deserializePropertyDocument(String json) throws com.fasterxml.jackson.core.JsonProcessingException
PropertyDocument
.com.fasterxml.jackson.core.JsonProcessingException
- if the JSON payload is invalidpublic LexemeDocument deserializeLexemeDocument(String json) throws com.fasterxml.jackson.core.JsonProcessingException
LexemeDocument
.com.fasterxml.jackson.core.JsonProcessingException
- if the JSON payload is invalidpublic MediaInfoDocument deserializeMediaInfoDocument(String json) throws com.fasterxml.jackson.core.JsonProcessingException
MediaInfoDocument
.com.fasterxml.jackson.core.JsonProcessingException
- if the JSON payload is invalidpublic EntityDocument deserializeEntityDocument(String json) throws com.fasterxml.jackson.core.JsonProcessingException
EntityDocument
.com.fasterxml.jackson.core.JsonProcessingException
- if the JSON payload is invalidpublic EntityRedirectDocument deserializeEntityRedirectDocument(String json) throws com.fasterxml.jackson.core.JsonProcessingException
EntityRedirectDocument
.com.fasterxml.jackson.core.JsonProcessingException
- if the JSON payload is invalidCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage