com.funambol.syncml.spds
Class SourceConfig

java.lang.Object
  extended by com.funambol.syncml.spds.SourceConfig
All Implemented Interfaces:
com.funambol.storage.Serializable

public class SourceConfig
extends java.lang.Object
implements com.funambol.storage.Serializable

Configuration data for the SyncSource. Can be extended by subclasses of SyncSource to add specific data.


Field Summary
static java.lang.String BRIEFCASE
           
static java.lang.String CALENDAR
           
static java.lang.String CONTACT
           
static java.lang.String EMAIL_OBJECT_NAME
          eMail Object source name definition
static java.lang.String EMAIL_OBJECT_TYPE
          eMail Object mime type definition
static java.lang.String MAIL
           
static java.lang.String NOTE
           
static java.lang.String TASK
           
static java.lang.String VCARD_NAME
          vCard source name definition
static java.lang.String VCARD_TYPE
          vCard mime type definition
protected static int VERSION
           
 
Constructor Summary
SourceConfig()
          Initializes a new instance of SourceConfig: Sets default configuration values, valid for a generic briefcase source.
SourceConfig(java.lang.String name, java.lang.String type, java.lang.String remoteUri)
          Initializes a new instance of SourceConfig: Sets default configuration values, valid for a generic briefcase source.
 
Method Summary
 void deserialize(java.io.DataInputStream in)
          Read object field from the input stream.
 java.lang.String getEncoding()
          Return the encoding of this source
 long getLastAnchor()
          Return the last anchor of this source
 java.lang.String getName()
          Return the name of this source
 long getNextAnchor()
          Return the next anchor of this source
 java.lang.String getRemoteUri()
          Return the remote URI of this source
 int getSyncMode()
          Return the sync mode of this source
 java.lang.String getType()
          Return the mime-type of this source
 void serialize(java.io.DataOutputStream out)
          Write object fields to the output stream.
 void setEncoding(java.lang.String enc)
          Set the encoding of this source
 void setLastAnchor(long anchor)
          Set the last anchor of this source
 void setName(java.lang.String name)
          Set the name of this source
 void setNextAnchor(long anchor)
          Set the next anchor of this source
 void setRemoteUri(java.lang.String remoteUri)
          Set the remote URI of this source
 void setSyncMode(int syncMode)
          Set the sync mode of this source
 void setType(java.lang.String type)
          Set the mime-type of this source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIL

public static final java.lang.String MAIL
See Also:
Constant Field Values

CONTACT

public static final java.lang.String CONTACT
See Also:
Constant Field Values

TASK

public static final java.lang.String TASK
See Also:
Constant Field Values

CALENDAR

public static final java.lang.String CALENDAR
See Also:
Constant Field Values

NOTE

public static final java.lang.String NOTE
See Also:
Constant Field Values

BRIEFCASE

public static final java.lang.String BRIEFCASE
See Also:
Constant Field Values

VCARD_NAME

public static final java.lang.String VCARD_NAME
vCard source name definition

See Also:
Constant Field Values

VCARD_TYPE

public static final java.lang.String VCARD_TYPE
vCard mime type definition

See Also:
Constant Field Values

EMAIL_OBJECT_NAME

public static final java.lang.String EMAIL_OBJECT_NAME
eMail Object source name definition

See Also:
Constant Field Values

EMAIL_OBJECT_TYPE

public static final java.lang.String EMAIL_OBJECT_TYPE
eMail Object mime type definition

See Also:
Constant Field Values

VERSION

protected static final int VERSION
See Also:
Constant Field Values
Constructor Detail

SourceConfig

public SourceConfig()
Initializes a new instance of SourceConfig: Sets default configuration values, valid for a generic briefcase source.


SourceConfig

public SourceConfig(java.lang.String name,
                    java.lang.String type,
                    java.lang.String remoteUri)
Initializes a new instance of SourceConfig: Sets default configuration values, valid for a generic briefcase source.

Method Detail

getName

public java.lang.String getName()
Return the name of this source


setName

public void setName(java.lang.String name)
Set the name of this source


getType

public java.lang.String getType()
Return the mime-type of this source


setType

public void setType(java.lang.String type)
Set the mime-type of this source


getEncoding

public java.lang.String getEncoding()
Return the encoding of this source


setEncoding

public void setEncoding(java.lang.String enc)
Set the encoding of this source


getSyncMode

public int getSyncMode()
Return the sync mode of this source


setSyncMode

public void setSyncMode(int syncMode)
Set the sync mode of this source


getRemoteUri

public java.lang.String getRemoteUri()
Return the remote URI of this source


setRemoteUri

public void setRemoteUri(java.lang.String remoteUri)
Set the remote URI of this source


getLastAnchor

public long getLastAnchor()
Return the last anchor of this source


setLastAnchor

public void setLastAnchor(long anchor)
Set the last anchor of this source


getNextAnchor

public long getNextAnchor()
Return the next anchor of this source


setNextAnchor

public void setNextAnchor(long anchor)
Set the next anchor of this source


serialize

public void serialize(java.io.DataOutputStream out)
               throws java.io.IOException
Write object fields to the output stream.

Specified by:
serialize in interface com.funambol.storage.Serializable
Parameters:
out - Output stream
Throws:
java.io.IOException

deserialize

public void deserialize(java.io.DataInputStream in)
                 throws java.io.IOException
Read object field from the input stream.

Specified by:
deserialize in interface com.funambol.storage.Serializable
Parameters:
in - Input stream
Throws:
java.io.IOException


Copyright © 2006 Funambol.