|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.common.pim.model.common.Property
public class Property
This object represents the property of a vCard/vCalendar/iCalendar item, including its value and parameters.
Field Summary | |
---|---|
protected java.lang.String |
altrep
|
protected java.lang.String |
chrset
|
protected java.lang.String |
cn
|
protected java.lang.String |
cutype
|
protected java.lang.String |
delegatedFrom
|
protected java.lang.String |
delegatedTo
|
protected java.lang.String |
dir
|
protected java.lang.String |
encoding
|
protected java.lang.String |
group
|
protected java.lang.String |
language
|
protected java.lang.String |
member
|
protected java.lang.String |
partstat
|
protected java.lang.Object |
propertyValue
|
protected java.lang.String |
related
|
protected java.lang.String |
sentby
|
protected java.lang.String |
tag
|
protected java.lang.String |
type
|
protected java.lang.String |
value
|
protected java.util.Map<java.lang.String,java.lang.String> |
xParams
|
Constructor Summary | |
---|---|
Property()
Creates an empty property. |
|
Property(java.lang.String propertyValue)
Creates property without parameters but with the specified value. |
Method Summary | |
---|---|
boolean |
compare(Property prop)
Compares this Property with another one. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAltrep()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getCharset()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getCn()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getCutype()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getDelegatedFrom()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getDelegatedTo()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getDir()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getEncoding()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getGroup()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getLanguage()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getMember()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getPartstat()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.Object |
getPropertyValue()
Returns the value of this property "as it is". |
java.lang.String |
getPropertyValueAsString()
Returns the value of this property as a String. |
java.lang.String |
getRelated()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getSentby()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getTag()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getType()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.lang.String |
getValue()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
java.util.HashMap<java.lang.String,java.lang.String> |
getXParams()
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
int |
hashCode()
|
static boolean |
isEmptyProperty(Property property)
Checks (safely) whether the property is unset or set to an empty string. |
void |
setAltrep(java.lang.String altrep)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setCharset(java.lang.String chrset)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setCn(java.lang.String cn)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setCutype(java.lang.String cutype)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setDelegatedFrom(java.lang.String delegatedFrom)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setDelegatedTo(java.lang.String delegatedTo)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setDir(java.lang.String dir)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setEncoding(java.lang.String encoding)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setGroup(java.lang.String group)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setLanguage(java.lang.String language)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setMember(java.lang.String member)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setPartstat(java.lang.String partstat)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setPropertyValue(java.lang.Object propertyValue)
Sets the property value. |
void |
setRelated(java.lang.String related)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setSentby(java.lang.String sentby)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setTag(java.lang.String tag)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setType(java.lang.String type)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setValue(java.lang.String value)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
void |
setXParams(java.util.Map<java.lang.String,java.lang.String> xParams)
Deprecated. Since version 6.5, a Property should not contain anything but the propertyValue. |
static java.lang.String |
stringFrom(Property property)
Extract a string from a property in a safe way. |
static java.lang.String |
stringFrom(Property property,
boolean emptyImpliesNull)
Extract a string from a property in a safe way. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object propertyValue
protected java.lang.String altrep
protected java.lang.String cn
protected java.lang.String cutype
protected java.lang.String delegatedFrom
protected java.lang.String delegatedTo
protected java.lang.String dir
protected java.lang.String encoding
protected java.lang.String language
protected java.lang.String member
protected java.lang.String partstat
protected java.lang.String related
protected java.lang.String sentby
protected java.lang.String value
protected java.util.Map<java.lang.String,java.lang.String> xParams
protected java.lang.String tag
protected java.lang.String group
protected java.lang.String chrset
protected java.lang.String type
Constructor Detail |
---|
public Property()
public Property(java.lang.String propertyValue)
propertyValue
- the property valueMethod Detail |
---|
public java.lang.Object getPropertyValue()
public java.lang.String getPropertyValueAsString()
public java.lang.String getEncoding()
public java.lang.String getLanguage()
public java.lang.String getValue()
public java.lang.String getAltrep()
public java.lang.String getCn()
public java.lang.String getCutype()
public java.lang.String getDelegatedFrom()
public java.lang.String getDelegatedTo()
public java.lang.String getDir()
public java.lang.String getMember()
public java.lang.String getPartstat()
public java.lang.String getRelated()
public java.lang.String getSentby()
public java.lang.String getGroup()
public java.lang.String getCharset()
public java.lang.String getType()
public java.util.HashMap<java.lang.String,java.lang.String> getXParams()
public void setXParams(java.util.Map<java.lang.String,java.lang.String> xParams)
xParams
- a Map containing all custom parameters (names and values)public java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- the tag to setpublic void setEncoding(java.lang.String encoding)
encoding
- the encoding to setpublic void setLanguage(java.lang.String language)
language
- the language to setpublic void setValue(java.lang.String value)
value
- the value to setpublic void setPropertyValue(java.lang.Object propertyValue)
propertyValue
- the property value to setpublic void setAltrep(java.lang.String altrep)
altrep
- an alternative text representation for the property valuepublic void setCn(java.lang.String cn)
cn
- a common namepublic void setCutype(java.lang.String cutype)
cutype
- the type of calendar userpublic void setDelegatedFrom(java.lang.String delegatedFrom)
delegatedFrom
- the delegated to partecipate at the eventpublic void setDelegatedTo(java.lang.String delegatedTo)
delegatedTo
- the delegatepublic void setDir(java.lang.String dir)
dir
- the directory entrypublic void setMember(java.lang.String member)
member
- the group or list membershippublic void setPartstat(java.lang.String partstat)
partstat
- the partecipation statuspublic void setRelated(java.lang.String related)
related
- the relationship of the alarm triggerpublic void setSentby(java.lang.String sentby)
sentby
- the calendar user that is acting on behalf of the calendar
user specified by the propertypublic void setGroup(java.lang.String group)
group
- the group to setpublic void setCharset(java.lang.String chrset)
chrset
- the charset to setpublic void setType(java.lang.String type)
type
- the type to setpublic boolean compare(Property prop)
prop
- the Property object to compare with
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static boolean isEmptyProperty(Property property)
property
- may be null
PIMEntityDAO#stringFrom(Property, boolean)
public static java.lang.String stringFrom(Property property)
property
- may be null
public static java.lang.String stringFrom(Property property, boolean emptyImpliesNull)
property
- may be nullemptyImpliesNull
- if true, an empty string ("") will be treated as
if it were null; otherwise, in such a case an
empty String object will be returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |