|
| 1 | +package org.orcid.core.model; |
| 2 | + |
| 3 | +import java.util.Objects; |
| 4 | + |
| 5 | +import javax.xml.bind.annotation.XmlAccessType; |
| 6 | +import javax.xml.bind.annotation.XmlAccessorType; |
| 7 | +import javax.xml.bind.annotation.XmlElement; |
| 8 | +import javax.xml.bind.annotation.XmlRootElement; |
| 9 | +import javax.xml.bind.annotation.XmlType; |
| 10 | + |
| 11 | +import org.orcid.jaxb.model.v3.release.common.FuzzyDate; |
| 12 | + |
| 13 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 14 | + |
| 15 | +@XmlAccessorType(XmlAccessType.FIELD) |
| 16 | +@XmlType(propOrder = { "putCode", "type", "organizationName", "role", "url", "startDate", "endDate", "validated" }) |
| 17 | +@XmlRootElement(name = "education-qualification", namespace = "http://www.orcid.org/ns/summary") |
| 18 | +@Schema(description = "Education Qualification") |
| 19 | +public class EducationQualification { |
| 20 | + @XmlElement(name = "put-code", namespace = "http://www.orcid.org/ns/summary") |
| 21 | + protected Long putCode; |
| 22 | + @XmlElement(name = "start-date", namespace = "http://www.orcid.org/ns/common") |
| 23 | + protected FuzzyDate startDate; |
| 24 | + @XmlElement(name = "end-date", namespace = "http://www.orcid.org/ns/common") |
| 25 | + protected FuzzyDate endDate; |
| 26 | + @XmlElement(name = "type", namespace = "http://www.orcid.org/ns/summary") |
| 27 | + protected String type; |
| 28 | + @XmlElement(name = "organization-name", namespace = "http://www.orcid.org/ns/summary") |
| 29 | + protected String organizationName; |
| 30 | + @XmlElement(name = "role", namespace = "http://www.orcid.org/ns/summary") |
| 31 | + protected String role; |
| 32 | + @XmlElement(name = "url", namespace = "http://www.orcid.org/ns/summary") |
| 33 | + protected String url; |
| 34 | + @XmlElement(name = "validated", namespace = "http://www.orcid.org/ns/summary") |
| 35 | + protected boolean validated; |
| 36 | + |
| 37 | + public Long getPutCode() { |
| 38 | + return putCode; |
| 39 | + } |
| 40 | + |
| 41 | + public void setPutCode(Long putCode) { |
| 42 | + this.putCode = putCode; |
| 43 | + } |
| 44 | + |
| 45 | + public FuzzyDate getStartDate() { |
| 46 | + return startDate; |
| 47 | + } |
| 48 | + |
| 49 | + public void setStartDate(FuzzyDate startDate) { |
| 50 | + this.startDate = startDate; |
| 51 | + } |
| 52 | + |
| 53 | + public FuzzyDate getEndDate() { |
| 54 | + return endDate; |
| 55 | + } |
| 56 | + |
| 57 | + public void setEndDate(FuzzyDate endDate) { |
| 58 | + this.endDate = endDate; |
| 59 | + } |
| 60 | + |
| 61 | + public String getType() { |
| 62 | + return type; |
| 63 | + } |
| 64 | + |
| 65 | + public void setType(String type) { |
| 66 | + this.type = type; |
| 67 | + } |
| 68 | + |
| 69 | + public String getOrganizationName() { |
| 70 | + return organizationName; |
| 71 | + } |
| 72 | + |
| 73 | + public void setOrganizationName(String organizationName) { |
| 74 | + this.organizationName = organizationName; |
| 75 | + } |
| 76 | + |
| 77 | + public String getRole() { |
| 78 | + return role; |
| 79 | + } |
| 80 | + |
| 81 | + public void setRole(String role) { |
| 82 | + this.role = role; |
| 83 | + } |
| 84 | + |
| 85 | + public String getUrl() { |
| 86 | + return url; |
| 87 | + } |
| 88 | + |
| 89 | + public void setUrl(String url) { |
| 90 | + this.url = url; |
| 91 | + } |
| 92 | + |
| 93 | + public boolean isValidated() { |
| 94 | + return validated; |
| 95 | + } |
| 96 | + |
| 97 | + public void setValidated(boolean validated) { |
| 98 | + this.validated = validated; |
| 99 | + } |
| 100 | + |
| 101 | + @Override |
| 102 | + public int hashCode() { |
| 103 | + return Objects.hash(endDate, organizationName, putCode, role, startDate, type, url, validated); |
| 104 | + } |
| 105 | + |
| 106 | + @Override |
| 107 | + public boolean equals(Object obj) { |
| 108 | + if (this == obj) |
| 109 | + return true; |
| 110 | + if (obj == null) |
| 111 | + return false; |
| 112 | + if (getClass() != obj.getClass()) |
| 113 | + return false; |
| 114 | + EducationQualification other = (EducationQualification) obj; |
| 115 | + return Objects.equals(endDate, other.endDate) && Objects.equals(organizationName, other.organizationName) && Objects.equals(putCode, other.putCode) |
| 116 | + && Objects.equals(role, other.role) && Objects.equals(startDate, other.startDate) && Objects.equals(type, other.type) && Objects.equals(url, other.url) |
| 117 | + && validated == other.validated; |
| 118 | + } |
| 119 | +} |
0 commit comments