protected String getKey(Object obj) { return ((Converter)obj).getType(); }
/** * Creates a real feed containing the information of the SyndFeedImpl. * <p> * @param feedType the feed type for the WireFeed to be created. * @return the real feed. * */ public WireFeed createWireFeed(String feedType) { if (feedType==null) { throw new IllegalArgumentException("Feed type cannot be null"); } Converter converter = CONVERTERS.getConverter(feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+feedType+"]"); } return converter.createRealFeed(this); }
/** * Creates a SyndFeedImpl and populates all its properties out of the * given RSS Channel or Atom Feed properties, while optionally preserving * the WireFeed for access via the orignalWireFeed() method. * * @param feed * @param preserveWireFeed */ public SyndFeedImpl(WireFeed feed, boolean preserveWireFeed) { this(SyndFeed.class,IGNORE_PROPERTIES); if (preserveWireFeed) { this.wireFeed = feed; this.preserveWireFeed = preserveWireFeed; } if (feed!=null) { _feedType = feed.getFeedType(); Converter converter = CONVERTERS.getConverter(_feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+_feedType+"]"); } converter.copyInto(feed,this); } }
/** * Creates a real feed containing the information of the SyndFeedImpl. * <p> * @param feedType the feed type for the WireFeed to be created. * @return the real feed. * */ public WireFeed createWireFeed(String feedType) { if (feedType==null) { throw new IllegalArgumentException("Feed type cannot be null"); } Converter converter = CONVERTERS.getConverter(feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+feedType+"]"); } return converter.createRealFeed(this); }
/** * Creates a SyndFeedImpl and populates all its properties out of the * given RSS Channel or Atom Feed properties, while optionally preserving * the WireFeed for access via the orignalWireFeed() method. * * @param feed * @param preserveWireFeed */ public SyndFeedImpl(WireFeed feed, boolean preserveWireFeed) { this(SyndFeed.class,IGNORE_PROPERTIES); if (preserveWireFeed) { this.wireFeed = feed; this.preserveWireFeed = preserveWireFeed; } if (feed!=null) { _feedType = feed.getFeedType(); Converter converter = CONVERTERS.getConverter(_feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+_feedType+"]"); } converter.copyInto(feed,this); } }
protected String getKey(Object obj) { return ((Converter)obj).getType(); }
/** * Creates a real feed containing the information of the SyndFeedImpl. * <p> * @param feedType the feed type for the WireFeed to be created. * @return the real feed. * */ public WireFeed createWireFeed(String feedType) { if (feedType==null) { throw new IllegalArgumentException("Feed type cannot be null"); } Converter converter = CONVERTERS.getConverter(feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+feedType+"]"); } return converter.createRealFeed(this); }
/** * Creates a SyndFeedImpl and populates all its properties out of the * given RSS Channel or Atom Feed properties, while optionally preserving * the WireFeed for access via the orignalWireFeed() method. * * @param feed * @param preserveWireFeed */ public SyndFeedImpl(WireFeed feed, boolean preserveWireFeed) { this(SyndFeed.class,IGNORE_PROPERTIES); if (preserveWireFeed) { this.wireFeed = feed; this.preserveWireFeed = preserveWireFeed; } if (feed!=null) { _feedType = feed.getFeedType(); Converter converter = CONVERTERS.getConverter(_feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+_feedType+"]"); } converter.copyInto(feed,this); } }
protected String getKey(Object obj) { return ((Converter)obj).getType(); }
/** * Creates a real feed containing the information of the SyndFeedImpl. * <p> * @param feedType the feed type for the WireFeed to be created. * @return the real feed. * */ public WireFeed createWireFeed(String feedType) { if (feedType==null) { throw new IllegalArgumentException("Feed type cannot be null"); } Converter converter = CONVERTERS.getConverter(feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+feedType+"]"); } return converter.createRealFeed(this); }
/** * Creates a SyndFeedImpl and populates all its properties out of the * given RSS Channel or Atom Feed properties, while optionally preserving * the WireFeed for access via the orignalWireFeed() method. * * @param feed * @param preserveWireFeed */ public SyndFeedImpl(WireFeed feed, boolean preserveWireFeed) { this(SyndFeed.class,IGNORE_PROPERTIES); if (preserveWireFeed) { this.wireFeed = feed; this.preserveWireFeed = preserveWireFeed; } if (feed!=null) { _feedType = feed.getFeedType(); Converter converter = CONVERTERS.getConverter(_feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+_feedType+"]"); } converter.copyInto(feed,this); } }
protected String getKey(Object obj) { return ((Converter)obj).getType(); }