public abstract class DateListProperty<T extends Temporal> extends Property
Temporal
type for the property.
For example:
Instant
to represent UTC timeLocalDate
to represent a date valueZonedDateTime
to represent a date-time value influenced by timezone rulesContent.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 |
---|
DateListProperty(String name,
DateList<T> dates,
PropertyFactory<?> factory) |
DateListProperty(String name,
List<Parameter> parameters,
DateList<T> dates,
PropertyFactory<?> factory) |
DateListProperty(String name,
List<Parameter> parameters,
PropertyFactory<?> factory) |
DateListProperty(String name,
PropertyFactory<?> factory) |
Modifier and Type | Method and Description |
---|---|
DateList<T> |
getDates() |
ZoneId |
getTimeZone() |
String |
getValue() |
void |
setTimeZone(ZoneId timezone)
Sets the timezone associated with this property.
|
void |
setUtc(boolean utc)
Resets the timezone associated with the property.
|
void |
setValue(String aValue)
Sets the current value of the property.
|
copy, equals, getName, getParameter, getParameters, getParameters, hashCode, toString, validate
public DateListProperty(String name, PropertyFactory<?> factory)
name
- the property namepublic DateListProperty(String name, List<Parameter> parameters, PropertyFactory<?> factory)
name
- the property nameparameters
- property parameterspublic DateListProperty(String name, DateList<T> dates, PropertyFactory<?> factory)
name
- the property namedates
- a list of initial dates for the propertypublic void setValue(String aValue)
public String getValue()
public void setTimeZone(ZoneId timezone)
timezone
- a timezone to associate with this propertypublic final ZoneId getTimeZone()
public final void setUtc(boolean utc)
utc
- the UTC value