diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/TypedRow.java b/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/TypedRow.java index 13f3ca611..8ca6eb7ed 100644 --- a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/TypedRow.java +++ b/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/TypedRow.java @@ -1,6 +1,8 @@ package eu.dnetlib.dhp; +import eu.dnetlib.dhp.schema.oaf.Author; + import java.io.Serializable; import java.util.*; @@ -10,6 +12,23 @@ public class TypedRow implements Serializable { private String type; private String value; private Set accumulator; + private List authors; + + public List getAuthors() { + return authors; + } + + public TypedRow setAuthors(List authors) { + this.authors = authors; + return this; + } + + public void addAuthor(Author a){ + if(authors == null){ + authors = new ArrayList<>(); + } + authors.add(a); + } public Set getAccumulator() { return accumulator;