KickJava   Java API By Example, From Geeks To Geeks.

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


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

25 public class ParameterValueFilterParameterType 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 ParameterValueFilterParameterType FROM = new ParameterValueFilterParameterType(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 ParameterValueFilterParameterType TO = new ParameterValueFilterParameterType(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 ParameterValueFilterParameterType VALUE = new ParameterValueFilterParameterType(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 ParameterValueFilterParameterType VALUES = new ParameterValueFilterParameterType(VALUES_TYPE, "VALUES");
71
72     /**
73      * The OPERATION type
74      */

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

80     public static final ParameterValueFilterParameterType OPERATION = new ParameterValueFilterParameterType(OPERATION_TYPE, "OPERATION");
81
82     /**
83      * The OBLIGATORYVALUE type
84      */

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

90     public static final ParameterValueFilterParameterType OBLIGATORYVALUE = new ParameterValueFilterParameterType(OBLIGATORYVALUE_TYPE, "OBLIGATORYVALUE");
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 ParameterValueFilterParameterType(int type, java.lang.String JavaDoc value) {
113         super();
114         this.type = type;
115         this.stringValue = value;
116     } //-- com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType(int, java.lang.String)
117

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

123     /**
124      * Method enumerateReturns an enumeration of all possible
125      * instances of ParameterValueFilterParameterType
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      * ParameterValueFilterParameterType
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("FROM", FROM);
148         members.put("TO", TO);
149         members.put("VALUE", VALUE);
150         members.put("VALUES", VALUES);
151         members.put("OPERATION", OPERATION);
152         members.put("OBLIGATORYVALUE", OBLIGATORYVALUE);
153         return members;
154     } //-- java.util.Hashtable init()
155

156     /**
157      * Method toStringReturns the String representation of this
158      * ParameterValueFilterParameterType
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
167      * ParameterValueFilterParameterType based on the given String
168      * value.
169      *
170      * @param string
171      */

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

183 }
184
Popular Tags