KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > reportdefinitions > types > LightBoxDefinitionTypeType


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
4  * Schema.
5  * $Id$
6  */

7
8 package com.calipso.reportgenerator.reportdefinitions.types;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import java.io.Serializable JavaDoc;
15 import java.util.Enumeration JavaDoc;
16 import java.util.Hashtable JavaDoc;
17 import org.exolab.castor.xml.Marshaller;
18 import org.exolab.castor.xml.Unmarshaller;
19
20 /**
21  * Class LightBoxDefinitionTypeType.
22  *
23  * @version $Revision$ $Date$
24  */

25 public class LightBoxDefinitionTypeType implements java.io.Serializable JavaDoc {
26
27
28       //--------------------------/
29
//- Class/Member Variables -/
30
//--------------------------/
31

32     /**
33      * The RANGE type
34      */

35     public static final int RANGE_TYPE = 0;
36
37     /**
38      * The instance of the RANGE type
39      */

40     public static final LightBoxDefinitionTypeType RANGE = new LightBoxDefinitionTypeType(RANGE_TYPE, "RANGE");
41
42     /**
43      * The GREATERTHAN type
44      */

45     public static final int GREATERTHAN_TYPE = 1;
46
47     /**
48      * The instance of the GREATERTHAN type
49      */

50     public static final LightBoxDefinitionTypeType GREATERTHAN = new LightBoxDefinitionTypeType(GREATERTHAN_TYPE, "GREATERTHAN");
51
52     /**
53      * The GREATEREQUALTHAN type
54      */

55     public static final int GREATEREQUALTHAN_TYPE = 2;
56
57     /**
58      * The instance of the GREATEREQUALTHAN type
59      */

60     public static final LightBoxDefinitionTypeType GREATEREQUALTHAN = new LightBoxDefinitionTypeType(GREATEREQUALTHAN_TYPE, "GREATEREQUALTHAN");
61
62     /**
63      * The LESSTHAN type
64      */

65     public static final int LESSTHAN_TYPE = 3;
66
67     /**
68      * The instance of the LESSTHAN type
69      */

70     public static final LightBoxDefinitionTypeType LESSTHAN = new LightBoxDefinitionTypeType(LESSTHAN_TYPE, "LESSTHAN");
71
72     /**
73      * The LESSEQUALTHAN type
74      */

75     public static final int LESSEQUALTHAN_TYPE = 4;
76
77     /**
78      * The instance of the LESSEQUALTHAN type
79      */

80     public static final LightBoxDefinitionTypeType LESSEQUALTHAN = new LightBoxDefinitionTypeType(LESSEQUALTHAN_TYPE, "LESSEQUALTHAN");
81
82     /**
83      * The EQUAL type
84      */

85     public static final int EQUAL_TYPE = 5;
86
87     /**
88      * The instance of the EQUAL type
89      */

90     public static final LightBoxDefinitionTypeType EQUAL = new LightBoxDefinitionTypeType(EQUAL_TYPE, "EQUAL");
91
92     /**
93      * Field _memberTable
94      */

95     private static java.util.Hashtable JavaDoc _memberTable = init();
96
97     /**
98      * Field type
99      */

100     private int type = -1;
101
102     /**
103      * Field stringValue
104      */

105     private java.lang.String JavaDoc stringValue = null;
106
107
108       //----------------/
109
//- Constructors -/
110
//----------------/
111

112     private LightBoxDefinitionTypeType(int type, java.lang.String JavaDoc value) {
113         super();
114         this.type = type;
115         this.stringValue = value;
116     } //-- com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType(int, java.lang.String)
117

118
119       //-----------/
120
//- Methods -/
121
//-----------/
122

123     /**
124      * Method enumerateReturns an enumeration of all possible
125      * instances of LightBoxDefinitionTypeType
126      */

127     public static java.util.Enumeration JavaDoc enumerate()
128     {
129         return _memberTable.elements();
130     } //-- java.util.Enumeration enumerate()
131

132     /**
133      * Method getTypeReturns the type of this
134      * LightBoxDefinitionTypeType
135      */

136     public int getType()
137     {
138         return this.type;
139     } //-- int getType()
140

141     /**
142      * Method init
143      */

144     private static java.util.Hashtable JavaDoc init()
145     {
146         Hashtable JavaDoc members = new Hashtable JavaDoc();
147         members.put("RANGE", RANGE);
148         members.put("GREATERTHAN", GREATERTHAN);
149         members.put("GREATEREQUALTHAN", GREATEREQUALTHAN);
150         members.put("LESSTHAN", LESSTHAN);
151         members.put("LESSEQUALTHAN", LESSEQUALTHAN);
152         members.put("EQUAL", EQUAL);
153         return members;
154     } //-- java.util.Hashtable init()
155

156     /**
157      * Method toStringReturns the String representation of this
158      * LightBoxDefinitionTypeType
159      */

160     public java.lang.String JavaDoc toString()
161     {
162         return this.stringValue;
163     } //-- java.lang.String toString()
164

165     /**
166      * Method valueOfReturns a new LightBoxDefinitionTypeType based
167      * on the given String value.
168      *
169      * @param string
170      */

171     public static com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType valueOf(java.lang.String JavaDoc string)
172     {
173         java.lang.Object JavaDoc obj = null;
174         if (string != null) obj = _memberTable.get(string);
175         if (obj == null) {
176             String JavaDoc err = "'" + string + "' is not a valid LightBoxDefinitionTypeType";
177             throw new IllegalArgumentException JavaDoc(err);
178         }
179         return (LightBoxDefinitionTypeType) obj;
180     } //-- com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType valueOf(java.lang.String)
181

182 }
183
Popular Tags