org.rometools.feed.module.sse.modules
Class History

java.lang.Object
  extended by org.rometools.feed.module.sse.modules.SSEModule
      extended by org.rometools.feed.module.sse.modules.History
All Implemented Interfaces:
com.sun.syndication.feed.CopyFrom, com.sun.syndication.feed.module.Module, Serializable, Cloneable

public class History
extends SSEModule

Element within
.

See Also:
Serialized Form

Field Summary
static String BY_ATTRIBUTE
           
static String NAME
           
static String WHEN_ATTRIBUTE
           
 
Fields inherited from class org.rometools.feed.module.sse.modules.SSEModule
NAMESPACES, PREFIX, SSE_NS, SSE_SCHEMA_URI
 
Constructor Summary
History()
           
 
Method Summary
 void addUpdate(Update update)
          Add an update to this history
 void copyFrom(com.sun.syndication.feed.CopyFrom other)
           
 String getBy()
          Provides access to a text attribute identifying the unique endpoint that made the most recent modification.
 List getUpdates()
          Return the list of updates for this history.
 Date getWhen()
          Get the date-time when the most recent modification took place.
 void setBy(String by)
          Sets the endpoint that made the most recent modification.
 void setWhen(Date when)
          Set the date-time when the most recent modification took place.
 
Methods inherited from class org.rometools.feed.module.sse.modules.SSEModule
clone, getInterface, getUri
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

WHEN_ATTRIBUTE

public static final String WHEN_ATTRIBUTE
See Also:
Constant Field Values

BY_ATTRIBUTE

public static final String BY_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

History

public History()
Method Detail

copyFrom

public void copyFrom(com.sun.syndication.feed.CopyFrom other)
Specified by:
copyFrom in interface com.sun.syndication.feed.CopyFrom
Specified by:
copyFrom in class SSEModule

getWhen

public Date getWhen()
Get the date-time when the most recent modification took place.

This is the date-time when the most recent modification took place. If this attribute is omitted the value defaults to the earliest time representable in RFC 822.

Returns:
the date-time when the most recent modification took place.

setWhen

public void setWhen(Date when)
Set the date-time when the most recent modification took place.

Either or both of the when or by attributes MUST be present; it is invalid to have neither.

Parameters:
when - the date-time when the most recent modification took place.

getBy

public String getBy()
Provides access to a text attribute identifying the unique endpoint that made the most recent modification. This SHOULD be some combination of user and device (so that a given user can edit a feed on multiple devices). This attribute is used programmatically to break ties in case two changes happened at the same time (within the same second).

Either or both of the when or by must be present; it is invalid to have neither.

If this attribute is omitted the value defaults to the empty string (which must be less than all other values for purposes of collation).

Returns:
A text attribute identifying the unique endpoint that made the most recent modification.

setBy

public void setBy(String by)
Sets the endpoint that made the most recent modification.

Either or both of the when or by attributes MUST be present; it is invalid to have neither.

Parameters:
by - the endpoint that made the most recent modification.

addUpdate

public void addUpdate(Update update)
Add an update to this history

Parameters:
update - an update to add to the list of updates for this history.

getUpdates

public List getUpdates()
Return the list of updates for this history.

Returns:
the list of updates for this history.


Copyright © 2013 ROME Project. All Rights Reserved.