2018-06-27 12:29:21 +02:00
|
|
|
package eu.eudat.logic.builders.model.models;
|
2018-03-08 11:54:56 +01:00
|
|
|
|
2018-06-27 12:29:21 +02:00
|
|
|
import eu.eudat.logic.builders.Builder;
|
|
|
|
import eu.eudat.models.data.dmp.Researcher;
|
2018-03-08 11:54:56 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by ikalyvas on 3/6/2018.
|
|
|
|
*/
|
|
|
|
public class ResearcherBuilder extends Builder<Researcher> {
|
|
|
|
private String label;
|
|
|
|
private String name;
|
|
|
|
private String id;
|
|
|
|
private int status;
|
|
|
|
|
|
|
|
public String getLabel() {
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ResearcherBuilder label(String label) {
|
|
|
|
this.label = label;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ResearcherBuilder name(String name) {
|
|
|
|
this.name = name;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ResearcherBuilder id(String id) {
|
|
|
|
this.id = id;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getStatus() {
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ResearcherBuilder status(int status) {
|
|
|
|
this.status = status;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Researcher build() {
|
|
|
|
Researcher researcher = new Researcher();
|
|
|
|
researcher.setId(id);
|
|
|
|
researcher.setLabel(label);
|
|
|
|
researcher.setName(name);
|
|
|
|
researcher.setStatus(status);
|
|
|
|
return researcher;
|
|
|
|
}
|
|
|
|
}
|