public static Link[] selectAlternate(Source source, Range... ranges) { return selectAlternate(source.getLinks("alternate"), ranges); }
public static List<Link> getLicense(Base base, boolean inherited) { List<Link> links = null; if (base instanceof Source) { links = ((Source)base).getLinks(Link.REL_LICENSE); } else if (base instanceof Entry) { Entry entry = (Entry)base; Source source = entry.getSource(); Base parent = entry.getParentElement(); links = entry.getLinks(Link.REL_LICENSE); if (inherited && (links == null || links.size() == 0) && source != null) { links = getLicense(source, false); } if (inherited && (links == null || links.size() == 0) && parent != null) { links = getLicense(parent, false); } } return links; }
writeList("authors", source.getAuthors(), jstream); writeList("contributors", source.getContributors(), jstream); writeList("links", source.getLinks(), jstream); writeList("categories", source.getCategories(), jstream); if (FeedPagingHelper.isComplete(source))