WIP: align Solr JSON records to the explore portal requirements

This commit is contained in:
Claudio Atzori 2024-06-20 16:01:42 +02:00
parent ae5337f266
commit 8658cf9a01
1 changed files with 27 additions and 1 deletions

View File

@ -1,10 +1,36 @@
package eu.dnetlib.dhp.schema.solr; package eu.dnetlib.dhp.schema.solr;
import java.io.Serializable; import java.io.Serializable;
import java.util.List;
public class Measure implements Serializable { public class Measure implements Serializable {
private static final long serialVersionUID = 57939927121851504L; private static final long serialVersionUID = 57939927121851504L;
//TODO define me! private String id;
private List<CodeLabel> unit;
public static Measure newInstance(String id, List<CodeLabel> 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<CodeLabel> getUnit() {
return unit;
}
public void setUnit(List<CodeLabel> unit) {
this.unit = unit;
}
} }