1 13 package com.tonbeller.jpivot.olap.navi; 14 15 import com.tonbeller.jpivot.core.Extension; 16 import com.tonbeller.jpivot.olap.model.Dimension; 17 import com.tonbeller.jpivot.olap.model.Expression; 18 import com.tonbeller.jpivot.olap.model.Hierarchy; 19 import com.tonbeller.jpivot.olap.model.Level; 20 import com.tonbeller.jpivot.olap.model.Member; 21 22 27 28 public interface ExpressionParser extends Extension { 29 public static final String ID = "expressionParser"; 30 31 class InvalidSyntaxException extends Exception { 32 public InvalidSyntaxException() { 33 } 34 35 public InvalidSyntaxException(String message) { 36 super(message); 37 } 38 39 public InvalidSyntaxException(String message, Throwable cause) { 40 super(message, cause); 41 } 42 43 public InvalidSyntaxException(Throwable cause) { 44 super(cause); 45 } 46 } 47 48 String unparse(Expression expr); 49 50 Expression parse(String expr) throws InvalidSyntaxException; 51 52 56 Member lookupMember(String uniqueName) throws InvalidSyntaxException; 57 58 63 Level lookupLevel(String uniqueName) throws InvalidSyntaxException; 64 65 70 Hierarchy lookupHierarchy(String uniqueName) throws InvalidSyntaxException; 71 72 77 Dimension lookupDimension(String uniqueName) throws InvalidSyntaxException; 78 } | Popular Tags |