@Override public void generateXml(XmlWriter xw, OutputProperties outProps, IAtom source) throws IOException { if (source instanceof IFeed) { IFeed feed = (IFeed) source; if (feed instanceof BaseFeed) { ((BaseFeed<?, ?>) feed).generateRss(xw, outProps.getExtensionProfile()); } else { throw new IllegalArgumentException( "Feed was not an instance of BaseFeed"); } } else if (source instanceof IEntry) { IEntry entry = (IEntry) source; if (entry instanceof BaseEntry) { ((BaseEntry<?>) entry).generateRss(xw, outProps.getExtensionProfile()); } else { throw new IllegalArgumentException( "Entry was not an instance of BaseEntry"); } } else { throw new IllegalStateException("Unexpected source type: " + source); } } }
@Override public void generateXml(XmlWriter xw, OutputProperties outProps, IAtom source) throws IOException { if (source instanceof IFeed) { IFeed feed = (IFeed) source; if (feed instanceof BaseFeed) { ((BaseFeed<?, ?>) feed).generateRss(xw, outProps.getExtensionProfile()); } else { throw new IllegalArgumentException( "Feed was not an instance of BaseFeed"); } } else if (source instanceof IEntry) { IEntry entry = (IEntry) source; if (entry instanceof BaseEntry) { ((BaseEntry<?>) entry).generateRss(xw, outProps.getExtensionProfile()); } else { throw new IllegalArgumentException( "Entry was not an instance of BaseEntry"); } } else { throw new IllegalStateException("Unexpected source type: " + source); } } }
@Override public void generateXml(XmlWriter xw, OutputProperties outProps, IAtom source) throws IOException { if (source instanceof IFeed) { IFeed feed = (IFeed) source; if (feed instanceof BaseFeed) { ((BaseFeed<?, ?>) feed).generateRss(xw, outProps.getExtensionProfile()); } else { throw new IllegalArgumentException( "Feed was not an instance of BaseFeed"); } } else if (source instanceof IEntry) { IEntry entry = (IEntry) source; if (entry instanceof BaseEntry) { ((BaseEntry<?>) entry).generateRss(xw, outProps.getExtensionProfile()); } else { throw new IllegalArgumentException( "Entry was not an instance of BaseEntry"); } } else { throw new IllegalStateException("Unexpected source type: " + source); } } }
w.startRepeatingElement(); for (E entry : entries) { entry.generateRss(w, extProfile);
w.startRepeatingElement(); for (E entry : entries) { entry.generateRss(w, extProfile);
w.startRepeatingElement(); for (E entry : entries) { entry.generateRss(w, extProfile);