You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.2 KiB
Java
61 lines
1.2 KiB
Java
package eu.eudat.logic.builders.model.models;
|
|
|
|
import eu.eudat.logic.builders.Builder;
|
|
import eu.eudat.models.data.dmp.Researcher;
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
}
|