2019-10-24 11:39:41 +02:00
|
|
|
package eu.dnetlib.dhp.schema.oaf;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
2019-10-25 11:54:14 +02:00
|
|
|
import java.util.List;
|
2020-03-11 16:57:28 +01:00
|
|
|
import java.util.Objects;
|
2019-10-24 11:39:41 +02:00
|
|
|
|
|
|
|
public class Author implements Serializable {
|
|
|
|
|
2019-10-25 11:54:14 +02:00
|
|
|
private String fullname;
|
|
|
|
|
2019-10-24 11:39:41 +02:00
|
|
|
private String name;
|
|
|
|
|
2019-10-25 11:54:14 +02:00
|
|
|
private String surname;
|
|
|
|
|
|
|
|
private Integer rank;
|
|
|
|
|
2019-11-07 17:38:37 +01:00
|
|
|
private List<StructuredProperty> pid;
|
2019-10-24 11:39:41 +02:00
|
|
|
|
2019-10-25 11:54:14 +02:00
|
|
|
private List<Field<String>> affiliation;
|
2019-10-24 11:39:41 +02:00
|
|
|
|
2019-10-25 11:54:14 +02:00
|
|
|
public String getFullname() {
|
|
|
|
return fullname;
|
|
|
|
}
|
2019-10-24 11:39:41 +02:00
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setFullname(String fullname) {
|
2019-10-25 11:54:14 +02:00
|
|
|
this.fullname = fullname;
|
|
|
|
}
|
2019-10-24 11:39:41 +02:00
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setName(String name) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
2019-10-25 11:54:14 +02:00
|
|
|
public String getSurname() {
|
|
|
|
return surname;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setSurname(String surname) {
|
2019-10-25 11:54:14 +02:00
|
|
|
this.surname = surname;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
2019-10-25 11:54:14 +02:00
|
|
|
public Integer getRank() {
|
|
|
|
return rank;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setRank(Integer rank) {
|
2019-10-25 11:54:14 +02:00
|
|
|
this.rank = rank;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
2019-11-07 17:38:37 +01:00
|
|
|
public List<StructuredProperty> getPid() {
|
2019-10-25 11:54:14 +02:00
|
|
|
return pid;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
2019-11-07 17:38:37 +01:00
|
|
|
public void setPid(List<StructuredProperty> pid) {
|
2019-10-25 11:54:14 +02:00
|
|
|
this.pid = pid;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
2019-10-25 11:54:14 +02:00
|
|
|
public List<Field<String>> getAffiliation() {
|
|
|
|
return affiliation;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setAffiliation(List<Field<String>> affiliation) {
|
2019-10-25 11:54:14 +02:00
|
|
|
this.affiliation = affiliation;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
2020-03-11 16:57:28 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean equals(Object o) {
|
|
|
|
if (this == o) return true;
|
|
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
Author author = (Author) o;
|
2020-04-18 12:42:58 +02:00
|
|
|
return Objects.equals(fullname, author.fullname)
|
|
|
|
&& Objects.equals(name, author.name)
|
|
|
|
&& Objects.equals(surname, author.surname)
|
|
|
|
&& Objects.equals(rank, author.rank)
|
|
|
|
&& Objects.equals(pid, author.pid)
|
|
|
|
&& Objects.equals(affiliation, author.affiliation);
|
2020-03-11 16:57:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int hashCode() {
|
|
|
|
return Objects.hash(fullname, name, surname, rank, pid, affiliation);
|
|
|
|
}
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|