|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ecf.provider.rss.channel.SseSync
public class SseSync
In-Memory implementation of the sync element.
Constructor Summary | |
---|---|
SseSync()
Constructs a SseSync with the generated ID. |
|
SseSync(java.lang.String id)
Constructs a SseSync with the specified ID. |
Method Summary | |
---|---|
int |
compareTo(SseSync anotherSync)
Compares two sync elements. |
boolean |
equals(java.lang.Object obj)
|
java.util.List |
getConflicts()
Returns the conflict list within this sync element. |
SseHistory |
getHistory()
Returns the value of the history field. |
java.lang.String |
getId()
Returns the value of the id field. |
int |
getVersion()
Returns the value of the version field. |
boolean |
isConflict()
Returns the value of the conflict field. |
boolean |
isDeleted()
Returns the value of the deleted field. |
SseSync |
processConflict(SseSync loserSync)
Performs any necessary conflict processing. |
void |
setConflict(boolean conflict)
Sets the conflict field to the given value. |
void |
setConflict(java.lang.String conflict)
Sets the conflict field to the given value. |
void |
setDeleted(boolean deleted)
Sets the deleted field to the given value. |
void |
setDeleted(java.lang.String deleted)
Sets the deleted field to the given value. |
void |
setHistory(SseHistory history)
Sets the history field to the given value. |
void |
setId(java.lang.String id)
Sets the id field to the given value. |
void |
setVersion(int version)
Sets the version field to the given value. |
void |
setVersion(java.lang.String version)
Sets the version field to the given value. |
SseSync |
update(SseSync newSync,
boolean deleted)
Updates this sync element with the specified one. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SseSync()
public SseSync(java.lang.String id)
id
- - the id to useMethod Detail |
---|
public java.lang.String getId()
public int getVersion()
public boolean isConflict()
public boolean isDeleted()
public SseHistory getHistory()
public java.util.List getConflicts()
public void setId(java.lang.String id)
id
- - the value to be set for the id field.public void setVersion(int version)
version
- - the value to be set for the version field.public void setVersion(java.lang.String version)
version
- - the value to be set for the version field.public void setConflict(boolean conflict)
conflict
- - the value to be set for the conflict field.public void setConflict(java.lang.String conflict)
conflict
- - the value to be set for the conflict field.public void setDeleted(boolean deleted)
deleted
- - the value to be set for the deleted field.public void setDeleted(java.lang.String deleted)
deleted
- - the value to be set for the deleted field.public void setHistory(SseHistory history)
history
- - the value to be set for the history field.public int compareTo(SseSync anotherSync)
anotherSync
- - the SseSync to be compared.
public SseSync processConflict(SseSync loserSync) throws ParseException
loserSync
- - the SseSync to be compared.
ParseException
- - If any parse errors occur during processing.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public SseSync update(SseSync newSync, boolean deleted)
newSync
- - the SseSync for update.deleted
- - flag indicating whether to mark this sync as 'deleted'.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |