public String getIcon() { return webContentLink.getHref(); }
/** * Adds a link pointing to an HTML representation. * * @param htmlUri * Link URI. * * @param lang * Optional language code. * * @param title * Optional title. */ public void addHtmlLink(String htmlUri, String lang, String title) { Link link = new Link(); link.setRel(Link.Rel.ALTERNATE); link.setType(Link.Type.HTML); link.setHref(htmlUri); if (lang != null) { link.setHrefLang(lang); } if (title != null) { link.setTitle(title); } state.links.add(link); }
public void generate(XmlWriter w, ExtensionProfile extProfile) throws IOException { link.generateAtom(w, extProfile); }
public Link addLink(String rel, String type, String href) { Link link = new Link(rel, type, href); addLink(link); return link; }
generateStartElement(w, Namespaces.atomNs, "link", attrs, nsDecls); generateExtensions(w, extProfile);
public Link(String rel, String type, String href) { this.rel = rel; this.type = type; setHref(href); }
public void setTitle(String title) { webContentLink.setTitle(title); }
public void setType(String type) { webContentLink.setType(type); }
/** * Get the web content for this entry (may return null). * * Changes made to the WebContent object returned by this method * will be reflected in this CalendarEventEntry. */ public WebContent getWebContent() { Link webContentLink = getWebContentLink(); if (webContentLink == null) { return null; } return webContentLink.getExtension(WebContent.class); }
public Link addLink(String rel, String type, String href) { Link link = new Link(rel, type, href); addLink(link); return link; }
generateStartElement(w, Namespaces.atomNs, "link", attrs, nsDecls); generateExtensions(w, extProfile);
public Link(String rel, String type, String href) { this.rel = rel; this.type = type; setHref(href); }
public void setTitle(String title) { webContentLink.setTitle(title); }
public void setType(String type) { webContentLink.setType(type); }
/** * Get the web content for this entry (may return null). * * Changes made to the WebContent object returned by this method * will be reflected in this CalendarEventEntry. */ public WebContent getWebContent() { Link webContentLink = getWebContentLink(); if (webContentLink == null) { return null; } return webContentLink.getExtension(WebContent.class); }