com.funambol.syncml.protocol
Class DataStore

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

public class DataStore
extends java.lang.Object

This class corresponds to the <DataStore> tag in the SyncML devinf DTD


Constructor Summary
DataStore()
          In order to expose the server configuration like WS this constructor must be public
DataStore(SourceRef sourceRef, java.lang.String displayName, long maxGUIDSize, CTInfo rxPref, CTInfo[] rxs, CTInfo txPref, CTInfo[] txs, CTCap[] ctCaps, DSMem dsMem, boolean supportHierarchicalSync, SyncCap syncCap, CTInfo[] filterRxs, FilterCap[] filterCaps)
          Creates a new DataStore object with the given input information
DataStore(SourceRef sourceRef, java.lang.String displayName, long maxGUIDSize, CTInfo rxPref, CTInfo[] rxs, CTInfo txPref, CTInfo[] txs, DSMem dsMem, SyncCap syncCap)
          Creates a new DataStore object with the given input information
 
Method Summary
 void addCTCap(CTCap ctCap)
           
 void addRxs(CTInfo rxs)
           
 void addTxs(CTInfo txs)
           
 java.util.Vector getCTCaps()
          Gets an array of content type capabilities
 java.lang.String getDisplayName()
          Gets the display name of the datastore
 DSMem getDSMem()
          Gets the maximum memory and item identifier for the datastore
 java.util.Vector getFilterCaps()
          Gets an array of filtering capabilities
 java.util.Vector getFilterRxs()
          Gets an array of supported filter grammars that can be received by the datastore
 long getMaxGUIDSize()
          Gets the maximum GUID size
 CTInfo getRxPref()
          Gets the CTInfo corresponds to <Rx-Pref> element
 java.util.Vector getRxs()
          Gets the array of the supported type and version of the content type received by the device
 SourceRef getSourceRef()
          Gets the reference URI for a local datastore
 java.lang.Boolean getSupportHierarchicalSync()
          Gets the value of SupportHierarchicalSync property
 SyncCap getSyncCap()
          Gets the synchronization capabilities of a datastore.
 CTInfo getTxPref()
          Gets the CTInfo corresponds to <Tx-Pref> element
 java.util.Vector getTxs()
          Gets an array of the supported type and version of the content type transmitted by the device
 boolean isSupportHierarchicalSync()
          Gets the value of SupportHierarchicalSync property
 void setCTCaps(CTCap[] ctCaps)
          Sets the array of content type capabilities
 void setCTCaps(java.util.Vector ctCaps)
          Sets the array of content type capabilities
 void setDisplayName(java.lang.String displayName)
          Sets the display name of the datastore
 void setDSMem(DSMem dsMem)
          Sets the maximum memory and item identifier for the datastore
 void setFilterCaps(FilterCap[] filterCaps)
          Sets an array of filtering capabilities
 void setFilterCaps(java.util.Vector filterCaps)
          Sets an array of filtering capabilities
 void setFilterRxs(CTInfo[] filterRxsCTI)
          Sets an array of supported filter grammars that can be received by the datastore
 void setFilterRxs(java.util.Vector filterRxsCTI)
          Sets an array of supported filter grammars that can be received by the datastore
 void setMaxGUIDSize(long maxGUIDSize)
          Sets the maximum GUID size
 void setRxPref(CTInfo rxPref)
          Sets the preferred type and version of the content type received by the device
 void setRxs(CTInfo[] rxsCTI)
          Sets the supported type and version of a content type received by the device
 void setRxs(java.util.Vector rxsCTI)
          Sets the supported type and version of a content type received by the device
 void setSourceRef(SourceRef sourceRef)
          Sets the reference URI for a local datastore
 void setSupportHierarchicalSync(java.lang.Boolean supportHierarchicalSync)
          Specify the support for hierarchical sync
 void setSyncCap(SyncCap syncCap)
          Sets the synchronization capabilities of a datastore.
 void setTxPref(CTInfo txPref)
          Sets the supported type and version of the content type transmitted by the device
 void setTxs(CTInfo[] txsCTI)
          Sets an array of supported type and version of the content type transmitted by the device
 void setTxs(java.util.Vector txsCTI)
          Sets an array of supported type and version of the content type transmitted by the device
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataStore

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


