1 10 package mondrian.olap; 11 12 import mondrian.olap.fun.ParameterFunDef; 13 import mondrian.olap.type.Type; 14 import mondrian.mdx.ParameterExpr; 15 16 26 public interface Validator { 27 30 Query getQuery(); 31 32 39 Exp validate(Exp exp, boolean scalar); 40 41 46 void validate(ParameterExpr parameterExpr); 47 48 53 void validate(MemberProperty memberProperty); 54 55 60 void validate(QueryAxis axis); 61 62 67 void validate(Formula formula); 68 69 72 boolean requiresExpression(); 73 74 83 boolean canConvert(Exp fromExp, int to, int[] conversionCount); 84 85 88 FunTable getFunTable(); 89 90 94 Parameter createOrLookupParam( 95 boolean definition, 96 String name, 97 Type type, 98 Exp defaultExp, 99 String description); 100 } 101 102 | Popular Tags |