All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openprovenance.prov.template.log2prov.DocumentMergerProcessor Maven / Gradle / Ivy

The newest version!
package org.openprovenance.prov.template.log2prov;

import org.openprovenance.prov.model.Document;
import org.openprovenance.prov.model.IndexedDocument;

public final class DocumentMergerProcessor implements DocumentProcessor {
    

    private IndexedDocument iDoc;

    public DocumentMergerProcessor(IndexedDocument iDoc) {
        this.iDoc=iDoc;
    }

    @Override
    public void process(Document doc) {
        iDoc.merge(doc);   
    }

    @Override
    public Document getDocument() {
        return iDoc.toDocument();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy