/** * Populates the given channel with parsed data from the ROME element that holds the * channel data. * * @param channel the channel into which parsed data will be added. * @param eChannel the XML element that holds the data for the channel. */ protected void populateChannel(Channel channel,Element eChannel) { String title = channel.getTitle(); if (title!=null) { eChannel.addContent(generateSimpleElement("title",title)); } String link = channel.getLink(); if (link!=null) { eChannel.addContent(generateSimpleElement("link",link)); } String description = channel.getDescription(); if (description!=null) { eChannel.addContent(generateSimpleElement("description",description)); } }
/** * Populates the given channel with parsed data from the ROME element that holds the * channel data. * * @param channel the channel into which parsed data will be added. * @param eChannel the XML element that holds the data for the channel. */ protected void populateChannel(Channel channel,Element eChannel) { String title = channel.getTitle(); if (title!=null) { eChannel.addContent(generateSimpleElement("title",title)); } String link = channel.getLink(); if (link!=null) { eChannel.addContent(generateSimpleElement("link",link)); } String description = channel.getDescription(); if (description!=null) { eChannel.addContent(generateSimpleElement("description",description)); } }
/** * Populates the given channel with parsed data from the ROME element that holds the * channel data. * * @param channel the channel into which parsed data will be added. * @param eChannel the XML element that holds the data for the channel. */ protected void populateChannel(Channel channel,Element eChannel) { String title = channel.getTitle(); if (title!=null) { eChannel.addContent(generateSimpleElement("title",title)); } String link = channel.getLink(); if (link!=null) { eChannel.addContent(generateSimpleElement("link",link)); } String description = channel.getDescription(); if (description!=null) { eChannel.addContent(generateSimpleElement("description",description)); } }
/** * Populates the given channel with parsed data from the ROME element that holds the * channel data. * * @param channel the channel into which parsed data will be added. * @param eChannel the XML element that holds the data for the channel. */ protected void populateChannel(Channel channel,Element eChannel) { String title = channel.getTitle(); if (title!=null) { eChannel.addContent(generateSimpleElement("title",title)); } String link = channel.getLink(); if (link!=null) { eChannel.addContent(generateSimpleElement("link",link)); } String description = channel.getDescription(); if (description!=null) { eChannel.addContent(generateSimpleElement("description",description)); } }
public void copyInto(WireFeed feed,SyndFeed syndFeed) { syndFeed.setModules(ModuleUtils.cloneModules(feed.getModules())); if (((List)feed.getForeignMarkup()).size() > 0) { syndFeed.setForeignMarkup(feed.getForeignMarkup()); } syndFeed.setEncoding(feed.getEncoding()); Channel channel = (Channel) feed; syndFeed.setTitle(channel.getTitle()); syndFeed.setLink(channel.getLink()); syndFeed.setDescription(channel.getDescription()); Image image = channel.getImage(); if (image!=null) { syndFeed.setImage(createSyndImage(image)); } List items = channel.getItems(); if (items!=null) { syndFeed.setEntries(createSyndEntries(items, syndFeed.isPreservingWireFeed())); } }
public void copyInto(WireFeed feed,SyndFeed syndFeed) { syndFeed.setModules(ModuleUtils.cloneModules(feed.getModules())); if (((List)feed.getForeignMarkup()).size() > 0) { syndFeed.setForeignMarkup(feed.getForeignMarkup()); } syndFeed.setEncoding(feed.getEncoding()); Channel channel = (Channel) feed; syndFeed.setTitle(channel.getTitle()); syndFeed.setLink(channel.getLink()); syndFeed.setDescription(channel.getDescription()); Image image = channel.getImage(); if (image!=null) { syndFeed.setImage(createSyndImage(image)); } List items = channel.getItems(); if (items!=null) { syndFeed.setEntries(createSyndEntries(items, syndFeed.isPreservingWireFeed())); } }
public void copyInto(WireFeed feed,SyndFeed syndFeed) { syndFeed.setModules(ModuleUtils.cloneModules(feed.getModules())); if (((List)feed.getForeignMarkup()).size() > 0) { syndFeed.setForeignMarkup(feed.getForeignMarkup()); } syndFeed.setEncoding(feed.getEncoding()); Channel channel = (Channel) feed; syndFeed.setTitle(channel.getTitle()); syndFeed.setLink(channel.getLink()); syndFeed.setDescription(channel.getDescription()); Image image = channel.getImage(); if (image!=null) { syndFeed.setImage(createSyndImage(image)); } List items = channel.getItems(); if (items!=null) { syndFeed.setEntries(createSyndEntries(items, syndFeed.isPreservingWireFeed())); } }
public void copyInto(WireFeed feed,SyndFeed syndFeed) { syndFeed.setModules(ModuleUtils.cloneModules(feed.getModules())); if (((List)feed.getForeignMarkup()).size() > 0) { syndFeed.setForeignMarkup(feed.getForeignMarkup()); } syndFeed.setEncoding(feed.getEncoding()); Channel channel = (Channel) feed; syndFeed.setTitle(channel.getTitle()); syndFeed.setLink(channel.getLink()); syndFeed.setDescription(channel.getDescription()); Image image = channel.getImage(); if (image!=null) { syndFeed.setImage(createSyndImage(image)); } List items = channel.getItems(); if (items!=null) { syndFeed.setEntries(createSyndEntries(items, syndFeed.isPreservingWireFeed())); } }
createStringProperty(r_feed, NS_DC_TERMS + "description", feed.getDescription());
createStringProperty(r_feed, NS_DC_TERMS + "description", feed.getDescription());