com.sun.syndication.feed.module.sse.modules
Class Sync

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

public class Sync
extends SSEModule

Element within RSS
or OPML
.

See Also:
Serialized Form

Field Summary
static java.lang.String CONFLICT_ATTRIBUTE
           
static java.lang.String DELETED_ATTRIBUTE
           
static java.lang.String ID_ATTRIBUTE
           
static java.lang.String NAME
           
static java.lang.String VERSION_ATTRIBUTE
           
 
Fields inherited from class com.sun.syndication.feed.module.sse.modules.SSEModule
NAMESPACES, PREFIX, SSE_NS, SSE_SCHEMA_URI
 
Constructor Summary
Sync()
           
 
Method Summary
 void addConflict(Conflict conflict)
           
 void copyFrom(java.lang.Object obj)
           
 java.util.List getConflicts()
           
 History getHistory()
          Get the history for this sync object
 java.lang.String getId()
          Provides access to the sync id, a required, string attribute.
 java.lang.Integer getVersion()
          Provides access to a required, integer attribute.
 java.lang.Boolean isConflict()
          Provides access to an optional, Boolean conflict attribute.
 java.lang.Boolean isDeleted()
          Provide access to an optional, Boolean attribute.
 void setConflict(java.lang.Boolean conflict)
          Set an indication of whether there was an update conflict detected when processing an update of this item.
 void setConflicts(java.util.List conflicts)
           
 void setDeleted(java.lang.Boolean deleted)
          Set an indication of whether this item has been deleted and is a tombstone.
 void setHistory(History history)
          The history history for this sync object
 void setId(java.lang.String id)
          Set the identifier for the item.
 void setVersion(java.lang.Integer version)
          Set the modification sequence number of the item.
 
Methods inherited from class com.sun.syndication.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 java.lang.String NAME
See Also:
Constant Field Values

ID_ATTRIBUTE

public static final java.lang.String ID_ATTRIBUTE
See Also:
Constant Field Values

VERSION_ATTRIBUTE

public static final java.lang.String VERSION_ATTRIBUTE
See Also:
Constant Field Values

CONFLICT_ATTRIBUTE

public static final java.lang.String CONFLICT_ATTRIBUTE
See Also:
Constant Field Values

DELETED_ATTRIBUTE

public static final java.lang.String DELETED_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

Sync

public Sync()
Method Detail

copyFrom

public void copyFrom(java.lang.Object obj)
Specified by:
copyFrom in interface com.sun.syndication.feed.CopyFrom
Specified by:
copyFrom in class SSEModule

getId

public java.lang.String getId()
Provides access to the sync id, a required, string attribute. This is the identifier for the item.

The ID is assigned by the creator of the item, and MUST NOT be changed by subsequent publishers. Applications will collate and compare these identifiers, therefore they MUST conform to the syntax for Namespace Specific Strings (the NSS portion of a URN) in RFC 2141.


setId

public void setId(java.lang.String id)
Set the identifier for the item. The ID MUST be globally unique within the feed and it MUST be identical across feeds if an item is being shared or replicated as part of multiple distinct independent feeds.

Parameters:
id - the identifier for the item.

getVersion

public java.lang.Integer getVersion()
Provides access to a required, integer attribute. This is the modification sequence number of the item, starting at 1 and incrementing by 1 indefinitely for each subsequent modification.


setVersion

public void setVersion(java.lang.Integer version)
Set the modification sequence number of the item.

Parameters:
version - the modification sequence number of the item.

isDeleted

public java.lang.Boolean isDeleted()
Provide access to an optional, Boolean attribute. If present and its value is "true" (lower-case), it indicates that the item has been deleted and this is a tombstone. If not present, or if present with value of "false" or "", then the item is not deleted. All other values are invalid.


setDeleted

public void setDeleted(java.lang.Boolean deleted)
Set an indication of whether this item has been deleted and is a tombstone.

Parameters:
deleted - an indication of whether this item has been deleted and is a tombstone.

isConflict

public java.lang.Boolean isConflict()
Provides access to an optional, Boolean conflict attribute. If present and its value is "true" (lower-case), it indicates there was an update conflict detected when processing an update of this item, and it should potentially be examined by the user. If not present, or present with value of "false" or "", Then no conflict has been detected. All other values are invalid.

Returns:
indicates there was an update conflict detected when processing an update of this item.

setConflict

public void setConflict(java.lang.Boolean conflict)
Set an indication of whether there was an update conflict detected when processing an update of this item.

Parameters:
conflict - an indication of whether there was an update conflict detected when processing an update of this item.

setHistory

public void setHistory(History history)
The history history for this sync object

Parameters:
history - the history for this sync object.

getHistory

public History getHistory()
Get the history for this sync object

Returns:
get the history for this sync object.

addConflict

public void addConflict(Conflict conflict)

getConflicts

public java.util.List getConflicts()

setConflicts

public void setConflicts(java.util.List conflicts)


Copyright © 2006-2009. All Rights Reserved.