com.funambol.syncml.protocol
Class SyncType

java.lang.Object
  extended by com.funambol.syncml.protocol.SyncType

public class SyncType
extends java.lang.Object

This class corresponds to <SyncType> tag in SyncML devinfo DTD


Field Summary
static SyncType[] ALL_SYNC_TYPES
           
static SyncType ONE_WAY_FROM_CLIENT
           
static SyncType ONE_WAY_FROM_SERVER
           
static SyncType REFRESH_FROM_CLIENT
           
static SyncType REFRESH_FROM_SERVER
           
static SyncType SERVER_ALERTED
           
static SyncType SLOW
           
static SyncType TWO_WAY
           
 
Constructor Summary
SyncType()
          In order to expose the server configuration like WS this constructor must be public
SyncType(int syncType)
          Creates a new SyncType object with syncType value
 
Method Summary
static SyncType getInstance(int syncType)
          Gets the instance of synchronization type
 int getType()
          Gets the synchronization type
 void setType(int syncType)
          Sets the synchronization type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TWO_WAY

public static final SyncType TWO_WAY

SLOW

public static final SyncType SLOW

ONE_WAY_FROM_CLIENT

public static final SyncType ONE_WAY_FROM_CLIENT

REFRESH_FROM_CLIENT

public static final SyncType REFRESH_FROM_CLIENT

ONE_WAY_FROM_SERVER

public static final SyncType ONE_WAY_FROM_SERVER

REFRESH_FROM_SERVER

public static final SyncType REFRESH_FROM_SERVER

SERVER_ALERTED

public static final SyncType SERVER_ALERTED

ALL_SYNC_TYPES

public static final SyncType[] ALL_SYNC_TYPES
Constructor Detail

SyncType

public SyncType()
In order to expose the server configuration like WS this constructor must be public


SyncType

public SyncType(int syncType)
Creates a new SyncType object with syncType value

Parameters:
syncType - the value of SyncType - NOT NULL
Method Detail

getType

public int getType()
Gets the synchronization type

Returns:
syncType the synchronization type

setType

public void setType(int syncType)
Sets the synchronization type

Parameters:
syncType - the synchronization type

getInstance

public static final SyncType getInstance(int syncType)
Gets the instance of synchronization type

Returns:
syncType the synchronization type


Copyright © 2001-2009 Funambol.