2019-10-24 11:39:41 +02:00
|
|
|
package eu.dnetlib.dhp.schema.oaf;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2019-10-25 10:55:35 +02:00
|
|
|
public class Relation extends Oaf<Relation> {
|
2019-10-24 11:39:41 +02:00
|
|
|
|
|
|
|
private String relType;
|
|
|
|
|
|
|
|
private String subRelType;
|
|
|
|
|
|
|
|
private String relClass;
|
|
|
|
|
|
|
|
private String source;
|
|
|
|
|
|
|
|
private String target;
|
|
|
|
|
|
|
|
private List<KeyValue> collectedFrom;
|
|
|
|
|
|
|
|
public String getRelType() {
|
|
|
|
return relType;
|
|
|
|
}
|
|
|
|
|
2019-10-24 16:55:38 +02:00
|
|
|
public Relation setRelType(String relType) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.relType = relType;
|
2019-10-25 10:55:35 +02:00
|
|
|
return self();
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getSubRelType() {
|
|
|
|
return subRelType;
|
|
|
|
}
|
|
|
|
|
2019-10-24 16:55:38 +02:00
|
|
|
public Relation setSubRelType(String subRelType) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.subRelType = subRelType;
|
2019-10-25 10:55:35 +02:00
|
|
|
return self();
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getRelClass() {
|
|
|
|
return relClass;
|
|
|
|
}
|
|
|
|
|
2019-10-24 16:55:38 +02:00
|
|
|
public Relation setRelClass(String relClass) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.relClass = relClass;
|
2019-10-25 10:55:35 +02:00
|
|
|
return self();
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getSource() {
|
|
|
|
return source;
|
|
|
|
}
|
|
|
|
|
2019-10-24 16:55:38 +02:00
|
|
|
public Relation setSource(String source) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.source = source;
|
2019-10-25 10:55:35 +02:00
|
|
|
return self();
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getTarget() {
|
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
2019-10-24 16:55:38 +02:00
|
|
|
public Relation setTarget(String target) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.target = target;
|
2019-10-25 10:55:35 +02:00
|
|
|
return self();
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public List<KeyValue> getCollectedFrom() {
|
|
|
|
return collectedFrom;
|
|
|
|
}
|
|
|
|
|
2019-10-24 16:55:38 +02:00
|
|
|
public Relation setCollectedFrom(List<KeyValue> collectedFrom) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.collectedFrom = collectedFrom;
|
2019-10-25 10:55:35 +02:00
|
|
|
return self();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected Relation self() {
|
2019-10-24 16:55:38 +02:00
|
|
|
return this;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
}
|