KickJava   Java API By Example, From Geeks To Geeks.

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


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 LightBoxDefinitionParameterType.
22  *
23  * @version $Revision$ $Date$
24  */

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

32     /**
33      * The FROM type
34      */

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

40     public static final LightBoxDefinitionParameterType FROM = new LightBoxDefinitionParameterType(FROM_TYPE, "FROM");
41
42     /**
43      * The TO type
44      */

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

50     public static final LightBoxDefinitionParameterType TO = new LightBoxDefinitionParameterType(TO_TYPE, "TO");
51
52     /**
53      * The VALUE type
54      */

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

60     public static final LightBoxDefinitionParameterType VALUE = new LightBoxDefinitionParameterType(VALUE_TYPE, "VALUE");
61
62     /**
63      * The VALUES type
64      */

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

70     public static final LightBoxDefinitionParameterType VALUES = new LightBoxDefinitionParameterType(VALUES_TYPE, "VALUES");
71
72     /**
73      * Field _memberTable
74      */

75     private static java.util.Hashtable JavaDoc _memberTable = init();
76
77     /**
78      * Field type
79      */

80     private int type = -1;
81
82     /**
83      * Field stringValue
84      */

85     private java.lang.String JavaDoc stringValue = null;
86
87
88       //----------------/
89
//- Constructors -/
90
//----------------/
91

92     private LightBoxDefinitionParameterType(int type, java.lang.String JavaDoc value) {
93         super();
94         this.type = type;
95         this.stringValue = value;
96     } //-- com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType(int, java.lang.String)
97

98
99       //-----------/
100
//- Methods -/
101
//-----------/
102

103     /**
104      * Method enumerateReturns an enumeration of all possible
105      * instances of LightBoxDefinitionParameterType
106      */

107     public static java.util.Enumeration JavaDoc enumerate()
108     {
109         return _memberTable.elements();
110     } //-- java.util.Enumeration enumerate()
111

112     /**
113      * Method getTypeReturns the type of this
114      * LightBoxDefinitionParameterType
115      */

116     public int getType()
117     {
118         return this.type;
119     } //-- int getType()
120

121     /**
122      * Method init
123      */

124     private static java.util.Hashtable JavaDoc init()
125     {
126         Hashtable JavaDoc members = new Hashtable JavaDoc();
127         members.put("FROM", FROM);
128         members.put("TO", TO);
129         members.put("VALUE", VALUE);
130         members.put("VALUES", VALUES);
131         return members;
132     } //-- java.util.Hashtable init()
133

134     /**
135      * Method toStringReturns the String representation of this
136      * LightBoxDefinitionParameterType
137      */

138     public java.lang.String JavaDoc toString()
139     {
140         return this.stringValue;
141     } //-- java.lang.String toString()
142

143     /**
144      * Method valueOfReturns a new LightBoxDefinitionParameterType
145      * based on the given String value.
146      *
147      * @param string
148      */

149     public static com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType valueOf(java.lang.String JavaDoc string)
150     {
151         java.lang.Object JavaDoc obj = null;
152         if (string != null) obj = _memberTable.get(string);
153         if (obj == null) {
154             String JavaDoc err = "'" + string + "' is not a valid LightBoxDefinitionParameterType";
155             throw new IllegalArgumentException JavaDoc(err);
156         }
157         return (LightBoxDefinitionParameterType) obj;
158     } //-- com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType valueOf(java.lang.String)
159

160 }
161
Popular Tags