KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jical > ICalendarTimeZone


1 /*
2  *
3  * Created on August 3, 2002, 9:01 PM
4  *
5  * Stores an icalendar Time Zone as a java object.
6  * There can be more than one iCal time zone per Calendar.
7  *
8  */

9
10 package org.jical;
11
12 /**
13  *
14  * @author sfg
15  * RFC 2445
16  *
17  */

18
19 import java.util.Date JavaDoc;
20
21 public class ICalendarTimeZone {
22
23     private String JavaDoc TzID;
24     private String JavaDoc XLicLocation;
25     private int standardTzOffsetFrom;
26     private int standardTzOffsetTo;
27     private String JavaDoc standardTzName;
28     private Date JavaDoc standardDtStart;
29     private String JavaDoc standardRRule;
30     private int daylightTzOffsetFrom;
31     private int daylightTzOffsetTo;
32     private String JavaDoc daylightTzName;
33     private Date JavaDoc daylightDtStart;
34     private String JavaDoc daylightRRule;
35
36     /*
37      BEGIN:VTIMEZONE
38     TZID:/softwarestudio.org/Olson_20011030_5/Australia/Sydney
39     X-LIC-LOCATION:Australia/Sydney
40     BEGIN:STANDARD
41     TZOFFSETFROM:+1100
42     TZOFFSETTO:+1000
43     TZNAME:EST
44     DTSTART:19700329T030000
45     RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
46     END:STANDARD
47     BEGIN:DAYLIGHT
48     TZOFFSETFROM:+1000
49     TZOFFSETTO:+1100
50     TZNAME:EST
51     DTSTART:19701025T020000
52     RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
53     END:DAYLIGHT
54     END:VTIMEZONE
55      */

56     
57     /** Creates a new instance of ICalendar. */
58     public ICalendarTimeZone() {
59     }
60     
61     /** Getter for property TzID.
62      * @return Value of property TzID.
63      */

64     public String JavaDoc getTzID ()
65     {
66         return TzID;
67     }
68     /** Setter for property TzID.
69      * @param TzID New value of property TzID.
70      */

71     public void setTzID (String JavaDoc TzID)
72     {
73         this.TzID = TzID;
74     }
75     /** Getter for property XLicLocation.
76      * @return Value of property XLicLocation.
77      */

78     public String JavaDoc getXLicLocation ()
79     {
80         return XLicLocation;
81     }
82     /** Setter for property XLicLocation.
83      * @param XLicLocation New value of property XLicLocation.
84      */

85     public void setXLicLocation (String JavaDoc XLicLocation)
86     {
87         this.XLicLocation = XLicLocation;
88     }
89     /** Getter for property standardTzOffsetFrom.
90      * @return Value of property standardTzOffsetFrom.
91      */

92     public int getstandardTzOffsetFrom ()
93     {
94         return standardTzOffsetFrom;
95     }
96     /** Setter for property standardTzOffsetFrom.
97      * @param standardTzOffsetFrom New value of property standardTzOffsetFrom.
98      */

99     public void setstandardTzOffsetFrom (int standardTzOffsetFrom)
100     {
101         this.standardTzOffsetFrom = standardTzOffsetFrom;
102     }
103     /** Getter for property standardTzOffsetTo.
104      * @return Value of property standardTzOffsetTo.
105      */

106     public int getstandardTzOffsetTo ()
107     {
108         return standardTzOffsetTo;
109     }
110     /** Setter for property standardTzOffsetTo.
111      * @param standardTzOffsetTo New value of property standardTzOffsetTo.
112      */

113     public void setstandardTzOffsetTo (int standardTzOffsetTo)
114     {
115         this.standardTzOffsetTo = standardTzOffsetTo;
116     }
117     /** Getter for property standardTzName.
118      * @return Value of property standardTzName.
119      */

120     public String JavaDoc getstandardTzName ()
121     {
122         return standardTzName;
123     }
124     /** Setter for property standardTzName.
125      * @param standardTzName New value of property standardTzName.
126      */

127     public void setstandardTzName (String JavaDoc standardTzName)
128     {
129         this.standardTzName = standardTzName;
130     }
131     /** Getter for property standardDtStart.
132      * @return Value of property standardDtStart.
133      */

134     public Date JavaDoc getstandardDtStart ()
135     {
136         return standardDtStart;
137     }
138     /** Setter for property standardDtStart.
139      * @param standardDtStart New value of property standardDtStart.
140      */

141     public void setstandardDtStart (Date JavaDoc standardDtStart)
142     {
143         this.standardDtStart = standardDtStart;
144     }
145     /** Getter for property standardRRule.
146      * @return Value of property standardRRule.
147      */

148     public String JavaDoc getstandardRRule()
149     {
150         return standardRRule;
151     }
152     /** Setter for property standardRRule.
153      * @param standardRRule New value of property standardRRule.
154      */

155     public void setstandardRRule (String JavaDoc standardRRule)
156     {
157         this.standardRRule = standardRRule;
158     }
159     /** Getter for property daylightTzOffsetFrom.
160      * @return Value of property daylightTzOffsetFrom.
161      */

162     public int getdaylightTzOffsetFrom ()
163     {
164         return daylightTzOffsetFrom;
165     }
166     /** Setter for property daylightTzOffsetFrom.
167      * @param daylightTzOffsetFrom New value of property daylightTzOffsetFrom.
168      */

169     public void setdaylightTzOffsetFrom (int daylightTzOffsetFrom)
170     {
171         this.daylightTzOffsetFrom = daylightTzOffsetFrom;
172     }
173     /** Getter for property daylightTzOffsetTo.
174      * @return Value of property daylightTzOffsetTo.
175      */

176     public int getdaylightTzOffsetTo ()
177     {
178         return daylightTzOffsetTo;
179     }
180     /** Setter for property daylightTzOffsetTo.
181      * @param daylightTzOffsetTo New value of property daylightTzOffsetTo.
182      */

183     public void setdaylightTzOffsetTo (int daylightTzOffsetTo)
184     {
185         this.daylightTzOffsetTo = daylightTzOffsetTo;
186     }
187     /** Getter for property daylightTzName.
188      * @return Value of property daylightTzName.
189      */

190     public String JavaDoc getdaylightTzName ()
191     {
192         return daylightTzName;
193     }
194     /** Setter for property daylightTzName.
195      * @param daylightTzName New value of property daylightTzName.
196      */

197     public void setdaylightTzName (String JavaDoc daylightTzName)
198     {
199         this.daylightTzName = daylightTzName;
200     }
201     /** Getter for property daylightDtStart.
202      * @return Value of property daylightDtStart.
203      */

204     public Date JavaDoc getdaylightDtStart ()
205     {
206         return daylightDtStart;
207     }
208     /** Setter for property daylightDtStart.
209      * @param daylightDtStart New value of property daylightDtStart.
210      */

211     public void setdaylightDtStart (Date JavaDoc daylightDtStart)
212     {
213         this.daylightDtStart = daylightDtStart;
214     }
215     /** Getter for property daylightRRule.
216      * @return Value of property daylightRRule.
217      */

218     public String JavaDoc getdaylightRRule()
219     {
220         return daylightRRule;
221     }
222     /** Setter for property daylightRRule.
223      * @param daylightRRule New value of property daylightRRule.
224      */

225     public void setdaylightRRule (String JavaDoc daylightRRule)
226     {
227         this.daylightRRule = daylightRRule;
228     }
229 }
230
Popular Tags