2024-03-01 12:26:58 +01:00
|
|
|
package eu.dnetlib.dhp.schema.solr;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
public class Subject implements Serializable {
|
|
|
|
|
2024-03-06 20:49:27 +01:00
|
|
|
private static final long serialVersionUID = -7242293435544930481L;
|
|
|
|
|
2024-03-01 12:26:58 +01:00
|
|
|
private String value;
|
|
|
|
|
|
|
|
private String type;
|
|
|
|
|
2024-03-01 15:25:28 +01:00
|
|
|
public static Subject newInstance(String value, String type) {
|
|
|
|
Subject s = new Subject();
|
|
|
|
s.setValue(value);
|
|
|
|
s.setType(type);
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
2024-03-01 12:26:58 +01:00
|
|
|
public String getValue() {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setValue(String value) {
|
|
|
|
this.value = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setType(String type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
}
|