Class 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 a Document
    Author:
    Trung Dong Huynh <trungdong@donggiang.com>
    • Constructor Detail

      • ProvDocumentDeserializer

        public ProvDocumentDeserializer​(ProvFactory pf)
    • Method Detail

      • deserialize

        public Document deserialize​(com.google.gson.JsonElement json,
                                    Type typeOfT,
                                    com.google.gson.JsonDeserializationContext context)
                             throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<Document>
        Throws:
        com.google.gson.JsonParseException
      • decodeDictionaryEntry

        public Entry decodeDictionaryEntry​(QualifiedName datatype,
                                           String entryKey,
                                           com.google.gson.JsonElement entryValue)