com.tonbeller.jpivot.test.olap
Class TestExpressionParser

java.lang.Object
  extended by com.tonbeller.jpivot.core.ExtensionSupport
      extended by com.tonbeller.jpivot.test.olap.TestExtensionSupport
          extended by com.tonbeller.jpivot.test.olap.TestExpressionParser
All Implemented Interfaces:
Extension, ExpressionParser

public class TestExpressionParser
extends TestExtensionSupport
implements ExpressionParser


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.tonbeller.jpivot.olap.navi.ExpressionParser
ExpressionParser.InvalidSyntaxException
 
Field Summary
 
Fields inherited from interface com.tonbeller.jpivot.olap.navi.ExpressionParser
ID
 
Constructor Summary
TestExpressionParser()
           
 
Method Summary
 Dimension lookupDimension(java.lang.String uniqueName)
          typespecific lookup because Mondrians unique names are not unique.
 Hierarchy lookupHierarchy(java.lang.String uniqueName)
          typespecific lookup because Mondrians unique names are not unique.
 Level lookupLevel(java.lang.String uniqueName)
          typespecific lookup because Mondrians unique names are not unique.
 Member lookupMember(java.lang.String uniqueName)
          typespecific lookup because Mondrians unique names are not unique.
 Expression parse(java.lang.String name)
           
 java.lang.String unparse(Expression expr)
           
 
Methods inherited from class com.tonbeller.jpivot.test.olap.TestExtensionSupport
fireModelChanged, model
 
Methods inherited from class com.tonbeller.jpivot.core.ExtensionSupport
decorate, getId, getModel, modelInitialized, setId, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tonbeller.jpivot.core.Extension
decorate, getId, modelInitialized, setModel
 

Constructor Detail

TestExpressionParser

public TestExpressionParser()
Method Detail

parse

public Expression parse(java.lang.String name)
                 throws ExpressionParser.InvalidSyntaxException
Specified by:
parse in interface ExpressionParser
Throws:
ExpressionParser.InvalidSyntaxException

unparse

public java.lang.String unparse(Expression expr)
Specified by:
unparse in interface ExpressionParser

lookupMember

public Member lookupMember(java.lang.String uniqueName)
                    throws ExpressionParser.InvalidSyntaxException
Description copied from interface: ExpressionParser
typespecific lookup because Mondrians unique names are not unique. [Measures] is the unique name for both, Hierarchy and Dimension

Specified by:
lookupMember in interface ExpressionParser
Throws:
ExpressionParser.InvalidSyntaxException

lookupLevel

public Level lookupLevel(java.lang.String uniqueName)
                  throws ExpressionParser.InvalidSyntaxException
Description copied from interface: ExpressionParser
typespecific lookup because Mondrians unique names are not unique. [Measures] is the unique name for both, Hierarchy and Dimension. much faster than lookupMember or parse(uname) because it does not have to look into the DB.

Specified by:
lookupLevel in interface ExpressionParser
Throws:
ExpressionParser.InvalidSyntaxException

lookupHierarchy

public Hierarchy lookupHierarchy(java.lang.String uniqueName)
                          throws ExpressionParser.InvalidSyntaxException
Description copied from interface: ExpressionParser
typespecific lookup because Mondrians unique names are not unique. [Measures] is the unique name for both, Hierarchy and Dimension much faster than lookupMember or parse(uname) because it does not have to look into the DB.

Specified by:
lookupHierarchy in interface ExpressionParser
Throws:
ExpressionParser.InvalidSyntaxException

lookupDimension

public Dimension lookupDimension(java.lang.String uniqueName)
                          throws ExpressionParser.InvalidSyntaxException
Description copied from interface: ExpressionParser
typespecific lookup because Mondrians unique names are not unique. [Measures] is the unique name for both, Hierarchy and Dimension much faster than lookupMember or parse(uname) because it does not have to look into the DB.

Specified by:
lookupDimension in interface ExpressionParser
Throws:
ExpressionParser.InvalidSyntaxException