com.funambol.syncml.protocol
Class DevInf

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

public class DevInf
extends java.lang.Object

Corresponds to the &l;tDevInf> element in the SyncML devinf DTD

Version:
$Id: DevInf.java,v 1.2 2007/07/30 22:10:05 stefano_fornari Exp $

Constructor Summary
DevInf()
          In order to expose the server configuration like WS this constructor must be public
DevInf(VerDTD verDTD, java.lang.String man, java.lang.String mod, java.lang.String oem, java.lang.String fwV, java.lang.String swV, java.lang.String hwV, java.lang.String devID, java.lang.String devTyp, boolean utc, boolean supportLargeObjs, boolean supportNumberOfChanges, boolean supportHierarchicalSync)
          Creates a new DevInf object with the given parameter
DevInf(VerDTD verDTD, java.lang.String man, java.lang.String mod, java.lang.String oem, java.lang.String fwV, java.lang.String swV, java.lang.String hwV, java.lang.String devID, java.lang.String devTyp, boolean utc, boolean supportLargeObjs, boolean supportNumberOfChanges, boolean supportHierarchicalSync, DataStore[] dataStores, CTCapV1[] ctCapsV1, Ext[] exts)
          Creates a new DevInf object with the given parameter
DevInf(VerDTD verDTD, java.lang.String man, java.lang.String mod, java.lang.String oem, java.lang.String fwV, java.lang.String swV, java.lang.String hwV, java.lang.String devID, java.lang.String devTyp, boolean utc, boolean supportLargeObjs, boolean supportNumberOfChanges, boolean supportHierarchicalSync, DataStore[] dataStores, Ext[] exts)
          Creates a new DevInf object with the given parameter
 
Method Summary
 void addDataStore(DataStore dataStore)
           
 void addExts(java.util.Vector exts)
          Adds a set of external properties to the existing one.
 void deserialize(java.io.DataInputStream in)
           
 java.util.Vector getCTCapsV1()
          Gets the array of content type capability
 java.util.Vector getDataStores()
          Gets the array of datastore
 java.lang.String getDevID()
          Gets the identifier of the source synchronization device
 java.lang.String getDevTyp()
          Gets the device type
 java.util.Vector getExts()
          Gets the array of experimental extension
 java.lang.String getFwV()
          Gets the firmware version property
 java.lang.String getHwV()
          Gets the hardware version property
 java.lang.String getMan()
          Gets the device manufacturer
 java.lang.String getMod()
          Gets the model name or model number of device
 java.lang.String getOEM()
          Gets the Original Equipment Manufacturer of the device
 java.lang.Boolean getSupportHierarchicalSync()
          Gets the Boolean value of supportHierarchicalSync
 java.lang.Boolean getSupportLargeObjs()
          Gets the Boolean value of supportLargeObjs
 java.lang.Boolean getSupportNumberOfChanges()
          Gets the Boolean value of SupportNumberOfChanges
 java.lang.String getSwV()
          Gets the software version property
 java.lang.Boolean getUTC()
          Gets the Boolean value of utc
 VerDTD getVerDTD()
          Gets the DTD version property
 boolean isSupportHierarchicalSync()
          Gets true if the device supports hierarchical sync
 boolean isSupportLargeObjs()
          Gets true if the device supports handling of large objects
 boolean isSupportNumberOfChanges()
          Gets true if the device supports number of changes
 boolean isUTC()
          Gets true if the device supports UTC based time
 void serialize(java.io.DataOutputStream out)
           
 void setCTCapsV1(CTCapV1[] ctCapsV1)
          Sets an array of content type capability
 void setCTCapsV1(java.util.Vector ctCapsV1)
          Sets an array of content type capability
 void setDataStores(DataStore[] dataStores)
          Sets an array of DataStore object
 void setDataStores(java.util.Vector dataStores)
          Sets an array of DataStore
 void setDevID(java.lang.String devID)
          Sets the identifier of the source synchronization device
 void setDevTyp(java.lang.String devTyp)
          Sets the device type
 void setExts(Ext[] exts)
          Sets an array of experimental extension objects
 void setExts(java.util.Vector exts)
          Sets an array of experimental extension
 void setFwV(java.lang.String fwV)
          Sets the firmware version property
 void setHwV(java.lang.String hwV)
          Sets the hardware version property
 void setMan(java.lang.String man)
          Sets the device manufacturer
 void setMod(java.lang.String mod)
          Sets the device model name or model number of device
 void setOEM(java.lang.String oem)
          Sets the Original Equipment Manufacturer of the device
 void setSupportHierarchicalSync(boolean supportHierarchicalSync)
          Sets the SupportHierarchicalSync property
 void setSupportHierarchicalSync(java.lang.Boolean supportHierarchicalSync)
          Sets the SupportHierarchicalSync property
 void setSupportLargeObjs(boolean supportLargeObjs)
          Sets the SupportLargeObjs property
 void setSupportLargeObjs(java.lang.Boolean supportLargeObjs)
          Sets the SupportLargeObjs property
 void setSupportNumberOfChanges(boolean supportNumberOfChanges)
          Sets the SupportNumberOfChanges property
 void setSupportNumberOfChanges(java.lang.Boolean supportNumberOfChanges)
          Sets the supportNumberOfChanges property
 void setSwV(java.lang.String swV)
          Sets the software version property
 void setUTC(boolean utc)
          Sets the UTC property
 void setUTC(java.lang.Boolean utc)
          Sets the UTC property
 void setVerDTD(VerDTD verDTD)
          Sets the DTD version property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DevInf

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


