|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.syncml.protocol.Property
public class Property
This class represents a supported property of a given content type. The parameters to specify a property are name, data type, maximum number of occurences of a property, maximum size in UTF-8 characters, truncation, enumerated value, display name and supported parameter.
Constructor Summary | |
---|---|
Property()
In order to expose the server configuration like WS this constructor must be public |
|
Property(java.lang.String propName,
java.lang.String dataType,
int maxOccur,
int maxSize,
boolean noTruncate,
java.lang.String[] valEnums,
java.lang.String displayName,
PropParam[] propParams)
Creates a new Propety object |
Method Summary | |
---|---|
void |
addParamName(java.lang.String paramName)
|
void |
addPropParam(PropParam propParam)
|
void |
addValEnum(java.lang.String val)
|
java.lang.String |
getDataType()
Gets the data type of the property |
java.lang.String |
getDisplayName()
Gets the display name |
int |
getMaxOccur()
Gets the maximum number of occurrences of the property of the same type supported within a single object |
int |
getMaxSize()
Gets the maximum size for a given datastore (in bytes) |
java.lang.Boolean |
getNoTruncate()
Gets the value of NoTruncate property |
java.lang.String |
getPropName()
Gets the property name |
java.util.Vector |
getPropParams()
Gets the array of supported parameters of the property |
java.util.Vector |
getValEnums()
Gets the array of supported enumerated value of the CTType property |
boolean |
isNoTruncate()
Gets the value of NoTruncate property |
void |
setDataType(java.lang.String dataType)
Sets the data type of the property |
void |
setDisplayName(java.lang.String displayName)
Sets the display name of the property |
void |
setMaxOccur(int maxOccur)
Sets the maximum number of occurrences of the property of the same type supported within a single object |
void |
setMaxSize(int maxSize)
Sets the maximum size for a given datastore (in bytes) |
void |
setNoTruncate(java.lang.Boolean noTruncate)
Specify if the property value can exceed the maximum size as specified by the MaxSize |
void |
setPropName(java.lang.String propName)
Sets the property name |
void |
setPropParams(PropParam[] propParams)
Sets an array of supported parameters of the property |
void |
setPropParams(java.util.Vector propParams)
Sets an array of supported parameters of the property |
void |
setValEnums(java.lang.String[] valEnums)
Sets the array of supported enumerated value of the CTType property |
void |
setValEnums(java.util.Vector valEnums)
Sets the array of supported enumerated value of the CTType property |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Property()
public Property(java.lang.String propName, java.lang.String dataType, int maxOccur, int maxSize, boolean noTruncate, java.lang.String[] valEnums, java.lang.String displayName, PropParam[] propParams)
propName
- The name of a supported property - NOT NULLdataType
- The datatype of a supported propertymaxOccur
- The maximum number of occurrences of a property of the
same type supported within a single objectmaxSize
- The maximum size for a given datastore (in bytes)noTruncate
- Specify if the property value can exceed the maximum
size as specified by the MaxSize tagvalEnums
- The supported enumerated value of a given CTType propertydisplayName
- The display name of a propertypropParams
- The array of supported parameters of a given propertyMethod Detail |
---|
public java.lang.String getPropName()
public void setPropName(java.lang.String propName)
propName
- the property namepublic java.lang.String getDataType()
public void setDataType(java.lang.String dataType)
dataType
- the data type of the propertypublic int getMaxOccur()
public void setMaxOccur(int maxOccur)
maxOccur
- the maximum number of occurrences of the propertypublic int getMaxSize()
public void setMaxSize(int maxSize)
size
- the maximum sizepublic void setNoTruncate(java.lang.Boolean noTruncate)
noTruncate
- the Boolean value of NoTruncate propertypublic boolean isNoTruncate()
public java.lang.Boolean getNoTruncate()
public java.util.Vector getValEnums()
public void setValEnums(java.lang.String[] valEnums)
valEnums
- the array of supported enumerated valuepublic void setValEnums(java.util.Vector valEnums)
valEnums
- the array of supported enumerated valuepublic void addValEnum(java.lang.String val)
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- the display name of the propertypublic java.util.Vector getPropParams()
public void setPropParams(PropParam[] propParams)
propParams
- the array of supported parameters of the propertypublic void setPropParams(java.util.Vector propParams)
propParams
- the array of supported parameters of the propertypublic void addPropParam(PropParam propParam)
public void addParamName(java.lang.String paramName)
paramName
- ParamName's value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |