com.funambol.syncml.spds
Class SyncItem

java.lang.Object
  extended by com.funambol.syncml.spds.SyncItem

public class SyncItem
extends java.lang.Object

This class is a container for the items exchanged between the SyncManager and the SyncSources


Field Summary
static char STATE_DELETED
           
static char STATE_NEW
           
static char STATE_UNDEF
           
static char STATE_UPDATED
           
 
Constructor Summary
SyncItem(java.lang.String key)
          Basic constructor.
SyncItem(java.lang.String key, java.lang.String type, char state, java.lang.String parent, byte[] content)
          Full contructor.
SyncItem(SyncItem that)
          Copy constructor.
 
Method Summary
 java.lang.Object getClientRepresentation()
          Get the client representation of this item (maybe null)
 byte[] getContent()
          Get the content of this item
 java.lang.String getKey()
          Get the current key
 java.lang.String getParent()
          Get the item parent
 char getState()
          Get the item state
 java.lang.String getType()
          Get the item type
 void setClientRepresentation(java.lang.Object clientRepresentation)
          Set the client representation of this item (maybe null)
 void setContent(byte[] content)
          Set the content of this item
 void setKey(java.lang.String key)
          Set the current key
 void setParent(java.lang.String parent)
          Set the item parent
 void setState(char state)
          Set the item state
 void setType(java.lang.String type)
          Set the item type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_NEW

public static final char STATE_NEW
See Also:
Constant Field Values

STATE_UPDATED

public static final char STATE_UPDATED
See Also:
Constant Field Values

STATE_DELETED

public static final char STATE_DELETED
See Also:
Constant Field Values

STATE_UNDEF

public static final char STATE_UNDEF
See Also:
Constant Field Values
Constructor Detail

SyncItem

public SyncItem(java.lang.String key)
Basic constructor. Only the key is required, the others are set to a default and can be set later.


SyncItem

public SyncItem(java.lang.String key,
                java.lang.String type,
                char state,
                java.lang.String parent,
                byte[] content)
Full contructor. All the item's fields are passed by the caller.


SyncItem

public SyncItem(SyncItem that)
Copy constructor. The item is created using the values from another one.

Method Detail

getKey

public java.lang.String getKey()
Get the current key


setKey

public void setKey(java.lang.String key)
Set the current key


getType

public java.lang.String getType()
Get the item type


setType

public void setType(java.lang.String type)
Set the item type


getState

public char getState()
Get the item state


setState

public void setState(char state)
Set the item state


getParent

public java.lang.String getParent()
Get the item parent


setParent

public void setParent(java.lang.String parent)
Set the item parent


getContent

public byte[] getContent()
Get the content of this item


setContent

public void setContent(byte[] content)
Set the content of this item


getClientRepresentation

public java.lang.Object getClientRepresentation()
Get the client representation of this item (maybe null)


setClientRepresentation

public void setClientRepresentation(java.lang.Object clientRepresentation)
Set the client representation of this item (maybe null)



Copyright © 2006 Funambol.