KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > olap > fun > ResolverBase


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/olap/fun/ResolverBase.java#11 $
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) 2002-2002 Kana Software, Inc.
7 // Copyright (C) 2002-2006 Julian Hyde and others
8 // All Rights Reserved.
9 // You must accept the terms of that agreement to use this software.
10 //
11 // jhyde, 3 March, 2002
12 */

13 package mondrian.olap.fun;
14
15 import mondrian.olap.Syntax;
16 import mondrian.olap.FunDef;
17
18 /**
19  * <code>ResolverBase</code> provides a skeleton implementation of
20  * <code>interface {@link Resolver}</code>
21  *
22  * @author jhyde
23  * @since 3 March, 2002
24  * @version $Id: //open/mondrian/src/main/mondrian/olap/fun/ResolverBase.java#11 $
25  */

26 abstract class ResolverBase extends FunUtil implements Resolver {
27     private final String JavaDoc name;
28     private final String JavaDoc signature;
29     private final String JavaDoc description;
30     private final Syntax syntax;
31
32     ResolverBase(String JavaDoc name,
33                  String JavaDoc signature,
34                  String JavaDoc description,
35                  Syntax syntax) {
36         this.name = name;
37         this.signature = signature;
38         this.description = description;
39         this.syntax = syntax;
40     }
41
42     public String JavaDoc getName() {
43         return name;
44     }
45
46     public String JavaDoc getSignature() {
47         return signature;
48     }
49
50     public FunDef getFunDef() {
51         return null;
52     }
53
54     public String JavaDoc getDescription() {
55         return description;
56     }
57
58     public Syntax getSyntax() {
59         return syntax;
60     }
61
62     public boolean requiresExpression(int k) {
63         return false;
64     }
65
66     public String JavaDoc[] getReservedWords() {
67         return emptyStringArray;
68     }
69 }
70
71 // End ResolverBase.java
72
Popular Tags