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) |
DateListProperty(String name,
DateList<T> dates) |
DateListProperty(String name,
ParameterList parameters) |
DateListProperty(String name,
ParameterList parameters,
DateList<T> dates) |
Modifier and Type | Method and Description |
---|---|
List<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.
|
add, copy, equals, getName, getParameter, getParameters, getParameters, hashCode, newFactory, remove, removeAll, replace, setParameters, toString, validate
public DateListProperty(String name)
name
- the property namepublic DateListProperty(String name, ParameterList parameters)
name
- the property nameparameters
- property parameterspublic DateListProperty(String name, DateList<T> dates)
name
- the property namedates
- a list of initial dates for the propertypublic DateListProperty(String name, ParameterList parameters, DateList<T> dates)
name
- the property nameparameters
- property parametersdates
- 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