Class UtcProperty
- java.lang.Object
-
- net.fortuna.ical4j.model.Content
-
- net.fortuna.ical4j.model.Property
-
- net.fortuna.ical4j.model.property.DateProperty
-
- net.fortuna.ical4j.model.property.UtcProperty
-
- All Implemented Interfaces:
Serializable,Comparable<Property>
- Direct Known Subclasses:
Acknowledged,Completed,Created,DtStamp,LastModified,Trigger
public abstract class UtcProperty extends DateProperty
$Id$ Created on 8/08/2005 Superclass for all properties with date-time values that must be specified in UTC time.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.fortuna.ical4j.model.Content
Content.Factory
-
-
Field Summary
-
Fields inherited from class net.fortuna.ical4j.model.Property
ACKNOWLEDGED, ACTION, ATTACH, ATTENDEE, BUSYTYPE, CALENDAR_ADDRESS, 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, PARTICIPANT_TYPE, PERCENT_COMPLETE, POSTALCODE, PRIORITY, PRODID, PROXIMITY, RDATE, RECURRENCE_ID, REGION, RELATED_TO, REPEAT, REQUEST_STATUS, RESOURCE_TYPE, RESOURCES, RRULE, SEQUENCE, STATUS, STREET_ADDRESS, STRUCTURED_DATA, STYLED_DESCRIPTION, SUMMARY, TEL, TRANSP, TRIGGER, TZID, TZNAME, TZOFFSETFROM, TZOFFSETTO, TZURL, UID, URL, VERSION
-
-
Constructor Summary
Constructors Constructor Description UtcProperty(String name, ParameterList parameters, PropertyFactory factory)UtcProperty(String name, PropertyFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateTimegetDateTime()voidsetDateTime(DateTime dateTime)voidsetTimeZone(TimeZone timezone)Publically available method to update the current timezone.voidvalidate()Perform validation on a property.-
Methods inherited from class net.fortuna.ical4j.model.property.DateProperty
compareTo, copy, getDate, getTimeZone, getValue, hashCode, isUtc, setDate, setUtc, setValue
-
Methods inherited from class net.fortuna.ical4j.model.Property
equals, getName, getParameter, getParameters, getParameters, toString
-
-
-
-
Constructor Detail
-
UtcProperty
public UtcProperty(String name, ParameterList parameters, PropertyFactory factory)
- Parameters:
name- a property nameparameters- list of parameters
-
UtcProperty
public UtcProperty(String name, PropertyFactory factory)
- Parameters:
name- a property 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)
Publically available method to update the current timezone.- Overrides:
setTimeZonein classDateProperty- Parameters:
timezone- a timezone instance
-
validate
public void validate() throws ValidationExceptionPerform validation on a property.- Overrides:
validatein classDateProperty- Throws:
ValidationException- where the property is not in a valid state
-
-