/** * Returns the theme. * * @return theme */ public Theme getTheme() { return getExtension(Theme.class); }
/** * Returns the source sites link. * * @return Source sites link or {@code null} for none. */ public Link getSourceLink() { return getLink(SitesLink.Rel.SOURCE, Link.Type.ATOM); }
/** * Returns the webAddressMapping sites link. * * @return WebAddressMapping sites link. */ public List<Link> getWebAddressMappingLinks() { return getLinks(SitesLink.Rel.WEBADDRESSMAPPING, Link.Type.HTML); }
/** * Sets the site name. * * @param siteName site name or <code>null</code> to reset */ public void setSiteName(SiteName siteName) { if (siteName == null) { removeExtension(SiteName.class); } else { setExtension(siteName); } }
/** * Returns whether it has the theme. * * @return whether it has the theme */ public boolean hasTheme() { return hasExtension(Theme.class); }
/** * Sets the theme. * * @param theme theme or <code>null</code> to reset */ public void setTheme(Theme theme) { if (theme == null) { removeExtension(Theme.class); } else { setExtension(theme); } }
/** * Returns whether it has the site name. * * @return whether it has the site name */ public boolean hasSiteName() { return hasExtension(SiteName.class); }
/** * Returns the link that provides the URI that can be used to post new entries * to the feed. * * @return Link that provides the URI that can be used to post new entries to * the feed or {@code null} for none. */ public Link getEntryPostLink() { return getLink(Link.Rel.ENTRY_POST, Link.Type.ATOM); }
/** * Returns the site name. * * @return site name */ public SiteName getSiteName() { return getExtension(SiteName.class); }