|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SyncItem
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_FORMAT
|
static java.lang.String |
PROPERTY_TIMESTAMP
|
static java.lang.String |
PROPERTY_TYPE
|
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 |
---|
static final java.lang.String PROPERTY_BINARY_CONTENT
static final java.lang.String PROPERTY_TIMESTAMP
static final java.lang.String PROPERTY_TYPE
static final java.lang.String PROPERTY_FORMAT
Method Detail |
---|
SyncItemKey getKey()
char getState()
void setState(char state)
java.util.Hashtable getProperties()
void setProperties(java.util.Hashtable properties)
properties
- the new valuesvoid setProperty(SyncItemProperty property)
property
- The property to set/addSyncItemProperty getProperty(java.lang.String propertyName)
propertyName
- The property name
void setPropertyValue(java.lang.String propertyName, java.lang.String propertyValue)
propertyName
- The property's namepropertyValue
- The new valuejava.lang.Object getPropertyValue(java.lang.String propertyName)
propertyName
- The property's name
SyncSource getSyncSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |