Package org.openprovenance.prov.json
Class ProvDocumentDeserializer
- java.lang.Object
-
- org.openprovenance.prov.json.ProvDocumentDeserializer
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Document>
public class ProvDocumentDeserializer extends Object implements com.google.gson.JsonDeserializer<Document>
A Gson deserializer adapter for PROV-JSON Decode a PROV-JSON structure and produces aDocument- Author:
- Trung Dong Huynh <trungdong@donggiang.com>
-
-
Constructor Summary
Constructors Constructor Description ProvDocumentDeserializer(ProvFactory pf)
-
Method Summary
Modifier and Type Method Description EntrydecodeDictionaryEntry(QualifiedName datatype, String entryKey, com.google.gson.JsonElement entryValue)Documentdeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)QualifiedNamestringToQualifiedName(Namespace namespace, String val, ProvFactory pf, boolean flag)
-
-
-
Constructor Detail
-
ProvDocumentDeserializer
public ProvDocumentDeserializer(ProvFactory pf)
-
-
Method Detail
-
stringToQualifiedName
public QualifiedName stringToQualifiedName(Namespace namespace, String val, ProvFactory pf, boolean flag)
-
deserialize
public Document deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<Document>- Throws:
com.google.gson.JsonParseException
-
decodeDictionaryEntry
public Entry decodeDictionaryEntry(QualifiedName datatype, String entryKey, com.google.gson.JsonElement entryValue)
-
-