001: /*
002: *
003: * Created on August 3, 2002, 9:01 PM
004: *
005: * Stores an icalendar Time Zone as a java object.
006: * There can be more than one iCal time zone per Calendar.
007: *
008: */
009:
010: package org.jical;
011:
012: /**
013: *
014: * @author sfg
015: * RFC 2445
016: *
017: */
018:
019: import java.util.Date;
020:
021: public class ICalendarTimeZone {
022:
023: private String TzID;
024: private String XLicLocation;
025: private int standardTzOffsetFrom;
026: private int standardTzOffsetTo;
027: private String standardTzName;
028: private Date standardDtStart;
029: private String standardRRule;
030: private int daylightTzOffsetFrom;
031: private int daylightTzOffsetTo;
032: private String daylightTzName;
033: private Date daylightDtStart;
034: private String daylightRRule;
035:
036: /*
037: BEGIN:VTIMEZONE
038: TZID:/softwarestudio.org/Olson_20011030_5/Australia/Sydney
039: X-LIC-LOCATION:Australia/Sydney
040: BEGIN:STANDARD
041: TZOFFSETFROM:+1100
042: TZOFFSETTO:+1000
043: TZNAME:EST
044: DTSTART:19700329T030000
045: RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
046: END:STANDARD
047: BEGIN:DAYLIGHT
048: TZOFFSETFROM:+1000
049: TZOFFSETTO:+1100
050: TZNAME:EST
051: DTSTART:19701025T020000
052: RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
053: END:DAYLIGHT
054: END:VTIMEZONE
055: */
056:
057: /** Creates a new instance of ICalendar. */
058: public ICalendarTimeZone() {
059: }
060:
061: /** Getter for property TzID.
062: * @return Value of property TzID.
063: */
064: public String getTzID() {
065: return TzID;
066: }
067:
068: /** Setter for property TzID.
069: * @param TzID New value of property TzID.
070: */
071: public void setTzID(String TzID) {
072: this .TzID = TzID;
073: }
074:
075: /** Getter for property XLicLocation.
076: * @return Value of property XLicLocation.
077: */
078: public String getXLicLocation() {
079: return XLicLocation;
080: }
081:
082: /** Setter for property XLicLocation.
083: * @param XLicLocation New value of property XLicLocation.
084: */
085: public void setXLicLocation(String XLicLocation) {
086: this .XLicLocation = XLicLocation;
087: }
088:
089: /** Getter for property standardTzOffsetFrom.
090: * @return Value of property standardTzOffsetFrom.
091: */
092: public int getstandardTzOffsetFrom() {
093: return standardTzOffsetFrom;
094: }
095:
096: /** Setter for property standardTzOffsetFrom.
097: * @param standardTzOffsetFrom New value of property standardTzOffsetFrom.
098: */
099: public void setstandardTzOffsetFrom(int standardTzOffsetFrom) {
100: this .standardTzOffsetFrom = standardTzOffsetFrom;
101: }
102:
103: /** Getter for property standardTzOffsetTo.
104: * @return Value of property standardTzOffsetTo.
105: */
106: public int getstandardTzOffsetTo() {
107: return standardTzOffsetTo;
108: }
109:
110: /** Setter for property standardTzOffsetTo.
111: * @param standardTzOffsetTo New value of property standardTzOffsetTo.
112: */
113: public void setstandardTzOffsetTo(int standardTzOffsetTo) {
114: this .standardTzOffsetTo = standardTzOffsetTo;
115: }
116:
117: /** Getter for property standardTzName.
118: * @return Value of property standardTzName.
119: */
120: public String getstandardTzName() {
121: return standardTzName;
122: }
123:
124: /** Setter for property standardTzName.
125: * @param standardTzName New value of property standardTzName.
126: */
127: public void setstandardTzName(String standardTzName) {
128: this .standardTzName = standardTzName;
129: }
130:
131: /** Getter for property standardDtStart.
132: * @return Value of property standardDtStart.
133: */
134: public Date getstandardDtStart() {
135: return standardDtStart;
136: }
137:
138: /** Setter for property standardDtStart.
139: * @param standardDtStart New value of property standardDtStart.
140: */
141: public void setstandardDtStart(Date standardDtStart) {
142: this .standardDtStart = standardDtStart;
143: }
144:
145: /** Getter for property standardRRule.
146: * @return Value of property standardRRule.
147: */
148: public String getstandardRRule() {
149: return standardRRule;
150: }
151:
152: /** Setter for property standardRRule.
153: * @param standardRRule New value of property standardRRule.
154: */
155: public void setstandardRRule(String standardRRule) {
156: this .standardRRule = standardRRule;
157: }
158:
159: /** Getter for property daylightTzOffsetFrom.
160: * @return Value of property daylightTzOffsetFrom.
161: */
162: public int getdaylightTzOffsetFrom() {
163: return daylightTzOffsetFrom;
164: }
165:
166: /** Setter for property daylightTzOffsetFrom.
167: * @param daylightTzOffsetFrom New value of property daylightTzOffsetFrom.
168: */
169: public void setdaylightTzOffsetFrom(int daylightTzOffsetFrom) {
170: this .daylightTzOffsetFrom = daylightTzOffsetFrom;
171: }
172:
173: /** Getter for property daylightTzOffsetTo.
174: * @return Value of property daylightTzOffsetTo.
175: */
176: public int getdaylightTzOffsetTo() {
177: return daylightTzOffsetTo;
178: }
179:
180: /** Setter for property daylightTzOffsetTo.
181: * @param daylightTzOffsetTo New value of property daylightTzOffsetTo.
182: */
183: public void setdaylightTzOffsetTo(int daylightTzOffsetTo) {
184: this .daylightTzOffsetTo = daylightTzOffsetTo;
185: }
186:
187: /** Getter for property daylightTzName.
188: * @return Value of property daylightTzName.
189: */
190: public String getdaylightTzName() {
191: return daylightTzName;
192: }
193:
194: /** Setter for property daylightTzName.
195: * @param daylightTzName New value of property daylightTzName.
196: */
197: public void setdaylightTzName(String daylightTzName) {
198: this .daylightTzName = daylightTzName;
199: }
200:
201: /** Getter for property daylightDtStart.
202: * @return Value of property daylightDtStart.
203: */
204: public Date getdaylightDtStart() {
205: return daylightDtStart;
206: }
207:
208: /** Setter for property daylightDtStart.
209: * @param daylightDtStart New value of property daylightDtStart.
210: */
211: public void setdaylightDtStart(Date daylightDtStart) {
212: this .daylightDtStart = daylightDtStart;
213: }
214:
215: /** Getter for property daylightRRule.
216: * @return Value of property daylightRRule.
217: */
218: public String getdaylightRRule() {
219: return daylightRRule;
220: }
221:
222: /** Setter for property daylightRRule.
223: * @param daylightRRule New value of property daylightRRule.
224: */
225: public void setdaylightRRule(String daylightRRule) {
226: this.daylightRRule = daylightRRule;
227: }
228: }
|