if (entry.getPublishedDate() != null) jsonObject.put("pubDate", entry.getPublishedDate().toString()); if (entry.getUpdatedDate() != null) jsonObject.put("updateDate", entry.getUpdatedDate().toString()); if (entry.getDescription() != null) jsonObject.put("description", entry.getDescription().getValue().toString());
if (sTitle!=null) { Content title = new Content(); if (sTitle.getType() != null) { title.setType(sTitle.getType()); if (sTitle.getMode() != null) { title.setMode(sTitle.getMode()); title.setValue(sTitle.getValue()); aEntry.setTitleEx(title); if (sContent!=null) { Content content = new Content(); content.setType(sContent.getType()); content.setValue(sContent.getValue()); content.setMode(Content.ESCAPED); aEntry.setSummary(content); sContent = (SyndContentImpl) contents.get(i); Content content = new Content(); content.setType(sContent.getType()); content.setValue(sContent.getValue()); content.setMode(sContent.getMode()); aContents.add(content);
/** * Sets the entry title. * <p> * @param title the entry title to set, <b>null</b> if none. * */ public void setTitle(String title) { if (_title == null) _title = new SyndContentImpl(); _title.setValue(title); }
private static void _regexpStrip(SyndFeed syndFeed) { syndFeed.setTitle(_regexpStrip(syndFeed.getTitle())); syndFeed.setDescription(_regexpStrip(syndFeed.getDescription())); List<SyndEntry> syndEntries = syndFeed.getEntries(); for (SyndEntry syndEntry : syndEntries) { syndEntry.setTitle(_regexpStrip(syndEntry.getTitle())); SyndContent syndContent = syndEntry.getDescription(); syndContent.setValue(_regexpStrip(syndContent.getValue())); } }
if (sTitle!=null) { Content title = new Content(); if (sTitle.getType() != null) { title.setType(sTitle.getType()); if (sTitle.getMode() != null) { title.setMode(sTitle.getMode()); title.setValue(sTitle.getValue()); aEntry.setTitleEx(title); if (sContent!=null) { Content content = new Content(); content.setType(sContent.getType()); content.setValue(sContent.getValue()); content.setMode(Content.ESCAPED); aEntry.setSummary(content); sContent = (SyndContentImpl) contents.get(i); Content content = new Content(); content.setType(sContent.getType()); content.setValue(sContent.getValue()); content.setMode(sContent.getMode()); aContents.add(content);
/** * Sets the feed title. * <p> * @param title the feed title to set, <b>null</b> if none. * */ public void setTitle(String title) { if (_title == null) _title = new SyndContentImpl(); _title.setValue(title); }
/** * Creates a new {@link SyndContent} instance for the given content type and value. * * @param type content type * @param value the content * @return a new {@link SyndContent} instance */ protected SyndContent getSyndContent(String type, String value) { SyndContent content = new SyndContentImpl(); content.setType(type); content.setValue(value); return content; }
if (sTitle!=null) { Content title = new Content(); if (sTitle.getType() != null) { title.setType(sTitle.getType()); if (sTitle.getMode() != null) { title.setMode(sTitle.getMode()); title.setValue(sTitle.getValue()); aEntry.setTitleEx(title); if (sContent!=null) { Content content = new Content(); content.setType(sContent.getType()); content.setValue(sContent.getValue()); content.setMode(Content.ESCAPED); aEntry.setSummary(content); sContent = (SyndContentImpl) contents.get(i); Content content = new Content(); content.setType(sContent.getType()); content.setValue(sContent.getValue()); content.setMode(sContent.getMode()); aContents.add(content);
/** * Returns the feed title. * <p> * @return the feed title, <b>null</b> if none. * */ public String getTitle() { if (_title != null) return _title.getValue(); return null; }
sContent.setType(content.getType()); sContent.setValue(content.getValue()); syndEntry.setDescription(sContent); content = (Content) contents.get(i); SyndContent sContent = new SyndContentImpl(); sContent.setType(content.getType()); sContent.setValue(content.getValue()); sContent.setMode(content.getMode()); sContents.add(sContent);
/** * Sets the feed description. * <p> * @param description the feed description to set, <b>null</b> if none. * */ public void setDescription(String description) { if (_description == null) _description = new SyndContentImpl(); _description.setValue(description); }
if (sTitle!=null) { Content title = new Content(); if (sTitle.getType() != null) { title.setType(sTitle.getType()); if (sTitle.getMode() != null) { title.setMode(sTitle.getMode()); title.setValue(sTitle.getValue()); aEntry.setTitleEx(title); if (sContent!=null) { Content content = new Content(); content.setType(sContent.getType()); content.setValue(sContent.getValue()); content.setMode(Content.ESCAPED); aEntry.setSummary(content); sContent = (SyndContentImpl) content1; Content content = new Content(); content.setType(sContent.getType()); content.setValue(sContent.getValue()); content.setMode(sContent.getMode()); aContents.add(content);
/** * Returns the entry title. * <p> * @return the entry title, <b>null</b> if none. * */ public String getTitle() { if (_title != null) return _title.getValue(); return null; }