org.openprovenance.prov.template.log2prov.DocumentMergerProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prov-template-compiler Show documentation
Show all versions of prov-template-compiler Show documentation
A template system for PROV bundles.
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