KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > olap > NamedSet


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/olap/NamedSet.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-2006 Julian Hyde and others
8 // All Rights Reserved.
9 // You must accept the terms of that agreement to use this software.
10 */

11
12 package mondrian.olap;
13
14 import mondrian.olap.type.Type;
15
16 /**
17  * A named set of members or tuples.
18  *
19  * <p>A set can be defined in a query, using a <code>WITH SET</code> clause,
20  * or in a schema. Named sets in a schema can be defined against a particular
21  * cube or virtual cube, or shared between all cubes.</p>
22  *
23  * @author jhyde
24  * @since 6 August, 2001
25  * @version $Id: //open/mondrian/src/main/mondrian/olap/NamedSet.java#5 $
26  */

27 public interface NamedSet extends OlapElement {
28     /**
29      * Sets the name of this named set.
30      */

31     void setName(String JavaDoc newName);
32
33     /**
34      * Returns the type of this named set.
35      */

36     Type getType();
37
38     /**
39      * Returns the expression used to derive this named set.
40      */

41     Exp getExp();
42
43     NamedSet validate(Validator validator);
44 }
45
46 // End NamedSet.java
47
Popular Tags