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 ReportDefinitionReportTypeType implements java.io.Serializable { 26 27 28 32 35 public static final int CUBE_TYPE = 0; 36 37 40 public static final ReportDefinitionReportTypeType CUBE = new ReportDefinitionReportTypeType(CUBE_TYPE, "CUBE"); 41 42 45 public static final int CHARTCUBE_TYPE = 1; 46 47 50 public static final ReportDefinitionReportTypeType CHARTCUBE = new ReportDefinitionReportTypeType(CHARTCUBE_TYPE, "CHARTCUBE"); 51 52 55 public static final int ACCUM_TYPE = 2; 56 57 60 public static final ReportDefinitionReportTypeType ACCUM = new ReportDefinitionReportTypeType(ACCUM_TYPE, "ACCUM"); 61 62 65 public static final int GROUP_TYPE = 3; 66 67 70 public static final ReportDefinitionReportTypeType GROUP = new ReportDefinitionReportTypeType(GROUP_TYPE, "GROUP"); 71 72 75 public static final int STATICSQL_TYPE = 4; 76 77 80 public static final ReportDefinitionReportTypeType STATICSQL = new ReportDefinitionReportTypeType(STATICSQL_TYPE, "STATICSQL"); 81 82 85 private static java.util.Hashtable _memberTable = init(); 86 87 90 private int type = -1; 91 92 95 private java.lang.String stringValue = null; 96 97 98 102 private ReportDefinitionReportTypeType(int type, java.lang.String value) { 103 super(); 104 this.type = type; 105 this.stringValue = value; 106 } 108 109 113 117 public static java.util.Enumeration enumerate() 118 { 119 return _memberTable.elements(); 120 } 122 126 public int getType() 127 { 128 return this.type; 129 } 131 134 private static java.util.Hashtable init() 135 { 136 Hashtable members = new Hashtable (); 137 members.put("CUBE", CUBE); 138 members.put("CHARTCUBE", CHARTCUBE); 139 members.put("ACCUM", ACCUM); 140 members.put("GROUP", GROUP); 141 members.put("STATICSQL", STATICSQL); 142 return members; 143 } 145 149 public java.lang.String toString() 150 { 151 return this.stringValue; 152 } 154 160 public static com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType valueOf(java.lang.String string) 161 { 162 java.lang.Object obj = null; 163 if (string != null) obj = _memberTable.get(string); 164 if (obj == null) { 165 String err = "'" + string + "' is not a valid ReportDefinitionReportTypeType"; 166 throw new IllegalArgumentException (err); 167 } 168 return (ReportDefinitionReportTypeType) obj; 169 } 171 } 172 | Popular Tags |