View Javadoc

1   /*
2   Wotonomy: OpenStep design patterns for pure Java applications.
3   Copyright (C) 2002 Israfil consulting Services Corporation
4   
5   This library is free software; you can redistribute it and/or
6   modify it under the terms of the GNU Lesser General Public
7   License as published by the Free Software Foundation; either
8   version 2.1 of the License, or (at your option) any later version.
9   
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  Lesser General Public License for more details.
14  
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, see http://www.gnu.org
17  
18  $Id: NSTimeZone.java 892 2006-02-16 12:47:16 +0000 (Thu, 16 Feb 2006) cgruber $
19  
20  */
21  
22  package net.wotonomy.foundation;
23  
24  import java.io.ObjectStreamException;
25  import java.io.Serializable;
26  import java.util.Date;
27  import java.util.Locale;
28  import java.util.TimeZone;
29  /***
30  * A channel to the database, representing a communication
31  * stream within a context of an adaptor.
32  *
33  * @author cgruber@israfil.net
34  * @author $Author: cgruber $
35  * @version $Revision: 892 $
36  */
37  
38  public class NSTimeZone extends TimeZone
39      implements Cloneable, Serializable, NSCoding {
40      protected static class __NSTZPeriodComparator extends NSComparator {
41  
42          protected boolean _ascending = false;
43  
44          public int compare(Object obj, Object obj1) throws NSComparator.ComparisonException {
45  			throw new UnsupportedOperationException("Not Yet Implemented");
46          }
47  
48          public __NSTZPeriodComparator() {
49  			throw new UnsupportedOperationException("Not Yet Implemented");
50          }
51  
52          public __NSTZPeriodComparator(boolean flag) {
53  			throw new UnsupportedOperationException("Not Yet Implemented");
54          }
55      }
56  
57      protected static class __NSTZPeriod {
58  
59          protected String _abbreviation = null;
60          protected int _isdst = 0;
61          protected int _offset = 0;
62          protected double _startTime = 0;
63  
64          protected boolean before(__NSTZPeriod _p_nstzperiod) {
65  			throw new UnsupportedOperationException("Not Yet Implemented");
66          }
67  
68          protected boolean equals(__NSTZPeriod _p_nstzperiod) {
69  			throw new UnsupportedOperationException("Not Yet Implemented");
70          }
71  
72          protected __NSTZPeriod() {
73  			throw new UnsupportedOperationException("Not Yet Implemented");
74          }
75      }
76  
77  
78      public static final String SystemTimeZoneDidChangeNotification = "NSSystemTimeZoneDidChangeNotification";
79      protected NSData _data = null;
80      protected transient int _hashCode = 0;
81      protected transient boolean _initialized = false;
82      protected transient TimeZone _jdkTimeZone = null;
83      protected String _name = null;
84      protected transient int _rawOffset = 0;
85      protected transient NSMutableArray _timeZonePeriods = null;
86      protected transient int _timeZonePeriodsCount = 0;
87      protected transient boolean _useDaylightTime = false;
88  
89      public NSTimeZone() {
90  		throw new UnsupportedOperationException("Not Yet Implemented");
91      }
92  
93      protected NSTimeZone(String s, NSData nsdata) {
94  		throw new UnsupportedOperationException("Not Yet Implemented");
95      }
96  
97      public static NSDictionary abbreviationDictionary() {
98  		throw new UnsupportedOperationException("Not Yet Implemented");
99      }
100 
101     public Class classForCoder() {
102         return getClass();
103     }
104 
105     public Object clone() {
106 		throw new UnsupportedOperationException("Not Yet Implemented");
107     }
108 
109     public static Object decodeObject(NSCoder nscoder) {
110 		throw new UnsupportedOperationException("Not Yet Implemented");
111     }
112 
113     public void encodeWithCoder(NSCoder nscoder) {
114 		throw new UnsupportedOperationException("Not Yet Implemented");
115     }
116 
117     public static synchronized NSTimeZone defaultTimeZone() {
118 		throw new UnsupportedOperationException("Not Yet Implemented");
119     }
120 
121     public static String[] getAvailableIDs() {
122 		throw new UnsupportedOperationException("Not Yet Implemented");
123     }
124 
125     public static TimeZone getDefault() {
126 		throw new UnsupportedOperationException("Not Yet Implemented");
127     }
128 
129     public static NSArray knownTimeZoneNames() {
130 		throw new UnsupportedOperationException("Not Yet Implemented");
131     }
132 
133     public static NSTimeZone localTimeZone() {
134 		throw new UnsupportedOperationException("Not Yet Implemented");
135     }
136 
137     public static synchronized void resetSystemTimeZone() {
138 		throw new UnsupportedOperationException("Not Yet Implemented");
139     }
140 
141     public static synchronized void setDefault(TimeZone timezone) {
142 		throw new UnsupportedOperationException("Not Yet Implemented");
143     }
144 
145     public static synchronized void setDefaultTimeZone(NSTimeZone nstimezone) {
146 		throw new UnsupportedOperationException("Not Yet Implemented");
147     }
148 
149     public void setID(String s) {
150         throw new IllegalStateException(getClass().getName() + " is immutable.");
151     }
152 
153     public void setRawOffset(int i) {
154         throw new IllegalStateException(getClass().getName() + " is immutable.");
155     }
156 
157     public static synchronized NSTimeZone systemTimeZone() {
158 		throw new UnsupportedOperationException("Not Yet Implemented");
159     }
160 
161     public static synchronized NSTimeZone timeZoneForSecondsFromGMT(int i) {
162 		throw new UnsupportedOperationException("Not Yet Implemented");
163     }
164 
165     public static synchronized NSTimeZone timeZoneWithName(String s, boolean flag) {
166 		throw new UnsupportedOperationException("Not Yet Implemented");
167     }
168 
169     public static synchronized NSTimeZone timeZoneWithNameAndData(String s, NSData nsdata) {
170 		throw new UnsupportedOperationException("Not Yet Implemented");
171     }
172 
173     public static NSTimeZone _nstimeZoneWithTimeZone(TimeZone timezone) {
174 		throw new UnsupportedOperationException("Not Yet Implemented");
175     }
176 
177     public String abbreviation() {
178 		throw new UnsupportedOperationException("Not Yet Implemented");
179     }
180 
181     public String abbreviationForTimestamp(NSTimestamp nstimestamp) {
182 		throw new UnsupportedOperationException("Not Yet Implemented");
183     }
184 
185     public NSData data() {
186 		throw new UnsupportedOperationException("Not Yet Implemented");
187     }
188 
189     public boolean equals(Object obj) {
190 		throw new UnsupportedOperationException("Not Yet Implemented");
191     }
192 
193     public String getDisplayName(boolean flag, int i, Locale locale) {
194 		throw new UnsupportedOperationException("Not Yet Implemented");
195     }
196 
197     public String getID() {
198 		throw new UnsupportedOperationException("Not Yet Implemented");
199     }
200 
201     public int getOffset(int i, int j, int k, int l, int i1, int j1) {
202 		throw new UnsupportedOperationException("Not Yet Implemented");
203     }
204 
205     public int getRawOffset() {
206 		throw new UnsupportedOperationException("Not Yet Implemented");
207     }
208 
209     public synchronized int hashCode() {
210 		throw new UnsupportedOperationException("Not Yet Implemented");
211     }
212 
213     public boolean hasSameRules(TimeZone timezone) {
214 		throw new UnsupportedOperationException("Not Yet Implemented");
215     }
216 
217     public boolean inDaylightTime(Date date) {
218 		throw new UnsupportedOperationException("Not Yet Implemented");
219     }
220 
221     public boolean isDaylightSavingTime() {
222 		throw new UnsupportedOperationException("Not Yet Implemented");
223     }
224 
225     public boolean isDaylightSavingTimeForTimestamp(NSTimestamp nstimestamp) {
226 		throw new UnsupportedOperationException("Not Yet Implemented");
227     }
228 
229     public boolean isEqualToTimeZone(NSTimeZone nstimezone) {
230 		throw new UnsupportedOperationException("Not Yet Implemented");
231     }
232 
233     public String name() {
234 		throw new UnsupportedOperationException("Not Yet Implemented");
235     }
236 
237     public int secondsFromGMT() {
238 		throw new UnsupportedOperationException("Not Yet Implemented");
239     }
240 
241     public int secondsFromGMTForTimestamp(NSTimestamp nstimestamp) {
242 		throw new UnsupportedOperationException("Not Yet Implemented");
243     }
244 
245     public String toString() {
246 		throw new UnsupportedOperationException("Not Yet Implemented");
247     }
248 
249     public boolean useDaylightTime() {
250 		throw new UnsupportedOperationException("Not Yet Implemented");
251     }
252 
253     protected Object readResolve() throws ObjectStreamException {
254 		throw new UnsupportedOperationException("Not Yet Implemented");
255     }
256 
257 }
258 /*
259  * $Log$
260  * Revision 1.1  2006/02/16 12:47:16  cgruber
261  * Check in all sources in eclipse-friendly maven-enabled packages.
262  *
263  * Revision 1.2  2003/08/06 23:07:52  chochos
264  * general code cleanup (mostly, removing unused imports)
265  *
266  * Revision 1.1  2002/07/14 21:56:16  mpowers
267  * Contributions from cgruber.
268  *
269  * Revision 1.1  2002/06/25 07:52:57  cgruber
270  * Add quite a few abstract classes, interfaces, and classes.  All API consistent with WebObjects, but with no implementation, nor any private or package access members from the original.
271  *
272  */