コード例 #1
0
 protected void addFeed(Feed feed, Element parent) throws FeedException {
   Element eFeed = parent;
   populateFeedHeader(feed, eFeed);
   generateForeignMarkup(eFeed, (List) feed.getForeignMarkup());
   checkFeedHeaderConstraints(eFeed);
   generateFeedModules(feed.getModules(), eFeed);
 }
コード例 #2
0
 @SuppressWarnings("unchecked")
 private void addForeignMarkup(Feed feed, String name, String value) {
   final Element elem = new Element(name);
   elem.setText(String.valueOf(value));
   ((List) feed.getForeignMarkup()).add(elem);
 }