/
StandardTime.java
88 lines (83 loc) · 2.83 KB
/
StandardTime.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package jfxtras.labs.icalendarfx.components;
import jfxtras.labs.icalendarfx.properties.component.descriptive.Comment;
import jfxtras.labs.icalendarfx.properties.component.misc.NonStandardProperty;
import jfxtras.labs.icalendarfx.properties.component.recurrence.RecurrenceDates;
import jfxtras.labs.icalendarfx.properties.component.recurrence.RecurrenceRule;
import jfxtras.labs.icalendarfx.properties.component.time.DateTimeStart;
import jfxtras.labs.icalendarfx.properties.component.timezone.TimeZoneName;
import jfxtras.labs.icalendarfx.properties.component.timezone.TimeZoneOffsetFrom;
import jfxtras.labs.icalendarfx.properties.component.timezone.TimeZoneOffsetTo;
/**
* <p>STANDARD<br>
* Describes Standard Time<br>
* RFC 5545, 3.6.5, page 65</p>
*
* <p>The DAYLIGHT sub-component is always a child of a VTIMEZONE calendar component. It can't
* exist alone. The "STANDARD" or "DAYLIGHT" sub-component MUST
* include the {@link DateTimeStart DTSTART}, {@link TimeZoneOffsetFrom TZOFFSETFROM},
* and {@link TimeZoneOffsetTo TZOFFSETTO} properties.</p>
*
* <p>The "DAYLIGHT" sub-component consists of a collection of properties
* that describe Standard Time. In general, this collection
* of properties consists of:
*<ul>
*<li>the first onset DATE-TIME for the observance;
*<li>the last onset DATE-TIME for the observance, if a last onset is
* known;
*<li>the offset to be applied for the observance;
*<li>a rule that describes the day and time when the observance
* takes effect;
*<li>an optional name for the observance.</p>
*</ul>
*</p>
*<p>Properties available to this sub-component include:
*<ul>
*<li>{@link Comment COMMENT}
*<li>{@link DateTimeStart DTSTART}
*<li>{@link RecurrenceDates RDATE}
*<li>{@link RecurrenceRule RRULE}
*<li>{@link TimeZoneName TZNAME}
*<li>{@link TimeZoneOffsetFrom TZOFFSETFROM}
*<li>{@link TimeZoneOffsetTo TZOFFSETTO}
*<li>{@link NonStandardProperty X-PROP}
*</ul>
*</p>
*
* @author David Bal
*
* @see VTimeZone
*
*/
public class StandardTime extends StandardOrDaylight<StandardTime>
{
/*
* CONSTRUCTORS
*/
/**
* Creates a default StandardTime calendar component with no properties
*/
public StandardTime()
{
super();
}
/**
* Creates a deep copy of a StandardTime calendar component
*/
public StandardTime(StandardTime source)
{
super(source);
}
/**
* Creates a new StandardTime calendar component by parsing a String of iCalendar content lines
*
* @param contentLines the text to parse, not null
* @return the parsed StandardTime
*/
@Deprecated // use simple factory
public static StandardTime parse(String contentLines)
{
StandardTime component = new StandardTime();
component.parseContent(contentLines);
return component;
}
}