PageRenderTime 390ms CodeModel.GetById 101ms app.highlight 144ms RepoModel.GetById 137ms app.codeStats 0ms

/lib/docs/enum/docs/api/com/plotnix/enum/Enum.html

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
HTML | 540 lines | 472 code | 53 blank | 15 comment | 0 complexity | 2fa55ad426e6c9bb950fc288fc6e0de6 MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
  2<!--NewPage-->
  3<HTML>
  4<HEAD>
  5<!-- Generated by javadoc on Sat May 19 22:22:59 EDT 2001 -->
  6<TITLE>
  7Flexible Enums in Java (Version 0.1-dev): Class  Enum
  8</TITLE>
  9<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
 10</HEAD>
 11<BODY BGCOLOR="white">
 12
 13<!-- ========== START OF NAVBAR ========== -->
 14<A NAME="navbar_top"><!-- --></A>
 15<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 16<TR>
 17<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 18<A NAME="navbar_top_firstrow"><!-- --></A>
 19<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 20  <TR ALIGN="center" VALIGN="top">
 21  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 22  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 23  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 24  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 25  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 26  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 27  </TR>
 28</TABLE>
 29</TD>
 30<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 31</EM>
 32</TD>
 33</TR>
 34
 35<TR>
 36<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 37&nbsp;PREV CLASS&nbsp;
 38&nbsp;NEXT CLASS</FONT></TD>
 39<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 40  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
 41&nbsp;<A HREF="Enum.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
 42</TR>
 43<TR>
 44<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 45  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 46<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 47DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 48</TR>
 49</TABLE>
 50<!-- =========== END OF NAVBAR =========== -->
 51
 52<HR>
 53<!-- ======== START OF CLASS DATA ======== -->
 54<H2>
 55<FONT SIZE="-1">
 56com.plotnix.enum</FONT>
 57<BR>
 58Class  Enum</H2>
 59<PRE>
 60java.lang.Object
 61  |
 62  +--<B>com.plotnix.enum.Enum</B>
 63</PRE>
 64<DL>
 65<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
 66</DL>
 67<HR>
 68<DL>
 69<DT>public class <B>Enum</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
 70
 71<P>
 72Enum represents a value characterized by the following properties:
 73 <ul>
 74   <li>It has an integer value that uniquely identifies it among
 75       other Enums belonging to the same class.  By default,
 76       the integer value represents the order in which Enums are added
 77       to the class, starting with 0. Alternatively, an integer value
 78       can be assigned explicitly to the Enum in the constructor.
 79   </li>
 80   <li>It has a string value, which is also unique. By default, this
 81       string value is the name of a <code>public static Enum</code> field
 82       declared on this Enum's own class for this enum. If there is
 83       no such name and the string value was not explicitly specified in the
 84       constructor, then the string value is a string representation of the
 85       Enum's integer value.
 86   </li>
 87   <li>The toString() method of the Enum returns a human readable
 88       description of the Enum. The class attempts to locate a
 89       label for the constant in the resource bundle that has the same
 90       name as the class itself. If that fails and a default label
 91       was specified in the constructor, that label is returned.
 92       If no such label was specified, the string value of the constant is returned.
 93   </li>
 94 </ul>
 95
 96 Static methods of the Enum class support:
 97 <ul>
 98   <li>Loading an Enum from .property file</li>
 99   <li>Automatic generation of Enum objects from integer constants</li>
