public Person setEmailElement(Element element) { ExtensibleElement internal = getExtInternal(); Element el = getEmailElement(); if (el != null) el.discard(); if (element != null) internal.addExtension(element); return this; }
public Person setUriElement(IRIElement element) { ExtensibleElement internal = getExtInternal(); Element el = getUriElement(); if (el != null) el.discard(); if (element != null) internal.addExtension(element); return this; }
public Person setNameElement(Element element) { ExtensibleElement internal = getExtInternal(); Element el = getNameElement(); if (el != null) el.discard(); if (element != null) internal.addExtension(element); return this; }
/** * Returns the IRI of the previous link relation */ public static IRI getPrevious(Source feed) { Link link = feed.getLink("previous"); return (link != null) ? link.getResolvedHref() : null; }
@SuppressWarnings("deprecation") public static AtomDate getUpdated(Link link) { String val = link.getAttributeValue(ThreadConstants.THRUPDATED); if (val == null) // thr:when was updated to thr:updated, some old impls may still be using thr:when val = link.getAttributeValue(ThreadConstants.THRWHEN); return (val != null) ? AtomDate.valueOf(val) : null; }
public Person setEmailElement(Element element) { ExtensibleElement internal = getExtInternal(); Element el = getEmailElement(); if (el != null) el.discard(); if (element != null) internal.addExtension(element); return this; }
public Person setUriElement(IRIElement element) { ExtensibleElement internal = getExtInternal(); Element el = getUriElement(); if (el != null) el.discard(); if (element != null) internal.addExtension(element); return this; }
public Person setNameElement(Element element) { ExtensibleElement internal = getExtInternal(); Element el = getNameElement(); if (el != null) el.discard(); if (element != null) internal.addExtension(element); return this; }
/** * Returns the IRI of the current link relation */ public static IRI getCurrent(Source feed) { Link link = feed.getLink("current"); if (link == null) { // try the full IANA URI version link = feed.getLink(Link.IANA_BASE + "current"); } return (link != null) ? link.getResolvedHref() : null; } }
/** * Returns the IRI of the last link relation */ public static IRI getLast(Source feed) { Link link = feed.getLink("last"); return (link != null) ? link.getResolvedHref() : null; }
/** * Returns the IRI of the prev-archive link relation */ public static IRI getPreviousArchive(Source feed) { Link link = feed.getLink("prev-archive"); if (link == null) { // try the full IANA URI version link = feed.getLink(Link.IANA_BASE + "prev-archive"); } return (link != null) ? link.getResolvedHref() : null; }
/** * Returns the IRI of the next-archive link relation */ public static IRI getNextArchive(Source feed) { Link link = feed.getLink("next-archive"); if (link == null) { // try the full IANA URI version link = feed.getLink(Link.IANA_BASE + "next-archive"); } return (link != null) ? link.getResolvedHref() : null; }