public static Citation valueOf(org.orcid.jaxb.model.message.Citation citation) { Citation c = new Citation(); if (citation.getCitation() != null) { Text cText = new Text(); cText.setValue(citation.getCitation()); c.setCitation(cText); } if (citation.getWorkCitationType() != null) { Text ctText = new Text(); ctText.setValue(citation.getWorkCitationType().value()); c.setCitationType(ctText); } return c; }
if (workCitation != null && StringUtils.isNotBlank(workCitation.getCitation()) && workCitation.getWorkCitationType() != null) { workEntity.setCitation(workCitation.getCitation()); workEntity.setCitationType(workCitation.getWorkCitationType().name());