diff --git a/src/main/java/eu/dnetlib/dhp/schema/solr/Measure.java b/src/main/java/eu/dnetlib/dhp/schema/solr/Measure.java index 5495ab2..9c5742f 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/solr/Measure.java +++ b/src/main/java/eu/dnetlib/dhp/schema/solr/Measure.java @@ -1,10 +1,36 @@ package eu.dnetlib.dhp.schema.solr; import java.io.Serializable; +import java.util.List; public class Measure implements Serializable { private static final long serialVersionUID = 57939927121851504L; - //TODO define me! + private String id; + + private List unit; + + public static Measure newInstance(String id, List unit) { + Measure m = new Measure(); + m.setId(id); + m.setUnit(unit); + return m; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public List getUnit() { + return unit; + } + + public void setUnit(List unit) { + this.unit = unit; + } }