DataStore

public DataStore(SourceRef sourceRef,
                 java.lang.String displayName,
                 long maxGUIDSize,
                 CTInfo rxPref,
                 CTInfo[] rxs,
                 CTInfo txPref,
                 CTInfo[] txs,
                 CTCap[] ctCaps,
                 DSMem dsMem,
                 boolean supportHierarchicalSync,
                 SyncCap syncCap,
                 CTInfo[] filterRxs,
                 FilterCap[] filterCaps)
Creates a new DataStore object with the given input information

Parameters:
sourceRef - The reference URI for a local datastore - NOT NULL
displayName - The display name of the datastore
maxGUIDSize - The maximum GUID size. Set to -1 if the Maximum GUID size is unknown or unspecified. Otherwise, this parameter should be a positive number.
rxPref - The preferred type and version of the content type received by the device - NOT NULL
rxs - An array of the supported type and version of the content type received by the device
txPref - The supported type and version of the content type transmitted by the device - NOT NULL
txs - An array of the supported type and version of the content type transmitted by the device - NOT NULL
ctCaps - An array of content type capabilities
dsMem - The maximum memory and item identifier for the datastore
supportHierarchicalSync - The support for hierarchical sync
syncCap - The synchronization capabilities - NOT NULL
filterRxs - An array of supported filter grammars that can be received by the datastore
filterCaps - An array of filtering capabilities

DataStore

public DataStore(SourceRef sourceRef,
                 java.lang.String displayName,
                 long maxGUIDSize,
                 CTInfo rxPref,
                 CTInfo[] rxs,
                 CTInfo txPref,
                 CTInfo[] txs,
                 DSMem dsMem,
                 SyncCap syncCap)
Creates a new DataStore object with the given input information

Parameters:
sourceRef - The reference URI for a local datastore - NOT NULL
displayName - The display name of the datastore
maxGUIDSize - The maximum GUID size. Set to -1 if the Maximum GUID size is unknown or unspecified. Otherwise, this parameter should be a positive number.
rxPref - The preferred type and version of the content type received by the device - NOT NULL
rxs - An array of the supported type and version of the content type received by the device
txPref - The supported type and version of the content type transmitted by the device - NOT NULL
txs - An array of the supported type and version of the content type transmitted by the device - NOT NULL
dsMem - The maximum memory and item identifier for the datastore
syncCap - The synchronization capabilities - NOT NULL
Method Detail

getSourceRef

public SourceRef getSourceRef()
Gets the reference URI for a local datastore

Returns:
the sourceRef object

setSourceRef

public void setSourceRef(SourceRef sourceRef)
Sets the reference URI for a local datastore

Parameters:
sourceRef - the reference URI

getDisplayName

public java.lang.String getDisplayName()
Gets the display name of the datastore

Returns:
the display name of the datastore

setDisplayName

public void setDisplayName(java.lang.String displayName)
Sets the display name of the datastore

Parameters:
displayName - the display name of the datastore

getMaxGUIDSize

public long getMaxGUIDSize()
Gets the maximum GUID size

Returns:
the maximum GUID size

setMaxGUIDSize

public void setMaxGUIDSize(long maxGUIDSize)
Sets the maximum GUID size

Parameters:
maxGUIDSize - the maximum GUID size

getRxPref

public CTInfo getRxPref()
Gets the CTInfo corresponds to <Rx-Pref> element

Returns:
the CTInfo corresponds to &l;tRx-Pref> element

setRxPref

public void setRxPref(CTInfo rxPref)
Sets the preferred type and version of the content type received by the device

Parameters:
rxPref - the preferred type and version of a content type

getRxs

public java.util.Vector getRxs()
Gets the array of the supported type and version of the content type received by the device

Returns:
an array of CTInfo corresponds to <Rx> element

setRxs

public void setRxs(CTInfo[] rxsCTI)
Sets the supported type and version of a content type received by the device

Parameters:
rxsCTI - an array of supported type and version of a content type

addRxs

