com.funambol.common.pim.model.common
Class PropertyWithTimeZone

java.lang.Object
  extended by com.funambol.common.pim.model.common.Property
      extended by com.funambol.common.pim.model.common.PropertyWithTimeZone
Direct Known Subclasses:
RecurrencePattern, Reminder

public class PropertyWithTimeZone
extends Property

This class extends com.funambol.common.pim.common.Property attaching a time zone to it. About the format used for the time zone, please see http://java.sun.com/javase/timezones/.

Version:
$Id: PropertyWithTimeZone.java,v 1.1 2008-04-10 10:40:56 mauro Exp $

Field Summary
protected  java.lang.String timeZone
           
 
Fields inherited from class com.funambol.common.pim.model.common.Property
altrep, chrset, cn, cutype, delegatedFrom, delegatedTo, dir, encoding, group, language, member, partstat, propertyValue, related, sentby, tag, type, value, xParams
 
Constructor Summary
PropertyWithTimeZone()
          Creates a new PropertyWithTimeZone with a null time zone and no value.
PropertyWithTimeZone(Property property, java.lang.String timezone)
          Creates a new PropertyWithTimeZone by attaching a time zone to the value of an existing property.
PropertyWithTimeZone(java.lang.String propertyValue)
          Creates a new PropertyWithTimeZone with a null time zone.
PropertyWithTimeZone(java.lang.String propertyValue, java.lang.String timeZone)
          Creates a new PropertyWithTimeZone.
 
Method Summary
 java.lang.String getTimeZone()
          Gets the time zone property.
 void setTimeZone(java.lang.String timeZone)
          Sets the time zone property.
 
Methods inherited from class com.funambol.common.pim.model.common.Property
compare, equals, getAltrep, getCharset, getCn, getCutype, getDelegatedFrom, getDelegatedTo, getDir, getEncoding, getGroup, getLanguage, getMember, getPartstat, getPropertyValue, getPropertyValueAsString, getRelated, getSentby, getTag, getType, getValue, getXParams, hashCode, isEmptyProperty, setAltrep, setCharset, setCn, setCutype, setDelegatedFrom, setDelegatedTo, setDir, setEncoding, setGroup, setLanguage, setMember, setPartstat, setPropertyValue, setRelated, setSentby, setTag, setType, setValue, setXParams, stringFrom, stringFrom
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeZone

protected java.lang.String timeZone
Constructor Detail

PropertyWithTimeZone

public PropertyWithTimeZone(java.lang.String propertyValue,
                            java.lang.String timeZone)
Creates a new PropertyWithTimeZone.

Parameters:
propertyValue - the text value of the property
timeZone - the time zone as its Olson ID

PropertyWithTimeZone

public PropertyWithTimeZone(java.lang.String propertyValue)
Creates a new PropertyWithTimeZone with a null time zone.

Parameters:
propertyValue - the text value of the property

PropertyWithTimeZone

public PropertyWithTimeZone()
Creates a new PropertyWithTimeZone with a null time zone and no value.


PropertyWithTimeZone

public PropertyWithTimeZone(Property property,
                            java.lang.String timezone)
Creates a new PropertyWithTimeZone by attaching a time zone to the value of an existing property.

Parameters:
property - an existing property, whose text value will be recycled
timezone - the time zone as its Olson ID
Method Detail

getTimeZone

public java.lang.String getTimeZone()
Gets the time zone property.

Returns:
the time zone as its Olson ID

setTimeZone

public void setTimeZone(java.lang.String timeZone)
Sets the time zone property.

Parameters:
timeZone - the time zone as its Olson ID


Copyright © 2001-2009 Funambol.