DevInf

public DevInf(VerDTD verDTD,
              java.lang.String man,
              java.lang.String mod,
              java.lang.String oem,
              java.lang.String fwV,
              java.lang.String swV,
              java.lang.String hwV,
              java.lang.String devID,
              java.lang.String devTyp,
              boolean utc,
              boolean supportLargeObjs,
              boolean supportNumberOfChanges,
              boolean supportHierarchicalSync,
              DataStore[] dataStores,
              CTCapV1[] ctCapsV1,
              Ext[] exts)
Creates a new DevInf object with the given parameter

Parameters:
verDTD - The DTD version - NOT NULL
man - The device manufacturer - NOT NULL
mod - The device model name or model number - NOT NULL
oem - The device OEM (Original Equipment Manufacturer)
fwV - The device firmware version - NOT NULL
swV - The device software version - NOT NULL
hwV - The device hardware version - NOT NULL
devID - The identifier of the source synchronization device - NOT NULL
devTyp - The device type - NOT NULL
utc - Specify if the device supports UTC based time
supportLargeObjs - Specify if the device supports handling of large objects
supportNumberOfChanges - Specify if the device supports number of changes
supportHierarchicalSync - Specify if the device supports hierarchical sync
dataStores - The array of datastore - NOT NULL
ctCapsV1 - The array of content type capability
exts - The array of experimental extension

DevInf

public DevInf(VerDTD verDTD,
              java.lang.String man,
              java.lang.String mod,
              java.lang.String oem,
              java.lang.String fwV,
              java.lang.String swV,
              java.lang.String hwV,
              java.lang.String devID,
              java.lang.String devTyp,
              boolean utc,
              boolean supportLargeObjs,
              boolean supportNumberOfChanges,
              boolean supportHierarchicalSync,
              DataStore[] dataStores,
              Ext[] exts)
Creates a new DevInf object with the given parameter

Parameters:
verDTD - The DTD version - NOT NULL
man - The device manufacturer - NOT NULL
mod - The device model name or model number - NOT NULL
oem - The device OEM (Original Equipment Manufacturer)
fwV - The device firmware version - NOT NULL
swV - The device software version - NOT NULL
hwV - The device hardware version - NOT NULL
devID - The identifier of the source synchronization device - NOT NULL
devTyp - The device type - NOT NULL
utc - Specify if the device supports UTC based time
supportLargeObjs - Specify if the device supports handling of large objects
supportNumberOfChanges - Specify if the device supports number of changes
supportHierarchicalSync - Specify if the device supports hierarchical sync
dataStores - The array of datastore - NOT NULL
exts - The array of experimental extension

