com.google.gdata.model.atom
Class Feed.FeedState

java.lang.Object
  extended by com.google.gdata.model.atom.Feed.FeedState
Enclosing class:
Feed

protected static class Feed.FeedState
extends java.lang.Object

The FeedState class provides a simple structure that encapsulates the attributes of an Atom feed that should be shared with a shallow copy if the feed is adapted to a more specific Feed subtypes.

Note: Feed entries are not part of feed shared state, because the entry lists will need to be typed differently for adapted instances. This means that entries that are created, updated, or deleted in an adapted feed will not be reflected in the base feed used to construct it. The reverse is also true: changes made to a base feed will not be reflected in any adapted instances of the feed.


Field Summary
 boolean canPost
          Specifies whether the feed can be posted to.
 Service service
          Service associated with the feed.
 java.lang.String versionId
          Version ID.
 
Constructor Summary
protected Feed.FeedState()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

public Service service
Service associated with the feed.


canPost

public boolean canPost
Specifies whether the feed can be posted to.


versionId

public java.lang.String versionId
Version ID. This is a unique number representing this particular entry. Every update changes the version ID (unless the update doesn't modify anything, in which case it's permissible for version ID to stay the same). Services are free to interpret this string in the most convenient way. Some services may choose to use a monotonically increasing sequence of version IDs. Other services may compute a hash of entry properties and use that.

This property is only used for services to communicate the current version ID back to the servlet. It is NOT set when entries are parsed (either from requests or from arbitrary XML).

Constructor Detail

Feed.FeedState

protected Feed.FeedState()