public SyndFeed toSynd(SyndFeed syndFeed) {
if (syndFeed == null) {
return syndFeed;
}
if (getTitle() != null) {
syndFeed.setTitle(new SyndText(getTitle(), SyndTextType.text));
}
if (getLink() != null) {
SyndLink syndLink = new SyndLink();
syndLink.setHref(getLink());
syndLink.setRel("alternate"); //$NON-NLS-1$
syndFeed.getLinks().add(syndLink);
}
if (getDescription() != null) {
syndFeed.setSubtitle(new SyndText(getDescription(), SyndTextType.text));
}
if (getLanguage() != null) {
syndFeed.setLang(getLanguage());
}
if (getCopyright() != null) {
syndFeed.setRights(new SyndText(getCopyright()));
}
if (getManagingEditor() != null) {
SyndPerson syndAuthor = new SyndPerson();
String authorEmail = getManagingEditor();
syndAuthor.setEmail(authorEmail);