DevInf

public DevInf(VerDTD verDTD,
              java.lang.String man,
              java.lang.String mod,
              java.lang.String oem,
              java.lang.String fwV,
              java.lang.String swV,
              java.lang.String hwV,
              java.lang.String devID,
              java.lang.String devTyp,
              boolean utc,
              boolean supportLargeObjs,
              boolean supportNumberOfChanges,
              boolean supportHierarchicalSync)
Creates a new DevInf object with the given parameter

Parameters:
verDTD - The DTD version - NOT NULL
man - The device manufacturer - NOT NULL
mod - The device model name or model number - NOT NULL
oem - The device OEM (Original Equipment Manufacturer)
fwV - The device firmware version - NOT NULL
swV - The device software version - NOT NULL
hwV - The device hardware version - NOT NULL
devID - The identifier of the source synchronization device - NOT NULL
devTyp - The device type - NOT NULL
utc - Specify if the device supports UTC based time
supportLargeObjs - Specify if the device supports handling of large objects
supportNumberOfChanges - Specify if the device supports number of changes
supportHierarchicalSync - Specify if the device supports hierarchical sync
Method Detail

getVerDTD

public VerDTD getVerDTD()
Gets the DTD version property

Returns:
the DTD version property

setVerDTD

public void setVerDTD(VerDTD verDTD)
Sets the DTD version property

Parameters:
verDTD - the DTD version

getMan

public java.lang.String getMan()
Gets the device manufacturer

Returns:
the device manufacturer

setMan

public void setMan(java.lang.String man)
Sets the device manufacturer

Parameters:
man - the device manufacturer

getMod

public java.lang.String getMod()
Gets the model name or model number of device

Returns:
the model name or model number of device

setMod

public void setMod(java.lang.String mod)
Sets the device model name or model number of device

Parameters:
mod - the device model name or model number of device

getOEM

public java.lang.String getOEM()
Gets the Original Equipment Manufacturer of the device

Returns:
the OEM property

setOEM

public void setOEM(java.lang.String oem)
Sets the Original Equipment Manufacturer of the device

Parameters:
oem - the Original Equipment Manufacturer of the device

getFwV

public java.lang.String getFwV()
Gets the firmware version property

Returns:
the firmware version property

setFwV

public void setFwV(java.lang.String fwV)
Sets the firmware version property

Parameters:
fwV - the firmware version property

getSwV

public java.lang.String getSwV()
Gets the software version property

Returns:
the software version property

setSwV

public void setSwV(java.lang.String swV)
Sets the software version property

Parameters:
swV - the software version property

getHwV

public java.lang.String getHwV()
Gets the hardware version property

Returns:
the hardware version property

setHwV

public void setHwV(java.lang.String hwV)
Sets the hardware version property

Parameters:
hwV - the hardware version property

getDevID

public java.lang.String getDevID()
Gets the identifier of the source synchronization device

Returns:
the identifier of the source synchronization device

setDevID

public void setDevID(java.lang.String devID)
Sets the identifier of the source synchronization device

Parameters:
devID - the identifier of the source synchronization device

getDevTyp

public java.lang.String getDevTyp()
Gets the device type

Returns:
the device type

setDevTyp

public void setDevTyp(java.lang.String devTyp)
Sets the device type

Parameters:
devTyp - the device type

isUTC

public boolean isUTC()
Gets true if the device supports UTC based time

Returns:
true if the device supports UTC based time

setUTC

public void setUTC(java.lang.Boolean utc)
Sets the UTC property

Parameters:
utc - is true if the device supports UTC based time

setUTC

public void setUTC(boolean utc)
Sets the UTC property

Parameters:
utc - is true if the device supports UTC based time

getUTC

public java.lang.Boolean getUTC()
Gets the Boolean value of utc

Returns:
true if the device supports UTC based time

