com.funambol.syncml.protocol
Class CTCap

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

public class CTCap
extends java.lang.Object

This class corresponds to the <CTCap> tag in the SyncML devinf DTD v1.2


Constructor Summary
CTCap()
          In order to expose the server configuration like WS this constructor must be public
CTCap(CTInfo ctInfo, boolean fieldLevel, Property[] properties)
          Creates a new CTCap object with the given type, version, field-level and an array of properties
 
Method Summary
 void addProperty(Property property)
           
 CTInfo getCTInfo()
          Get a CTInfo object
 java.lang.Boolean getFieldLevel()
          Gets the value of FieldLevel property
 java.util.Vector getProperties()
          Get an array of supported properties of a given content type
 boolean isFieldLevel()
          Gets the value of FieldLevel property
 void setCTInfo(CTInfo ctInfo)
          Sets a CTInfo object
 void setFieldLevel(java.lang.Boolean fieldLevel)
          Sets the field-level
 void setProperties(Property[] properties)
          Sets an array of supported properties of a given content type
 void setProperties(java.util.Vector properties)
          Sets an array of supported properties of a given content type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CTCap

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


CTCap

public CTCap(CTInfo ctInfo,
             boolean fieldLevel,
             Property[] properties)
Creates a new CTCap object with the given type, version, field-level and an array of properties

Parameters:
ctInfo - The type and version of a supported content type - NOT NULL
fieldLevel - The capability to apply field-level replaces for the corresponding CTType
properties - The array of supported properties of a given content type - NOT NULL
Method Detail

getCTInfo

public CTInfo getCTInfo()
Get a CTInfo object

Returns:
a CTInfo object

setCTInfo

public void setCTInfo(CTInfo ctInfo)
Sets a CTInfo object

Parameters:
ctInfo - The CTInfo object

setFieldLevel

public void setFieldLevel(java.lang.Boolean fieldLevel)
Sets the field-level

Parameters:
fieldLevel - the Boolean value of FieldLevel property

isFieldLevel

public boolean isFieldLevel()
Gets the value of FieldLevel property

Returns:
true if the sender is able to apply field-level replaces for the corresponding CTType property, otherwise false

getFieldLevel

public java.lang.Boolean getFieldLevel()
Gets the value of FieldLevel property

Returns:
true if the sender is able to apply field-level replaces for the corresponding CTType property, otherwise false

getProperties

public java.util.Vector getProperties()
Get an array of supported properties of a given content type

Returns:
an array of supported properties

setProperties

public void setProperties(Property[] properties)
Sets an array of supported properties of a given content type

Parameters:
properties - an array of supported properties

setProperties

public void setProperties(java.util.Vector properties)
Sets an array of supported properties of a given content type

Parameters:
properties - an array of supported properties

addProperty

public void addProperty(Property property)


Copyright © 2001-2009 Funambol.