From 4584cf63340241220307b949abacbd809a3df306 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Wed, 19 Aug 2020 11:44:46 +0200 Subject: [PATCH] contains the specialized instance parameter for the dump of the result in the whole graph --- .../schema/dump/oaf/graph/GraphResult.java | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/GraphResult.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/GraphResult.java index 9b8fa0801..b4bee5a3b 100644 --- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/GraphResult.java +++ b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/GraphResult.java @@ -1,4 +1,23 @@ package eu.dnetlib.dhp.schema.dump.oaf.graph; -public class GraphResult { +import eu.dnetlib.dhp.schema.dump.oaf.Instance; +import eu.dnetlib.dhp.schema.dump.oaf.Result; + +import java.util.List; + +/** + * It extends the eu.dnetlib.dhp.schema.dump.oaf.Result with + * - instance of type List to store all the instances associated + * to the result. It corresponds to the same parameter in the result represented in the internal model + */ +public class GraphResult extends Result { + private List instance; + + public List getInstance() { + return instance; + } + + public void setInstance(List instance) { + this.instance = instance; + } }