private boolean workTitleEmpty(WorkTitle workTitle) { return workTitle == null || workTitle.getTitle() == null || workTitle.getTitle().getContent() == null || workTitle.getTitle().getContent().isEmpty(); }
public void endElement(String uri, String localName, String currentElementName) throws SAXException { this.elementStack.pop(); if (currentElementName.equals("entry")) { isOnEntry = false; } else if (currentElementName.equals("title")) { if (this.title.length() > 0) { WorkTitle workTitle = new WorkTitle(); workTitle.setTitle(new Title(title.toString())); work.setWorkTitle(workTitle); } } else if (currentElementName.equals("summary")) { if (this.description.length() > 0) { work.setShortDescription(this.description.toString()); } } else if (currentElementName.equals("arxiv:journal_ref")) { if (this.journalTitle.length() > 0) { work.setJournalTitle(new Title(this.journalTitle.toString())); } } }
@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; }
@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; }
private void mapGroupToTitle(ActivitiesGroup group, WorkSummary workSummary) { if (!workTitleEmpty(workSummary.getTitle())) { String title = transformForTitleComparison(workSummary.getTitle().getTitle().getContent()); List<ActivitiesGroup> groups = potentialGroupingSuggestions.get(title); if (groups == null) { groups = new ArrayList<>(); } if (!groups.contains(group)) { groups.add(group); } potentialGroupingSuggestions.put(title, groups); } }
@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; ResearchResourceTitle other = (ResearchResourceTitle) 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; }
public FundingTitle toFundingTitle() { FundingTitle gt = new FundingTitle(); if (this.getTitle() != null) gt.setTitle(new Title(this.getTitle().getValue())); if(this.getTranslatedTitle() != null) gt.setTranslatedTitle(this.getTranslatedTitle().toTranslatedTitle()); return gt; }
out.append(",\ntitle={"+escapeStringForBibtex((work.getWorkTitle() != null) ? work.getWorkTitle().getTitle().getContent() : "No Title")+"}"); out.append(",\njournal={"+escapeStringForBibtex(work.getJournalTitle().getContent())+"}");
@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; }
public void validateWork(Work work, Source activeSource, boolean createFlag, boolean isApiRequest, Visibility originalVisibility) { WorkTitle title = work.getWorkTitle(); if (title == null || title.getTitle() == null || PojoUtil.isEmpty(title.getTitle().getContent())) { throw new ActivityTitleValidationException();
@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; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; SubjectName other = (SubjectName) 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; }
public void validateFunding(Funding funding, Source activeSource, 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 + ((createdDate == null) ? 0 : createdDate.hashCode()); result = prime * result + ((externalIdentifiers == null) ? 0 : externalIdentifiers.hashCode()); result = prime * result + ((url == null) ? 0 : url.hashCode()); result = prime * result + ((lastModifiedDate == null) ? 0 : lastModifiedDate.hashCode()); result = prime * result + ((publicationDate == null) ? 0 : publicationDate.hashCode()); result = prime * result + ((putCode == null) ? 0 : putCode.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 + ((visibility == null) ? 0 : visibility.hashCode()); return result; }
if (other.journalTitle != null) return false; } else if (!journalTitle.equals(other.journalTitle)) return false; if (title == null) {