KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > olap > navi > CalcMember


1 /*
2  * ====================================================================
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) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.jpivot.olap.navi;
14
15 import com.tonbeller.jpivot.core.Extension;
16 import com.tonbeller.jpivot.olap.model.Expression;
17 import com.tonbeller.jpivot.olap.model.Hierarchy;
18 import com.tonbeller.jpivot.olap.model.Member;
19 import com.tonbeller.jpivot.olap.model.PropertyExpr;
20
21 /**
22  * erzeugt ein berechnetes Element
23  *
24  * @author av
25  */

26 public interface CalcMember extends Extension {
27   public static final String JavaDoc ID = "calcMember";
28
29   /**
30    * creates a new Measure
31    * @param name name of the new measure
32    * @param expr calculation of new measure
33    * @param format null or format_string property
34    * @return
35    * @throws InvalidExpressionException
36    */

37   Member createMeasure(String JavaDoc name, Expression expr, Expression format, PropertyExpr[] propex)
38     throws InvalidExpressionException;
39
40   Member createMember(String JavaDoc name, Expression expr, Hierarchy hier, Member parent)
41     throws InvalidExpressionException;
42
43 }
44
Popular Tags