public void copyInto(WireFeed feed,SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel,syndFeed); List cats = channel.getCategories(); //c if (cats.size()>0) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(createSyndCategories(cats)); // feed native categories (as syndcat) s.addAll(syndFeed.getCategories()); // DC subjects (as syndcat) syndFeed.setCategories(new ArrayList(s)); } }
public void copyInto(WireFeed feed,SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel,syndFeed); List cats = channel.getCategories(); //c if (cats.size()>0) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(createSyndCategories(cats)); // feed native categories (as syndcat) s.addAll(syndFeed.getCategories()); // DC subjects (as syndcat) syndFeed.setCategories(new ArrayList(s)); } }
@Override public void copyInto(WireFeed feed,SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel,syndFeed); List cats = channel.getCategories(); //c if (cats.size()>0) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(createSyndCategories(cats)); // feed native categories (as syndcat) s.addAll(syndFeed.getCategories()); // DC subjects (as syndcat) syndFeed.setCategories(new ArrayList(s)); } }
@Override public void copyInto(WireFeed feed,SyndFeed syndFeed) { Channel channel = (Channel) feed; super.copyInto(channel,syndFeed); List cats = channel.getCategories(); //c if (cats.size()>0) { Set s = new HashSet(); // using a set to remove duplicates s.addAll(createSyndCategories(cats)); // feed native categories (as syndcat) s.addAll(syndFeed.getCategories()); // DC subjects (as syndcat) syndFeed.setCategories(new ArrayList(s)); } }
protected void populateChannel(Channel channel,Element eChannel) { super.populateChannel(channel,eChannel); String generator = channel.getGenerator(); if (generator != null) { eChannel.addContent(generateSimpleElement("generator", generator)); } int ttl = channel.getTtl(); if (ttl>-1) { eChannel.addContent(generateSimpleElement("ttl", String.valueOf(ttl))); } List categories = channel.getCategories(); for(int i = 0; i < categories.size(); i++) { eChannel.addContent(generateCategoryElement((Category)categories.get(i))); } }
protected void populateChannel(Channel channel,Element eChannel) { super.populateChannel(channel,eChannel); String generator = channel.getGenerator(); if (generator != null) { eChannel.addContent(generateSimpleElement("generator", generator)); } int ttl = channel.getTtl(); if (ttl>-1) { eChannel.addContent(generateSimpleElement("ttl", String.valueOf(ttl))); } List categories = channel.getCategories(); for(int i = 0; i < categories.size(); i++) { eChannel.addContent(generateCategoryElement((Category)categories.get(i))); } }
protected void populateChannel(Channel channel,Element eChannel) { super.populateChannel(channel,eChannel); String generator = channel.getGenerator(); if (generator != null) { eChannel.addContent(generateSimpleElement("generator", generator)); } int ttl = channel.getTtl(); if (ttl>-1) { eChannel.addContent(generateSimpleElement("ttl", String.valueOf(ttl))); } List categories = channel.getCategories(); for(int i = 0; i < categories.size(); i++) { eChannel.addContent(generateCategoryElement((Category)categories.get(i))); } }
protected void populateChannel(Channel channel,Element eChannel) { super.populateChannel(channel,eChannel); String generator = channel.getGenerator(); if (generator != null) { eChannel.addContent(generateSimpleElement("generator", generator)); } int ttl = channel.getTtl(); if (ttl>-1) { eChannel.addContent(generateSimpleElement("ttl", String.valueOf(ttl))); } List categories = channel.getCategories(); for (Object category : categories) { eChannel.addContent(generateCategoryElement((Category) category)); } }
for(Category category : feed.getCategories()) { parseCategory(r_feed,category);
for(Category category : feed.getCategories()) { parseCategory(r_feed,category);