1 7 8 package com.calipso.reportgenerator.reportdefinitions.types; 9 10 14 import java.io.Serializable ; 15 import java.util.Enumeration ; 16 import java.util.Hashtable ; 17 import org.exolab.castor.xml.Marshaller; 18 import org.exolab.castor.xml.Unmarshaller; 19 20 25 public class LightBoxDefinitionTypeType implements java.io.Serializable { 26 27 28 32 35 public static final int RANGE_TYPE = 0; 36 37 40 public static final LightBoxDefinitionTypeType RANGE = new LightBoxDefinitionTypeType(RANGE_TYPE, "RANGE"); 41 42 45 public static final int GREATERTHAN_TYPE = 1; 46 47 50 public static final LightBoxDefinitionTypeType GREATERTHAN = new LightBoxDefinitionTypeType(GREATERTHAN_TYPE, "GREATERTHAN"); 51 52 55 public static final int GREATEREQUALTHAN_TYPE = 2; 56 57 60 public static final LightBoxDefinitionTypeType GREATEREQUALTHAN = new LightBoxDefinitionTypeType(GREATEREQUALTHAN_TYPE, "GREATEREQUALTHAN"); 61 62 65 public static final int LESSTHAN_TYPE = 3; 66 67 70 public static final LightBoxDefinitionTypeType LESSTHAN = new LightBoxDefinitionTypeType(LESSTHAN_TYPE, "LESSTHAN"); 71 72 75 public static final int LESSEQUALTHAN_TYPE = 4; 76 77 80 public static final LightBoxDefinitionTypeType LESSEQUALTHAN = new LightBoxDefinitionTypeType(LESSEQUALTHAN_TYPE, "LESSEQUALTHAN"); 81 82 85 public static final int EQUAL_TYPE = 5; 86 87 90 public static final LightBoxDefinitionTypeType EQUAL = new LightBoxDefinitionTypeType(EQUAL_TYPE, "EQUAL"); 91 92 95 private static java.util.Hashtable _memberTable = init(); 96 97 100 private int type = -1; 101 102 105 private java.lang.String stringValue = null; 106 107 108 112 private LightBoxDefinitionTypeType(int type, java.lang.String value) { 113 super(); 114 this.type = type; 115 this.stringValue = value; 116 } 118 119 123 127 public static java.util.Enumeration enumerate() 128 { 129 return _memberTable.elements(); 130 } 132 136 public int getType() 137 { 138 return this.type; 139 } 141 144 private static java.util.Hashtable init() 145 { 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 } 156 160 public java.lang.String toString() 161 { 162 return this.stringValue; 163 } 165 171 public static com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType valueOf(java.lang.String string) 172 { 173 java.lang.Object obj = null; 174 if (string != null) obj = _memberTable.get(string); 175 if (obj == null) { 176 String err = "'" + string + "' is not a valid LightBoxDefinitionTypeType"; 177 throw new IllegalArgumentException (err); 178 } 179 return (LightBoxDefinitionTypeType) obj; 180 } 182 } 183 | Popular Tags |