/** * ============================================================================= * * ORCID (R) Open Source * http://orcid.org * * Copyright (c) 2012-2014 ORCID, Inc. * Licensed under an MIT-Style License (MIT) * http://orcid.org/open-source-license * * This copyright and license information (including a link to the full license) * shall be included in its entirety in all copies or substantial portion of * the software. * * ============================================================================= */ package org.orcid.pojo.ajaxForm; import java.io.Serializable; import java.util.ArrayList; import java.util.List; public class PeerReviewSubjectForm implements ErrorsInterface, Serializable { private static final long serialVersionUID = -2503063834874602350L; private List<String> errors = new ArrayList<String>(); private Text putCode; private List<WorkExternalIdentifier> workExternalIdentifiers; private Text url; private Text title; private Text subtitle; private TranslatedTitleForm translatedTitle; private Text journalTitle; private Text workType; public List<String> getErrors() { return errors; } public void setErrors(List<String> errors) { this.errors = errors; } public Text getPutCode() { return putCode; } public void setPutCode(Text putCode) { this.putCode = putCode; } public List<WorkExternalIdentifier> getWorkExternalIdentifiers() { return workExternalIdentifiers; } public void setWorkExternalIdentifiers(List<WorkExternalIdentifier> workExternalIdentifiers) { this.workExternalIdentifiers = workExternalIdentifiers; } public Text getUrl() { return url; } public void setUrl(Text url) { this.url = url; } public Text getTitle() { return title; } public void setTitle(Text title) { this.title = title; } public Text getSubtitle() { return subtitle; } public void setSubtitle(Text subtitle) { this.subtitle = subtitle; } public TranslatedTitleForm getTranslatedTitle() { return translatedTitle; } public void setTranslatedTitle(TranslatedTitleForm translatedTitle) { this.translatedTitle = translatedTitle; } public Text getJournalTitle() { return journalTitle; } public void setJournalTitle(Text journalTitle) { this.journalTitle = journalTitle; } public Text getWorkType() { return workType; } public void setWorkType(Text workType) { this.workType = workType; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((journalTitle == null) ? 0 : journalTitle.hashCode()); result = prime * result + ((subtitle == null) ? 0 : subtitle.hashCode()); result = prime * result + ((title == null) ? 0 : title.hashCode()); result = prime * result + ((translatedTitle == null) ? 0 : translatedTitle.hashCode()); result = prime * result + ((url == null) ? 0 : url.hashCode()); result = prime * result + ((workExternalIdentifiers == null) ? 0 : workExternalIdentifiers.hashCode()); result = prime * result + ((workType == null) ? 0 : workType.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; PeerReviewSubjectForm other = (PeerReviewSubjectForm) obj; if (journalTitle == null) { if (other.journalTitle != null) return false; } else if (!journalTitle.equals(other.journalTitle)) return false; if (subtitle == null) { if (other.subtitle != null) return false; } else if (!subtitle.equals(other.subtitle)) return false; if (title == null) { if (other.title != null) return false; } else if (!title.equals(other.title)) return false; if (translatedTitle == null) { if (other.translatedTitle != null) return false; } else if (!translatedTitle.equals(other.translatedTitle)) return false; if (url == null) { if (other.url != null) return false; } else if (!url.equals(other.url)) return false; if (workExternalIdentifiers == null) { if (other.workExternalIdentifiers != null) return false; } else if (!workExternalIdentifiers.equals(other.workExternalIdentifiers)) return false; if (workType == null) { if (other.workType != null) return false; } else if (!workType.equals(other.workType)) return false; return true; } }