net.fortuna.ical4j.model.property
Class UtcProperty

java.lang.Object
  extended by net.fortuna.ical4j.model.Content
      extended by net.fortuna.ical4j.model.Property
          extended by net.fortuna.ical4j.model.property.DateProperty
              extended by net.fortuna.ical4j.model.property.UtcProperty
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Completed, Created, DtStamp, LastModified, Trigger

public abstract class UtcProperty
extends DateProperty

Superclass for all properties with date-time values that must be specified in UTC time.

Author:
Ben Fortuna
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.fortuna.ical4j.model.property.DateProperty
timezone
 
Fields inherited from class net.fortuna.ical4j.model.Property
ACTION, ATTACH, ATTENDEE, CALSCALE, CATEGORIES, CLASS, COMMENT, COMPLETED, CONTACT, COUNTRY, CREATED, DESCRIPTION, DTEND, DTSTAMP, DTSTART, DUE, DURATION, EXDATE, EXPERIMENTAL_PREFIX, EXRULE, EXTENDED_ADDRESS, FREEBUSY, GEO, LAST_MODIFIED, LOCALITY, LOCATION, LOCATION_TYPE, METHOD, NAME, ORGANIZER, PERCENT_COMPLETE, POSTALCODE, PRIORITY, PRODID, RDATE, RECURRENCE_ID, REGION, RELATED_TO, REPEAT, REQUEST_STATUS, RESOURCES, RRULE, SEQUENCE, STATUS, STREET_ADDRESS, SUMMARY, TEL, TRANSP, TRIGGER, TZID, TZNAME, TZOFFSETFROM, TZOFFSETTO, TZURL, UID, URL, VERSION
 
Constructor Summary
UtcProperty(java.lang.String name)
           
UtcProperty(java.lang.String name, ParameterList parameters)
           
 
Method Summary
 DateTime getDateTime()
           
 void setDateTime(DateTime dateTime)
           
 void setTimeZone(TimeZone timezone)
          Publically available method to update the current timezone.
 void validate()
          Perform validation on a property.
 
Methods inherited from class net.fortuna.ical4j.model.property.DateProperty
copy, getDate, getValue, isUtc, setDate, setUtc, setValue
 
Methods inherited from class net.fortuna.ical4j.model.Property
equals, getName, getParameter, getParameters, getParameters, hashCode, isCalendarProperty, isComponentProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UtcProperty

public UtcProperty(java.lang.String name,
                   ParameterList parameters)
Parameters:
name -
parameters -

UtcProperty

public UtcProperty(java.lang.String name)
Parameters:
name -
Method Detail

getDateTime

public final DateTime getDateTime()
Returns:
Returns the date-time.

setDateTime

public void setDateTime(DateTime dateTime)
Parameters:
dateTime - The dateTime to set.

setTimeZone

public void setTimeZone(TimeZone timezone)
Description copied from class: DateProperty
Publically available method to update the current timezone.

Overrides:
setTimeZone in class DateProperty

validate

public void validate()
              throws ValidationException
Description copied from class: Property
Perform validation on a property.

Overrides:
validate in class DateProperty
Throws:
ValidationException - where the property is not in a valid state


Copyright © 2004-2007 Modularity. All Rights Reserved.