1 package com.sun.syndication.feed.sse; 2 3 import java.util.Date; 4 5 /*** 6 * <pre><sx:update></pre>Element within <pre><sx:history></pre>. 7 */ 8 public class Update { 9 private Date when; 10 private String by; 11 12 /*** 13 * Provides access to the date-time when the modification took place. If this attribute is omitted 14 * the value defaults to the earliest time representable in RFC 822. Either or both of the when or by attributes 15 * MUST be present; it is invalid to have neither. 16 */ 17 public Date getWhen() { 18 return when; 19 } 20 21 /*** 22 * Set the date-time when the modification took place. 23 * 24 * @param when the date-time when the modification took place. 25 */ 26 public void setWhen(Date when) { 27 this.when = when; 28 } 29 30 /*** 31 * Provides access to a text attribute identifying the unique endpoint that made a modification. This SHOULD be 32 * some combination of user and device (so that a given user can edit a feed on multiple devices). This attribute is 33 * used programmatically to break ties in case two changes happened at the same time (within the same second). 34 * Either or both of the when or by must be present; it is invalid to have neither. 35 * 36 * @return access to a text attribute identifying the unique endpoint that made a modification. 37 */ 38 public String getBy() { 39 return by; 40 } 41 42 /*** 43 * Sets a text attribute identifying the unique endpoint that made a modification. 44 * 45 * @param by a text attribute identifying the unique endpoint that made a modification. 46 */ 47 public void setBy(String by) { 48 this.by = by; 49 } 50 }