1 12 package mondrian.olap; 13 14 28 public class Category extends EnumeratedValues { 29 30 public static final Category instance = new Category(); 31 32 private Category() { 33 super( 34 new String [] { 35 "unknown", "array", "dimension", "hierarchy", "level", 36 "logical", "member", "numeric", "set", 37 "string", "tuple", "symbol", "cube", "value", "integer", "null", 38 }, 39 new int[] { 40 Unknown, Array, Dimension, Hierarchy, Level, 41 Logical, Member, Numeric, Set, 42 String, Tuple, Symbol, Cube, Value, Integer, Null, 43 }, 44 new String [] { 45 "Unknown", "Array", "Dimension", "Hierarchy", "Level", 46 "Logical Expression", "Member", "Numeric Expression", "Set", 47 "String", "Tuple", "Symbol", "Cube", "Value", "Integer", "Null", 48 } 49 ); 50 } 51 52 53 public static Category instance() { 54 return instance; 55 } 56 57 58 public static final int Unknown = 0; 59 60 public static final int Array = 1; 61 63 public static final int Dimension = 2; 64 66 public static final int Hierarchy = 3; 67 69 public static final int Level = 4; 70 71 public static final int Logical = 5; 72 74 public static final int Member = 6; 75 76 public static final int Numeric = 7; 77 78 public static final int Set = 8; 79 80 public static final int String = 9; 81 82 public static final int Tuple = 10; 83 85 public static final int Symbol = 11; 86 88 public static final int Cube = 12; 89 90 public static final int Value = 13; 91 93 public static final int Integer = 15; 94 97 public static final int Null = 16; 98 102 public static final int Expression = 0; 103 105 public static final int Constant = 64; 106 107 public static final int Mask = 31; 108 } 109 110 | Popular Tags |