}
if (getTitle() != null) {
syndEntry.setTitle(new SyndText(getTitle(), SyndTextType.text));
}
if (getLink() != null) {
SyndLink syndLink = new SyndLink();
syndLink.setHref(getLink());
syndLink.setRel("alternate"); //$NON-NLS-1$
syndEntry.getLinks().add(syndLink);
}
if (getDescription() != null) {
syndEntry.setSummary(new SyndText(getDescription()));
}
if (getAuthor() != null) {
SyndPerson syndAuthor = new SyndPerson();
String authorEmail = getAuthor();
syndAuthor.setEmail(authorEmail);
syndAuthor.setName(authorEmail.substring(0, authorEmail.indexOf("@"))); //$NON-NLS-1$
syndEntry.getAuthors().add(syndAuthor);
}
syndEntry.getCategories().clear();
for (RssCategory rssCategory : getCategories()) {
SyndCategory syndCategory = new SyndCategory();
syndCategory = rssCategory.toSynd(syndCategory);
syndEntry.getCategories().add(syndCategory);
}
if (getEnclosure() != null) {
SyndLink syndEnclosureLink = new SyndLink();
syndEnclosureLink = getEnclosure().toSynd(syndEnclosureLink);
syndEntry.getLinks().add(syndEnclosureLink);
}
if (getGuid() != null) {
syndEntry.setId(getGuid().getContent());