KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > olap > NameResolver


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/olap/NameResolver.java#5 $
3 // This software is subject to the terms of the Common Public License
4 // Agreement, available at the following URL:
5 // http://www.opensource.org/licenses/cpl.html.
6 // Copyright (C) 2000-2002 Kana Software, Inc.
7 // Copyright (C) 2001-2005 Julian Hyde and others
8 // All Rights Reserved.
9 // You must accept the terms of that agreement to use this software.
10 //
11 // jhyde, 22 March, 2000
12 */

13
14 package mondrian.olap;
15
16 /**
17  * Interface for a class which can lookup dimensions, hierarchies, levels,
18  * members. {@link Cube} is the most typical implementor, but {@link Query}
19  * also implements this interface, looking at members defined in its WITH
20  * clause before looking to its cube.
21  */

22 public interface NameResolver {
23
24     Cube getCube();
25
26     /**
27      * Looks up the child of <code>parent</code> called <code>s</code>; returns
28      * null if no element is found.
29      */

30     OlapElement lookupChild(OlapElement parent, String JavaDoc s);
31
32 }
33
34 // End NameResolver.java
35
Popular Tags