|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.fortuna.ical4j.model.Content
net.fortuna.ical4j.model.Property
net.fortuna.ical4j.model.property.DateProperty
public abstract class DateProperty
$Id: DateProperty.java,v 1.38 2011/02/20 03:14:09 fortuna Exp $ Created on 9/07/2005 Base class for properties with a DATE or DATE-TIME value. Note that some sub-classes may only allow either a DATE or a DATE-TIME value, for which additional rules/validation should be specified.
| Field Summary |
|---|
| Fields inherited from class net.fortuna.ical4j.model.Property |
|---|
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 Summary | |
|---|---|
DateProperty(java.lang.String name,
ParameterList parameters,
PropertyFactory factory)
|
|
DateProperty(java.lang.String name,
PropertyFactory factory)
|
|
DateProperty(java.lang.String name,
TimeZone timezone,
PropertyFactory factory)
Creates a new instance of the named property with an initial timezone. |
|
| Method Summary | |
|---|---|
Property |
copy()
Create a (deep) copy of this property. |
Date |
getDate()
|
TimeZone |
getTimeZone()
|
java.lang.String |
getValue()
|
boolean |
isUtc()
Indicates whether the current date value is specified in UTC time. |
void |
setDate(Date date)
Sets the date value of this property. |
void |
setTimeZone(TimeZone timezone)
Publically available method to update the current timezone. |
void |
setUtc(boolean utc)
Resets the VTIMEZONE associated with the property. |
void |
setValue(java.lang.String value)
Default setValue() implementation. |
void |
validate()
Perform validation on a property. |
| Methods inherited from class net.fortuna.ical4j.model.Property |
|---|
equals, getName, getParameter, getParameters, getParameters, hashCode, isCalendarProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateProperty(java.lang.String name,
ParameterList parameters,
PropertyFactory factory)
name - the property nameparameters - a list of initial parameters
public DateProperty(java.lang.String name,
PropertyFactory factory)
name - the property name
public DateProperty(java.lang.String name,
TimeZone timezone,
PropertyFactory factory)
name - property nametimezone - initial timezone| Method Detail |
|---|
public final Date getDate()
public final void setDate(Date date)
date - The date to set.
public void setValue(java.lang.String value)
throws java.text.ParseException
setValue in class Propertyvalue - a string representation of a DATE or DATE-TIME value
java.text.ParseException - where the specified value is not a valid DATE or DATE-TIME
representationpublic java.lang.String getValue()
getValue in class Contentpublic void setTimeZone(TimeZone timezone)
timezone - a timezone instancepublic final TimeZone getTimeZone()
public final void setUtc(boolean utc)
utc - a UTC valuepublic final boolean isUtc()
public void validate()
throws ValidationException
validate in class PropertyValidationException - where the property is not in a valid state
public Property copy()
throws java.io.IOException,
java.net.URISyntaxException,
java.text.ParseException
copy in class Propertyjava.io.IOException - where an error occurs reading property data
java.net.URISyntaxException - where the property contains an invalid URI value
java.text.ParseException - where the property contains an invalid date value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||