44 lines
921 B
Java
44 lines
921 B
Java
|
|
package eu.dnetlib.dhp.skgif.model;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.List;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import eu.dnetlib.dhp.oa.model.graph.Relation;
|
|
|
|
/**
|
|
* @author miriam.baglioni
|
|
* @Date 01/09/23
|
|
*/
|
|
public class Relations implements Serializable {
|
|
@JsonProperty("relation_type")
|
|
private String relationType;
|
|
@JsonProperty("product_list")
|
|
private List<String> productList;
|
|
|
|
public static Relations newInstance(String relClass, List<String> target) {
|
|
Relations r = new Relations();
|
|
r.relationType = relClass;
|
|
r.productList = target;
|
|
return r;
|
|
}
|
|
|
|
public String getRelationType() {
|
|
return relationType;
|
|
}
|
|
|
|
public void setRelationType(String relationType) {
|
|
this.relationType = relationType;
|
|
}
|
|
|
|
public List<String> getProductList() {
|
|
return productList;
|
|
}
|
|
|
|
public void setProductList(List<String> productList) {
|
|
this.productList = productList;
|
|
}
|
|
}
|