|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SyncItem is the indivisible entity that can be exchanged in a
synchronization process. It is similar to a sync4j.framework.core.Item,
but this one is more generic, not related to any protocol.
A SyncItem is uniquely identified by its SyncItemKey, whilst
item data is stored in properties, which can be retrieved calling
getProperty(), getProperties() and getPropertyValue().
Properties can be set by calling setProperties(), setProperty()
and setPropertyValue().
A SyncItem is also associated with a state, which can be one of the
values defined in SyncItemState.
The following properties are standard properties:
BINARY_CONTENT | A row bynary representation of the item content |
The creation/modification/deletion timestamp for the item |
Field Summary | |
static java.lang.String |
PROPERTY_BINARY_CONTENT
|
static java.lang.String |
PROPERTY_TIMESTAMP
|
Method Summary | |
SyncItemKey |
getKey()
|
java.util.Hashtable |
getProperties()
Returns the properties property. |
SyncItemProperty |
getProperty(java.lang.String propertyName)
Returns the property with the given name |
java.lang.Object |
getPropertyValue(java.lang.String propertyName)
Returns the value of the property with the given name. |
char |
getState()
|
SyncSource |
getSyncSource()
Getter for property syncSource. |
void |
setProperties(java.util.Hashtable properties)
Sets the properties property. |
void |
setProperty(SyncItemProperty property)
Sets/adds the given property to this SyncItem |
void |
setPropertyValue(java.lang.String propertyName,
java.lang.String propertyValue)
Sets the value of the property with the given name. |
void |
setState(char state)
|
Field Detail |
public static final java.lang.String PROPERTY_BINARY_CONTENT
public static final java.lang.String PROPERTY_TIMESTAMP
Method Detail |
public SyncItemKey getKey()
public char getState()
public void setState(char state)
public java.util.Hashtable getProperties()
public void setProperties(java.util.Hashtable properties)
properties
- the new valuespublic void setProperty(SyncItemProperty property)
property
- The property to set/addpublic SyncItemProperty getProperty(java.lang.String propertyName)
propertyName
- The property name
public void setPropertyValue(java.lang.String propertyName, java.lang.String propertyValue)
propertyName
- The property's namepropertyValue
- The new valuepublic java.lang.Object getPropertyValue(java.lang.String propertyName)
propertyName
- The property's name
public SyncSource getSyncSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |