com.tonbeller.jpivot.test.olap
Class TestExpressionParser
java.lang.Object
com.tonbeller.jpivot.core.ExtensionSupport
com.tonbeller.jpivot.test.olap.TestExtensionSupport
com.tonbeller.jpivot.test.olap.TestExpressionParser
- All Implemented Interfaces:
- Extension, ExpressionParser
public class TestExpressionParser
- extends TestExtensionSupport
- implements ExpressionParser
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestExpressionParser
public TestExpressionParser()
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