KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > olap > model > impl > ParameterExprImpl


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.model.impl;
14
15 import com.tonbeller.jpivot.olap.model.Expression;
16 import com.tonbeller.jpivot.olap.model.ParameterExpr;
17 import com.tonbeller.jpivot.olap.model.Visitor;
18
19 public class ParameterExprImpl implements ParameterExpr {
20
21   private String JavaDoc name;
22   private String JavaDoc label;
23   private int type;
24   private Expression value;
25
26   public ParameterExprImpl() {
27   }
28
29   public ParameterExprImpl(String JavaDoc name, String JavaDoc label, int type, Expression value) {
30     this.name = name;
31     this.label = label;
32     this.type = type;
33     this.value = value;
34   }
35
36   public void accept(Visitor visitor) {
37     visitor.visitParameterExpr(this);
38   }
39
40   public String JavaDoc getLabel() {
41     return label;
42   }
43
44   public Expression getValue() {
45     return value;
46   }
47
48   public void setLabel(String JavaDoc string) {
49     label = string;
50   }
51
52   public void setValue(Expression expression) {
53     value = expression;
54   }
55
56   public String JavaDoc getName() {
57     return name;
58   }
59
60   public int getType() {
61     return type;
62   }
63
64   public void setName(String JavaDoc string) {
65     name = string;
66   }
67
68   public void setType(int i) {
69     type = i;
70   }
71
72 }
73
Popular Tags