public void addRxs(CTInfo rxs)

setRxs

public void setRxs(java.util.Vector rxsCTI)
Sets the supported type and version of a content type received by the device

Parameters:
rxsCTI - an array of supported type and version of a content type

getTxPref

public CTInfo getTxPref()
Gets the CTInfo corresponds to <Tx-Pref> element

Returns:
the CTInfo corresponds to <Tx-Pref> element

setTxPref

public void setTxPref(CTInfo txPref)
Sets the supported type and version of the content type transmitted by the device

Parameters:
txPref - the preferred type and version of a content type

getTxs

public java.util.Vector getTxs()
Gets an array of the supported type and version of the content type transmitted by the device

Returns:
an array of CTInfo corresponds to <Tx> element

setTxs

public void setTxs(CTInfo[] txsCTI)
Sets an array of supported type and version of the content type transmitted by the device

Parameters:
txsCTI - an array of supported type and version of a content type

addTxs

public void addTxs(CTInfo txs)

setTxs

public void setTxs(java.util.Vector txsCTI)
Sets an array of supported type and version of the content type transmitted by the device

Parameters:
txsCTI - an array of supported type and version of a content type

getCTCaps

public java.util.Vector getCTCaps()
Gets an array of content type capabilities

Returns:
an array of content type capabilities

setCTCaps

public void setCTCaps(CTCap[] ctCaps)
Sets the array of content type capabilities

Parameters:
ctCaps - the array of content type capabilities

setCTCaps

public void setCTCaps(java.util.Vector ctCaps)
Sets the array of content type capabilities

Parameters:
ctCaps - the array of content type capabilities

addCTCap

public void addCTCap(CTCap ctCap)

getDSMem

public DSMem getDSMem()
Gets the maximum memory and item identifier for the datastore

Returns:
the maximum memory and item identifier for the datastore

setDSMem

public void setDSMem(DSMem dsMem)
Sets the maximum memory and item identifier for the datastore

Parameters:
dsMem - the maximum memory and item identifier for the datastore

setSupportHierarchicalSync

public void setSupportHierarchicalSync(java.lang.Boolean supportHierarchicalSync)
Specify the support for hierarchical sync

Parameters:
supportHierarchicalSync - the Boolean value of SupportHierarchicalSync property

isSupportHierarchicalSync

public boolean isSupportHierarchicalSync()
Gets the value of SupportHierarchicalSync property

Returns:
true if hierarchical sync is supported, false otherwise

getSupportHierarchicalSync

public java.lang.Boolean getSupportHierarchicalSync()
Gets the value of SupportHierarchicalSync property

Returns:
true if hierarchical sync is supported, false otherwise

getSyncCap

public SyncCap getSyncCap()
Gets the synchronization capabilities of a datastore.

Returns:
the synchronization capabilities of a datastore.

setSyncCap

public void setSyncCap(SyncCap syncCap)
Sets the synchronization capabilities of a datastore.

Parameters:
syncCap - the synchronization capabilities of a datastore

getFilterRxs

public java.util.Vector getFilterRxs()
Gets an array of supported filter grammars that can be received by the datastore

Returns:
an array of CTInfo corresponds to <Filter-Rx> element

setFilterRxs

public void setFilterRxs(CTInfo[] filterRxsCTI)
Sets an array of supported filter grammars that can be received by the datastore

Parameters:
filterRxsCTI - an array of supported filter grammars

setFilterRxs

public void setFilterRxs(java.util.Vector filterRxsCTI)
Sets an array of supported filter grammars that can be received by the datastore

Parameters:
filterRxsCTI - an array of supported filter grammars

getFilterCaps

public java.util.Vector getFilterCaps()
Gets an array of filtering capabilities

Returns:
an array of filtering capabilities

setFilterCaps

public void setFilterCaps(FilterCap[] filterCaps)
Sets an array of filtering capabilities

Parameters:
filterCaps - an array of filtering capabilities

setFilterCaps

public void setFilterCaps(java.util.Vector filterCaps)
Sets an array of filtering capabilities

Parameters:
filterCaps - an array of filtering capabilities


Copyright © 2001-2009 Funambol.