@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FundingTitle other = (FundingTitle) obj; 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; return true; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((title == null) ? 0 : title.hashCode()); result = prime * result + ((translatedTitle == null) ? 0 : translatedTitle.hashCode()); return result; }
out.append(",\ntitle={"+escapeStringForBibtex((work.getWorkTitle() != null) ? work.getWorkTitle().getTitle().getContent() : "No Title")+"}"); out.append(",\njournal={"+escapeStringForBibtex(work.getJournalTitle().getContent())+"}");
public void validateWork(Work work, SourceEntity sourceEntity, boolean createFlag, boolean isApiRequest, Visibility originalVisibility) { WorkTitle title = work.getWorkTitle(); if (title == null || title.getTitle() == null || PojoUtil.isEmpty(title.getTitle().getContent())) { throw new ActivityTitleValidationException();
public void validateFunding(Funding funding, SourceEntity sourceEntity, boolean createFlag, boolean isApiRequest, Visibility originalVisibility) { FundingTitle title = funding.getTitle(); if (title == null || title.getTitle() == null || StringUtils.isEmpty(title.getTitle().getContent())) { throw new ActivityTitleValidationException();
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((subtitle == null) ? 0 : subtitle.hashCode()); result = prime * result + ((title == null) ? 0 : title.hashCode()); result = prime * result + ((translatedTitle == null) ? 0 : translatedTitle.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; WorkTitle other = (WorkTitle) obj; 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; return true; }
builder.title((work.getWorkTitle() != null) ? StringUtils.stripAccents(work.getWorkTitle().getTitle().getContent()) : "No Title"); String doi = extractID(work, WorkExternalIdentifierType.DOI); String url = extractID(work, WorkExternalIdentifierType.URI); builder.containerTitle(StringUtils.stripAccents(work.getJournalTitle().getContent()));
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((externalIdentifiers == null) ? 0 : externalIdentifiers.hashCode()); result = prime * result + ((journalTitle == null) ? 0 : journalTitle.hashCode()); result = prime * result + ((title == null) ? 0 : title.hashCode()); result = prime * result + ((type == null) ? 0 : type.hashCode()); result = prime * result + ((url == null) ? 0 : url.hashCode()); return result; }
if (other.journalTitle != null) return false; } else if (!journalTitle.equals(other.journalTitle)) return false; if (title == null) {
SchemaOrgAffiliation a = createOrg( e.getFundingSummary().get(0).getOrganization().getName(), e.getFundingSummary().get(0).getTitle().getTitle().getContent(), e.getFundingSummary().get(0).getOrganization().getDisambiguatedOrganization().getDisambiguationSource(), e.getFundingSummary().get(0).getOrganization().getDisambiguatedOrganization().getDisambiguatedOrganizationIdentifier(), SchemaOrgWork sw = new SchemaOrgWork(); if (wg.getWorkSummary().get(0) != null && wg.getWorkSummary().get(0).getTitle() != null && wg.getWorkSummary().get(0).getTitle().getTitle() != null) sw.name = wg.getWorkSummary().get(0).getTitle().getTitle().getContent();
/** * Note that put-code is not part of hashcode. This is important for avoid * creation of duplication works. */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((publicationDate == null) ? 0 : publicationDate.hashCode()); result = prime * result + ((shortDescription == null) ? 0 : shortDescription.hashCode()); result = prime * result + ((url == null) ? 0 : url.hashCode()); result = prime * result + ((visibility == null) ? 0 : visibility.hashCode()); result = prime * result + ((citation == null) ? 0 : citation.hashCode()); result = prime * result + ((contributors == null) ? 0 : contributors.hashCode()); result = prime * result + ((externalIdentifiers == null) ? 0 : externalIdentifiers.hashCode()); result = prime * result + ((source == null) ? 0 : source.hashCode()); result = prime * result + ((title == null) ? 0 : title.hashCode()); result = prime * result + ((type == null) ? 0 : type.hashCode()); result = prime * result + ((journalTitle == null) ? 0 : journalTitle.hashCode()); result = prime * result + ((languageCode == null) ? 0 : languageCode.hashCode()); result = prime * result + ((country == null) ? 0 : country.hashCode()); return result; }
if (other.journalTitle != null) return false; } else if (!journalTitle.equals(other.journalTitle)) return false;
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((completionDate == null) ? 0 : completionDate.hashCode()); result = prime * result + ((createdDate == null) ? 0 : createdDate.hashCode()); result = prime * result + ((externalIdentifiers == null) ? 0 : externalIdentifiers.hashCode()); result = prime * result + ((lastModifiedDate == null) ? 0 : lastModifiedDate.hashCode()); result = prime * result + ((organization == null) ? 0 : organization.hashCode()); result = prime * result + ((role == null) ? 0 : role.hashCode()); result = prime * result + ((source == null) ? 0 : source.hashCode()); result = prime * result + ((type == null) ? 0 : type.hashCode()); result = prime * result + ((url == null) ? 0 : url.hashCode()); result = prime * result + ((visibility == null) ? 0 : visibility.hashCode()); result = prime * result + ((subjectExternalIdentifier == null) ? 0 : subjectExternalIdentifier.hashCode()); result = prime * result + ((subjectContainerName == null) ? 0 : subjectContainerName.hashCode()); result = prime * result + ((subjectType == null) ? 0 : subjectType.hashCode()); result = prime * result + ((subjectName == null) ? 0 : subjectName.hashCode()); result = prime * result + ((subjectUrl == null) ? 0 : subjectUrl.hashCode()); return result; }
if(other.subjectContainerName != null) return false; } else if(!subjectContainerName.equals(other.subjectContainerName)) { return false;