100   <li>Retrieving an array of all constants of a given type</li>
101   <li>Retrieving an individual constant of a given type by its string or integer value</li>
102 </ul>
103<P>
104<DL>
105<DT><B>Version: </B><DD>$Revision$ $Date$</DD>
106<DT><B>Author: </B><DD>Dmitri Plotnikov</DD>
107<DT><B>See Also: </B><DD><A HREF="../../../serialized-form.html#com.plotnix.enum.Enum">Serialized Form</A></DL>
108<HR>
109
110<P>
111<!-- ======== INNER CLASS SUMMARY ======== -->
112
113
114<!-- =========== FIELD SUMMARY =========== -->
115
116
117<!-- ======== CONSTRUCTOR SUMMARY ======== -->
118
119<A NAME="constructor_summary"><!-- --></A>
120<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
121<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122<TD COLSPAN=2><FONT SIZE="+2">
123<B>Constructor Summary</B></FONT></TD>
124</TR>
125<TR BGCOLOR="white" CLASS="TableRowColor">
126<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127<CODE>protected </CODE></FONT></TD>
128<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#Enum()">Enum</A></B>()</CODE>
129
130<BR>
131&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the Enum, using default integer and string values.</TD>
132</TR>
133<TR BGCOLOR="white" CLASS="TableRowColor">
134<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
135<CODE>protected </CODE></FONT></TD>
136<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#Enum(int)">Enum</A></B>(int&nbsp;integer)</CODE>
137
138<BR>
139&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the Enum with an integer value.</TD>
140</TR>
141<TR BGCOLOR="white" CLASS="TableRowColor">
142<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143<CODE>protected </CODE></FONT></TD>
144<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#Enum(int, java.lang.String)">Enum</A></B>(int&nbsp;integer,
145     java.lang.String&nbsp;label)</CODE>
146
147<BR>
148&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the Enum with an integer value and a default label.</TD>
149</TR>
150<TR BGCOLOR="white" CLASS="TableRowColor">
151<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152<CODE>protected </CODE></FONT></TD>
153<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#Enum(java.lang.String)">Enum</A></B>(java.lang.String&nbsp;string)</CODE>
154
155<BR>
156&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the Enum with a string value.</TD>
157</TR>
158<TR BGCOLOR="white" CLASS="TableRowColor">
159<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160<CODE>protected </CODE></FONT></TD>
161<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#Enum(java.lang.String, java.lang.String)">Enum</A></B>(java.lang.String&nbsp;string,
162     java.lang.String&nbsp;label)</CODE>
163
164<BR>
165&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the Enum with a string value and a default label.</TD>
166</TR>
167</TABLE>
168&nbsp;
169<!-- ========== METHOD SUMMARY =========== -->
170
171<A NAME="method_summary"><!-- --></A>
172<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
173<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
174<TD COLSPAN=2><FONT SIZE="+2">
175<B>Method Summary</B></FONT></TD>
176</TR>
177<TR BGCOLOR="white" CLASS="TableRowColor">
178<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179<CODE>static&nbsp;<A HREF="../../../com/plotnix/enum/Enum.html">Enum</A>[]</CODE></FONT></TD>
180<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#enum(java.lang.Class)">enum</A></B>(java.lang.Class&nbsp;enumClass)</CODE>
181
182<BR>
183&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of all Enums of the specified class in the order
184 they were created.</TD>
185</TR>
186<TR BGCOLOR="white" CLASS="TableRowColor">
187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188<CODE>static&nbsp;<A HREF="../../../com/plotnix/enum/Enum.html">Enum</A></CODE></FONT></TD>
189<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#enum(java.lang.Class, int)">enum</A></B>(java.lang.Class&nbsp;enumClass,
190     int&nbsp;integer)</CODE>
191
192<BR>
193&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Enum of the specified class that has the specified integer value,
194 or null if there is no such Enum.</TD>
195</TR>
196<TR BGCOLOR="white" CLASS="TableRowColor">
197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198<CODE>static&nbsp;<A HREF="../../../com/plotnix/enum/Enum.html">Enum</A></CODE></FONT></TD>
199<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#enum(java.lang.Class, java.lang.String)">enum</A></B>(java.lang.Class&nbsp;enumClass,
200     java.lang.String&nbsp;string)</CODE>
201
202<BR>
203&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Enum of the specified class that has the specified st,
204 or null if there is no such Enum.</TD>
205</TR>
206<TR BGCOLOR="white" CLASS="TableRowColor">
207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208<CODE>protected static&nbsp;void</CODE></FONT></TD>
209<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#initIntegerEnum(java.lang.Class)">initIntegerEnum</A></B>(java.lang.Class&nbsp;enumClass)</CODE>
210
211<BR>
212&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
213</TR>
214<TR BGCOLOR="white" CLASS="TableRowColor">
215<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216<CODE>&nbsp;int</CODE></FONT></TD>
217<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#intValue()">intValue</A></B>()</CODE>
218
219<BR>
220&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Enum's integer value.</TD>
221</TR>
222<TR BGCOLOR="white" CLASS="TableRowColor">
223<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224<CODE>protected static&nbsp;void</CODE></FONT></TD>
225<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#loadEnum(java.lang.Class)">loadEnum</A></B>(java.lang.Class&nbsp;enumClass)</CODE>
226
227<BR>
228&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads properties from an <i>enumClass</i>.properties resource file.</TD>
229</TR>
230<TR BGCOLOR="white" CLASS="TableRowColor">
231<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232<CODE>protected static&nbsp;void</CODE></FONT></TD>
233<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#loadIntegerEnum(java.lang.Class)">loadIntegerEnum</A></B>(java.lang.Class&nbsp;enumClass)</CODE>
234
235<BR>
236&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads properties from an <i>enumClass</i>.properties resource file.</TD>
237</TR>
238<TR BGCOLOR="white" CLASS="TableRowColor">
239<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240<CODE>protected &nbsp;java.lang.Object</CODE></FONT></TD>
241<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#readResolve()">readResolve</A></B>()</CODE>
242
243<BR>
244&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ensures uniqueness of Enums during deserialization.</TD>
245</TR>
246<TR BGCOLOR="white" CLASS="TableRowColor">
247<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
249<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#stringValue()">stringValue</A></B>()</CODE>
250
251<BR>
252&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the string value of this Enum.</TD>
253</TR>
254<TR BGCOLOR="white" CLASS="TableRowColor">
255<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
257<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#toString()">toString</A></B>()</CODE>
258
259<BR>
260&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns this Enum's human readable description in the default locale.</TD>
261</TR>
262<TR BGCOLOR="white" CLASS="TableRowColor">
263<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
265<TD><CODE><B><A HREF="../../../com/plotnix/enum/Enum.html#toString(java.util.Locale)">toString</A></B>(java.util.Locale&nbsp;locale)</CODE>
266
267<BR>
268&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns this Enum's human readable description in the specified locale.</TD>
269</TR>
270</TABLE>
271&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
272<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
273<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
274<TD><B>Methods inherited from class java.lang.Object</B></TD>
275</TR>
276<TR BGCOLOR="white" CLASS="TableRowColor">
277<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
278</TR>
279</TABLE>
280&nbsp;
281<P>
282
283<!-- ============ FIELD DETAIL =========== -->
284
285
286<!-- ========= CONSTRUCTOR DETAIL ======== -->
287
288<A NAME="constructor_detail"><!-- --></A>
289<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
290<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
291<TD COLSPAN=1><FONT SIZE="+2">
292<B>Constructor Detail</B></FONT></TD>
293</TR>
294</TABLE>
295
296<A NAME="Enum()"><!-- --></A><H3>
297Enum</H3>
298<PRE>
299protected <B>Enum</B>()</PRE>
300<DL>
301<DD>Initialize the Enum, using default integer and string values.</DL>
302<HR>
303
304<A NAME="Enum(java.lang.String)"><!-- --></A><H3>
305Enum</H3>
306<PRE>
307protected <B>Enum</B>(java.lang.String&nbsp;string)</PRE>
308<DL>
309<DD>Initialize the Enum with a string value. An integer value is assigned automatically.</DL>
310<HR>
311
312<A NAME="Enum(java.lang.String, java.lang.String)"><!-- --></A><H3>
313Enum</H3>
314<PRE>
315protected <B>Enum</B>(java.lang.String&nbsp;string,
316               java.lang.String&nbsp;label)</PRE>
317<DL>
318<DD>Initialize the Enum with a string value and a default label.
319 An integer value is assigned automatically.</DL>
320<HR>
321
322<A NAME="Enum(int)"><!-- --></A><H3>
323Enum</H3>
324<PRE>
325protected <B>Enum</B>(int&nbsp;integer)</PRE>
326<DL>
327<DD>Initialize the Enum with an integer value. A string value will be produced
328 automatically.</DL>
329<HR>
330
331<A NAME="Enum(int, java.lang.String)"><!-- --></A><H3>
332Enum</H3>
333<PRE>
334protected <B>Enum</B>(int&nbsp;integer,
335               java.lang.String&nbsp;label)</PRE>
336<DL>
337<DD>Initialize the Enum with an integer value and a default label.
338 A string value will be produced automatically.</DL>
339
340<!-- ============ METHOD DETAIL ========== -->
341
342<A NAME="method_detail"><!-- --></A>
343<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
344<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
345<TD COLSPAN=1><FONT SIZE="+2">
346<B>Method Detail</B></FONT></TD>
347</TR>
348</TABLE>
349
350<A NAME="stringValue()"><!-- --></A><H3>
351stringValue</H3>
352<PRE>
353public java.lang.String <B>stringValue</B>()</PRE>
354<DL>
355<DD>Returns the string value of this Enum.
356 Depending on how the Enum was created, the method behaves differently:
357 <ui>
358 <li>If the constant was created as a <code>public static Enum</code>,
359     the name of that field is returned.</li>
360 <li>If the constant was declared as a <code>public static int</code>,
361     and registered with <code>initIntegerEnum</code>,
362     the name of that integer field is returned.</li>
363 <li>If the constant was loaded from a .properties file, the
364     corresponding property name is returned.</li>
365 </ul><DD><DL>
366</DL>
367</DD>
368</DL>
369<HR>
370
371<A NAME="intValue()"><!-- --></A><H3>
372intValue</H3>
373<PRE>
374public int <B>intValue</B>()</PRE>
375<DL>
376<DD>Returns the Enum's integer value. An Enum can be allocated with an explicitly
377  specified integer value.  If the integer value is not specified, the Enum's constructor
378  gives it a default one, which is computed by adding one to the
379  integer value of the previous Enum of the same type.<DD><DL>
380</DL>
381</DD>
382</DL>
383<HR>
384
385<A NAME="toString()"><!-- --></A><H3>
386toString</H3>
387<PRE>
388public java.lang.String <B>toString</B>()</PRE>
389<DL>
390<DD>Returns this Enum's human readable description in the default locale.<DD><DL>
391<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
392</DD>
393</DL>
394<HR>
395
396<A NAME="toString(java.util.Locale)"><!-- --></A><H3>
397toString</H3>
398<PRE>
399public java.lang.String <B>toString</B>(java.util.Locale&nbsp;locale)</PRE>
400<DL>
401<DD>Returns this Enum's human readable description in the specified locale.
402 If the resource bundle is not found or does not have a value for this Enum,
403 the value of the default label specified during construction is returned.
404 If that value was not unspecified, the Enum's string value is returned.<DD><DL>
405</DL>
406</DD>
407</DL>
408<HR>
409
410<A NAME="enum(java.lang.Class)"><!-- --></A><H3>
411enum</H3>
412<PRE>
413public static <A HREF="../../../com/plotnix/enum/Enum.html">Enum</A>[] <B>enum</B>(java.lang.Class&nbsp;enumClass)</PRE>
414<DL>
415<DD>Returns an array of all Enums of the specified class in the order
416 they were created.<DD><DL>
417</DL>
418</DD>
419</DL>
420<HR>
421
422<A NAME="enum(java.lang.Class, java.lang.String)"><!-- --></A><H3>
423enum</H3>
424<PRE>
425public static <A HREF="../../../com/plotnix/enum/Enum.html">Enum</A> <B>enum</B>(java.lang.Class&nbsp;enumClass,
426                        java.lang.String&nbsp;string)</PRE>
427<DL>
428<DD>Returns the Enum of the specified class that has the specified st,
429 or null if there is no such Enum.<DD><DL>
430</DL>
431</DD>
432</DL>
433<HR>
434
435<A NAME="enum(java.lang.Class, int)"><!-- --></A><H3>
436enum</H3>
437<PRE>
438public static <A HREF="../../../com/plotnix/enum/Enum.html">Enum</A> <B>enum</B>(java.lang.Class&nbsp;enumClass,
439                        int&nbsp;integer)</PRE>
440<DL>
441<DD>Returns the Enum of the specified class that has the specified integer value,
442 or null if there is no such Enum.<DD><DL>
443</DL>
444</DD>
445</DL>
446<HR>
447
448<A NAME="initIntegerEnum(java.lang.Class)"><!-- --></A><H3>
449initIntegerEnum</H3>
450<PRE>
451protected static void <B>initIntegerEnum</B>(java.lang.Class&nbsp;enumClass)</PRE>
452<DL>
453<DD><DL>
454</DL>
455</DD>
456</DL>
457<HR>
458
459<A NAME="loadEnum(java.lang.Class)"><!-- --></A><H3>
460loadEnum</H3>
461<PRE>
462protected static void <B>loadEnum</B>(java.lang.Class&nbsp;enumClass)</PRE>
463<DL>
464<DD>Loads properties from an <i>enumClass</i>.properties resource file.
465 Uses property names as string values of the Enums.<DD><DL>
466</DL>
467</DD>
468</DL>
469<HR>
470
471<A NAME="loadIntegerEnum(java.lang.Class)"><!-- --></A><H3>
472loadIntegerEnum</H3>
473<PRE>
474protected static void <B>loadIntegerEnum</B>(java.lang.Class&nbsp;enumClass)</PRE>
475<DL>
476<DD>Loads properties from an <i>enumClass</i>.properties resource file.
477 Uses property names as integer values of the Enums.<DD><DL>
478</DL>
479</DD>
480</DL>
481<HR>
482
483<A NAME="readResolve()"><!-- --></A><H3>
484readResolve</H3>
485<PRE>
486protected java.lang.Object <B>readResolve</B>()
487                                throws java.io.ObjectStreamException</PRE>
488<DL>
489<DD>Ensures uniqueness of Enums during deserialization. Finds an Enum
490 that is already declared with the same integer value and returns
491 that Enum instead of the current instance.<DD><DL>
492</DL>
493</DD>
494</DL>
495<!-- ========= END OF CLASS DATA ========= -->
496<HR>
497
498<!-- ========== START OF NAVBAR ========== -->
499<A NAME="navbar_bottom"><!-- --></A>
500<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
501<TR>
502<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
503<A NAME="navbar_bottom_firstrow"><!-- --></A>
504<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
505  <TR ALIGN="center" VALIGN="top">
506  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
507  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
508  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
509  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
510  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
511  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
512  </TR>
513</TABLE>
514</TD>
515<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
516</EM>
517</TD>
518</TR>
519
520<TR>
521<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
522&nbsp;PREV CLASS&nbsp;
523&nbsp;NEXT CLASS</FONT></TD>
524<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
525  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
526&nbsp;<A HREF="Enum.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
527</TR>
528<TR>
529<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
530  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
531<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
532DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
533</TR>
534</TABLE>
535<!-- =========== END OF NAVBAR =========== -->
536
537<HR>
538Copyright (c) 2001 - PLOTNIX, Inc
539</BODY>
540</HTML>