public abstract class UtcProperty extends DateProperty
Content.Factory
ACKNOWLEDGED, ACTION, ATTACH, ATTENDEE, BUSYTYPE, 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 and Description |
---|
UtcProperty(java.lang.String name,
ParameterList parameters,
PropertyFactory factory) |
UtcProperty(java.lang.String name,
PropertyFactory factory) |
Modifier and Type | Method and Description |
---|---|
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.
|
copy, getDate, getTimeZone, getValue, hashCode, isUtc, setDate, setUtc, setValue
equals, getName, getParameter, getParameters, getParameters, toString
public UtcProperty(java.lang.String name, ParameterList parameters, PropertyFactory factory)
name
- a property nameparameters
- list of parameterspublic UtcProperty(java.lang.String name, PropertyFactory factory)
name
- a property namepublic final DateTime getDateTime()
public void setDateTime(DateTime dateTime)
dateTime
- The dateTime to set.public void setTimeZone(TimeZone timezone)
setTimeZone
in class DateProperty
timezone
- a timezone instancepublic void validate() throws ValidationException
validate
in class DateProperty
ValidationException
- where the property is not in a valid state