isSupportLargeObjs

public boolean isSupportLargeObjs()
Gets true if the device supports handling of large objects

Returns:
true if the device supports handling of large objects

setSupportLargeObjs

public void setSupportLargeObjs(java.lang.Boolean supportLargeObjs)
Sets the SupportLargeObjs property

Parameters:
supportLargeObjs - is true if the device supports handling of large objects

setSupportLargeObjs

public void setSupportLargeObjs(boolean supportLargeObjs)
Sets the SupportLargeObjs property

Parameters:
supportLargeObjs - is true if the device supports handling of large objects

getSupportLargeObjs

public java.lang.Boolean getSupportLargeObjs()
Gets the Boolean value of supportLargeObjs

Returns:
true if the device supports handling of large objects

isSupportNumberOfChanges

public boolean isSupportNumberOfChanges()
Gets true if the device supports number of changes

Returns:
true if the device supports number of changes

setSupportNumberOfChanges

public void setSupportNumberOfChanges(java.lang.Boolean supportNumberOfChanges)
Sets the supportNumberOfChanges property

Parameters:
supportNumberOfChanges - is true if the device supports number of changes

setSupportNumberOfChanges

public void setSupportNumberOfChanges(boolean supportNumberOfChanges)
Sets the SupportNumberOfChanges property

Parameters:
supportNumberOfChanges - is true if the device supports number of changes

getSupportNumberOfChanges

public java.lang.Boolean getSupportNumberOfChanges()
Gets the Boolean value of SupportNumberOfChanges

Returns:
true if the device supports number of changes

isSupportHierarchicalSync

public boolean isSupportHierarchicalSync()
Gets true if the device supports hierarchical sync

Returns:
true if the device supports hierarchical sync

setSupportHierarchicalSync

public void setSupportHierarchicalSync(java.lang.Boolean supportHierarchicalSync)
Sets the SupportHierarchicalSync property

Parameters:
supportHierarchicalSync - is true if the device supports hierarchical sync

setSupportHierarchicalSync

public void setSupportHierarchicalSync(boolean supportHierarchicalSync)
Sets the SupportHierarchicalSync property

Parameters:
supportHierarchicalSync - is true if the device supports hierarchical sync

getSupportHierarchicalSync

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

Returns:
true if the device supports hierarchical sync

getCTCapsV1

public java.util.Vector getCTCapsV1()
Gets the array of content type capability

Returns:
the array of content type capability

setCTCapsV1

public void setCTCapsV1(CTCapV1[] ctCapsV1)
Sets an array of content type capability

Parameters:
ctCapsV1 - an array of content type capability

setCTCapsV1

public void setCTCapsV1(java.util.Vector ctCapsV1)
Sets an array of content type capability

Parameters:
ctCapsV1 - an array of content type capability

getDataStores

public java.util.Vector getDataStores()
Gets the array of datastore

Returns:
the array of datastore

setDataStores

public void setDataStores(DataStore[] dataStores)
Sets an array of DataStore object

Parameters:
dataStores - an array of DataStore object

addDataStore

public void addDataStore(DataStore dataStore)

setDataStores

public void setDataStores(java.util.Vector dataStores)
Sets an array of DataStore

Parameters:
dataStores - an array of DataStore

getExts

public java.util.Vector getExts()
Gets the array of experimental extension

Returns:
the array of experimental extension

setExts

public void setExts(Ext[] exts)
Sets an array of experimental extension objects

Parameters:
exts - an array of experimental extension objects

addExts

public void addExts(java.util.Vector exts)
Adds a set of external properties to the existing one. If the existing set is undefined, this method behaves like setExts.

Parameters:
exts - an array of extensions to add

setExts

public void setExts(java.util.Vector exts)
Sets an array of experimental extension

Parameters:
exts - an array of experimental extension

serialize

public void serialize(java.io.DataOutputStream out)
               throws java.io.IOException
Throws:
java.io.IOException

deserialize

public void deserialize(java.io.DataInputStream in)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2001-2009 Funambol.