public void setId(String v) { if (v != null && "-".equals(v)) { // Disallow dash as an entry id. It leads to ambiguity because // we use a dash to separate category queries in a feed URI. // Does /feeds/feed-id/-/X mean a feed request with a category // query "X", or an entry request with "-" as the entry ID // and X as the version number. In {@link UriTemplate} we've // made the choice that it means a feed request. Therefore "-" // cannot be an entry ID. throw new IllegalArgumentException("Entry.id must not be equal to '-'."); } setElement(ID, (v == null) ? null : new Element(ID).setTextValue(v)); }
/** * Sets logo URI associated with source. * * @param v logo URI */ public void setLogo(URI v) { setElement(LOGO, (v == null) ? null : new Element(LOGO).setTextValue(v)); }
/** * Sets icon URI associated with source. * * @param v icon URI */ public void setIcon(URI v) { setElement(ICON, (v == null) ? null : new Element(ICON).setTextValue(v)); }
/** * Sets URI associated with the person. * * @param v URI */ public void setUri(URI v) { setElement(URI, (v == null) ? null : new Element(URI).setTextValue(v)); }
/** * Sets the starting index of the contained entries for paged feeds. A value * of {@link Query#UNDEFINED} indicates the start index is undefined. */ public void setStartIndex(int v) { setElement(START_INDEX, new Element(START_INDEX).setTextValue(v)); }
/** * Sets logo URI associated with source. * * @param v logo URI */ public void setLogo(URI v) { setElement(LOGO, (v == null) ? null : new Element(LOGO).setTextValue(v)); }
/** * Sets the number of items that will be returned per page for paged feeds. A * value of {@link Query#UNDEFINED} indicates the page item count is * undefined. */ public void setItemsPerPage(int v) { setElement(ITEMS_PER_PAGE, new Element(ITEMS_PER_PAGE).setTextValue(v)); }
public void setUpdated(DateTime v) { setElement(UPDATED, (v == null) ? null : new Element(UPDATED).setTextValue(v)); }
/** * Sets icon URI associated with source. * * @param v icon URI */ public void setIcon(URI v) { setElement(ICON, (v == null) ? null : new Element(ICON).setTextValue(v)); }
public void setUpdated(DateTime v) { if (v != null && v.getTzShift() == null) { throw new IllegalArgumentException("Entry.updated must have a timezone."); } setElement(UPDATED, (v == null) ? null : new Element(UPDATED) .setTextValue(v)); }
public void setUpdated(DateTime v) { if (v != null && v.getTzShift() == null) { throw new IllegalArgumentException("Entry.updated must have a timezone."); } setElement(UPDATED, (v == null) ? null : new Element(UPDATED).setTextValue(v)); }
public void setPublished(DateTime v) { if (v != null && v.getTzShift() == null) { throw new IllegalArgumentException( "Entry.published must have a timezone."); } setElement(PUBLISHED, (v == null) ? null : new Element(PUBLISHED) .setTextValue(v)); }
public void setPublished(DateTime v) { if (v != null && v.getTzShift() == null) { throw new IllegalArgumentException( "Entry.published must have a timezone."); } setElement(PUBLISHED, (v == null) ? null : new Element(PUBLISHED) .setTextValue(v)); }
public void setUpdated(DateTime v) { if (v != null && v.getTzShift() == null) { throw new IllegalArgumentException("Entry.updated must have a timezone."); } setElement(UPDATED, (v == null) ? null : new Element(UPDATED) .setTextValue(v)); }
public void setPublished(DateTime v) { if (v != null && v.getTzShift() == null) { throw new IllegalArgumentException( "Entry.published must have a timezone."); } setElement(PUBLISHED, (v == null) ? null : new Element(PUBLISHED).setTextValue(v)); }
/** * Sets the number of items that will be returned per page for paged feeds. A * value of {@link Query#UNDEFINED} indicates the page item count is * undefined. */ public void setItemsPerPage(int v) { if (v != Query.UNDEFINED) { setElement(ITEMS_PER_PAGE, new Element(ITEMS_PER_PAGE).setTextValue(v)); } else { removeElement(ITEMS_PER_PAGE); } }
/** * Sets the number of items that will be returned per page for paged feeds. A * value of {@link Query#UNDEFINED} indicates the page item count is * undefined. */ public void setItemsPerPage(int v) { if (v != Query.UNDEFINED) { setElement(ITEMS_PER_PAGE, new Element(ITEMS_PER_PAGE).setTextValue(v)); } else { removeElement(ITEMS_PER_PAGE); } }
/** * Sets the starting index of the contained entries for paged feeds. A value * of {@link Query#UNDEFINED} indicates the start index is undefined. */ public void setStartIndex(int v) { if (v != Query.UNDEFINED) { setElement(START_INDEX, new Element(START_INDEX).setTextValue(v)); } else { removeElement(START_INDEX); } }
/** * Sets the total number of results associated with this feed. The value may * be larger than the number of contained entries for paged feeds. A value of * {@link Query#UNDEFINED} indicates the total size is undefined. */ public void setTotalResults(int v) { if (v != Query.UNDEFINED) { setElement(TOTAL_RESULTS, new Element(TOTAL_RESULTS).setTextValue(v)); } else { removeElement(TOTAL_RESULTS); } }
/** * Sets the starting index of the contained entries for paged feeds. A value * of {@link Query#UNDEFINED} indicates the start index is undefined. */ public void setStartIndex(int v) { if (v != Query.UNDEFINED) { setElement(START_INDEX, new Element(START_INDEX).setTextValue(v)); } else { removeElement(START_INDEX); } }