001: /*
002: * This class was automatically generated with
003: * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
004: * Schema.
005: * $Id$
006: */
007:
008: package com.calipso.reportgenerator.reportdefinitions.types;
009:
010: //---------------------------------/
011: //- Imported classes and packages -/
012: //---------------------------------/
013:
014: import java.io.Serializable;
015: import java.util.Enumeration;
016: import java.util.Hashtable;
017: import org.exolab.castor.xml.Marshaller;
018: import org.exolab.castor.xml.Unmarshaller;
019:
020: /**
021: * Class LightBoxDefinitionTypeType.
022: *
023: * @version $Revision$ $Date$
024: */
025: public class LightBoxDefinitionTypeType implements java.io.Serializable {
026:
027: //--------------------------/
028: //- Class/Member Variables -/
029: //--------------------------/
030:
031: /**
032: * The RANGE type
033: */
034: public static final int RANGE_TYPE = 0;
035:
036: /**
037: * The instance of the RANGE type
038: */
039: public static final LightBoxDefinitionTypeType RANGE = new LightBoxDefinitionTypeType(
040: RANGE_TYPE, "RANGE");
041:
042: /**
043: * The GREATERTHAN type
044: */
045: public static final int GREATERTHAN_TYPE = 1;
046:
047: /**
048: * The instance of the GREATERTHAN type
049: */
050: public static final LightBoxDefinitionTypeType GREATERTHAN = new LightBoxDefinitionTypeType(
051: GREATERTHAN_TYPE, "GREATERTHAN");
052:
053: /**
054: * The GREATEREQUALTHAN type
055: */
056: public static final int GREATEREQUALTHAN_TYPE = 2;
057:
058: /**
059: * The instance of the GREATEREQUALTHAN type
060: */
061: public static final LightBoxDefinitionTypeType GREATEREQUALTHAN = new LightBoxDefinitionTypeType(
062: GREATEREQUALTHAN_TYPE, "GREATEREQUALTHAN");
063:
064: /**
065: * The LESSTHAN type
066: */
067: public static final int LESSTHAN_TYPE = 3;
068:
069: /**
070: * The instance of the LESSTHAN type
071: */
072: public static final LightBoxDefinitionTypeType LESSTHAN = new LightBoxDefinitionTypeType(
073: LESSTHAN_TYPE, "LESSTHAN");
074:
075: /**
076: * The LESSEQUALTHAN type
077: */
078: public static final int LESSEQUALTHAN_TYPE = 4;
079:
080: /**
081: * The instance of the LESSEQUALTHAN type
082: */
083: public static final LightBoxDefinitionTypeType LESSEQUALTHAN = new LightBoxDefinitionTypeType(
084: LESSEQUALTHAN_TYPE, "LESSEQUALTHAN");
085:
086: /**
087: * The EQUAL type
088: */
089: public static final int EQUAL_TYPE = 5;
090:
091: /**
092: * The instance of the EQUAL type
093: */
094: public static final LightBoxDefinitionTypeType EQUAL = new LightBoxDefinitionTypeType(
095: EQUAL_TYPE, "EQUAL");
096:
097: /**
098: * Field _memberTable
099: */
100: private static java.util.Hashtable _memberTable = init();
101:
102: /**
103: * Field type
104: */
105: private int type = -1;
106:
107: /**
108: * Field stringValue
109: */
110: private java.lang.String stringValue = null;
111:
112: //----------------/
113: //- Constructors -/
114: //----------------/
115:
116: private LightBoxDefinitionTypeType(int type, java.lang.String value) {
117: super ();
118: this .type = type;
119: this .stringValue = value;
120: } //-- com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType(int, java.lang.String)
121:
122: //-----------/
123: //- Methods -/
124: //-----------/
125:
126: /**
127: * Method enumerateReturns an enumeration of all possible
128: * instances of LightBoxDefinitionTypeType
129: */
130: public static java.util.Enumeration enumerate() {
131: return _memberTable.elements();
132: } //-- java.util.Enumeration enumerate()
133:
134: /**
135: * Method getTypeReturns the type of this
136: * LightBoxDefinitionTypeType
137: */
138: public int getType() {
139: return this .type;
140: } //-- int getType()
141:
142: /**
143: * Method init
144: */
145: private static java.util.Hashtable init() {
146: Hashtable members = new Hashtable();
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 toString() {
161: return this .stringValue;
162: } //-- java.lang.String toString()
163:
164: /**
165: * Method valueOfReturns a new LightBoxDefinitionTypeType based
166: * on the given String value.
167: *
168: * @param string
169: */
170: public static com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType valueOf(
171: java.lang.String string) {
172: java.lang.Object obj = null;
173: if (string != null)
174: obj = _memberTable.get(string);
175: if (obj == null) {
176: String err = "'" + string
177: + "' is not a valid LightBoxDefinitionTypeType";
178: throw new IllegalArgumentException(err);
179: }
180: return (LightBoxDefinitionTypeType) obj;
181: } //-- com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType valueOf(java.lang.String)
182:
183: }
|