@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-04-24T11:17:38-05:00", comments = "JAXB RI v2.2.11") public void setContributor(List<Contributor> value) { this.contributor = null; if (value!= null) { List<Contributor> draftl = this.getContributor(); draftl.addAll(value); } }
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-04-24T11:17:38-05:00", comments = "JAXB RI v2.2.11") public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { List<Contributor> theContributor; theContributor = (((this.contributor!= null)&&(!this.contributor.isEmpty()))?this.getContributor():null); strategy.appendField(locator, this, "contributor", buffer, theContributor); } return buffer; }
public void filterContributorPrivateData(Work work) { if (work.getWorkContributors() != null && work.getWorkContributors().getContributor() != null) { List<Contributor> contributorList = work.getWorkContributors().getContributor(); List<Contributor> contributorsToPopulateName = new ArrayList<Contributor>(); Set<String> idsToPopulateName = new HashSet<String>();
if (work.getWorkContributors() != null && work.getWorkContributors().getContributor() != null) { for (Contributor c : work.getWorkContributors().getContributor()) { if (c.getCreditName() != null && c.getCreditName().getContent() != null) { names.add(c.getCreditName().getContent());
if (!contributors.getContributor().isEmpty()) { for (Contributor contributor : contributors.getContributor()) { if (contributor.getContributorOrcid() != null) { ContributorOrcid contributorOrcid = contributor.getContributorOrcid();
public static void cleanEmptyFields(Work work) { if(work != null) { if(work.getWorkCitation() != null) { if(PojoUtil.isEmpty(work.getWorkCitation().getCitation())) { work.setWorkCitation(null); } } if(work.getWorkTitle() != null) { if(work.getWorkTitle().getTranslatedTitle() != null) { if(PojoUtil.isEmpty(work.getWorkTitle().getTranslatedTitle().getContent())) { work.getWorkTitle().setTranslatedTitle(null); } } } if(work.getWorkContributors() != null && work.getWorkContributors().getContributor() != null) { for(Contributor c : work.getWorkContributors().getContributor()) { if(c.getCreditName() != null && PojoUtil.isEmpty(c.getCreditName().getContent())) { c.setCreditName(null); } } } } }
if (work.getWorkContributors() != null && work.getWorkContributors().getContributor() != null) { for (Contributor c : work.getWorkContributors().getContributor()) { if (c.getCreditName() != null && c.getCreditName().getContent() != null) { names.add(StringUtils.stripAccents(c.getCreditName().getContent()));