KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > olap > mdxparse > Parameter


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
14 package com.tonbeller.jpivot.olap.mdxparse;
15
16 public class Parameter {
17
18   public static final int TYPE_NUMERIC = 1;
19   public static final int TYPE_STRING = 2;
20   public static final int TYPE_MEMBER = 3;
21
22   private String JavaDoc name;
23   private String JavaDoc description;
24   private int type;
25   private int iAxis; // negative, if not on axis
26
private Object JavaDoc oValue;
27   
28   public Parameter( String JavaDoc name, int type, int iAxis ) {
29     this.name = name;
30     this.type = type;
31     this.iAxis = iAxis;
32   }
33
34   /**
35    * @return the value object
36    */

37   public Object JavaDoc getOValue() {
38     return oValue;
39   }
40
41   /**
42    * set the value object
43    * @param object value
44    */

45   public void setOValue(Object JavaDoc object) {
46     oValue = object;
47   }
48
49   /**
50    * @return parameter type
51    */

52   public int getType() {
53     return type;
54   }
55
56   /**
57    * @return parameter's name
58    */

59   public String JavaDoc getName() {
60     return name;
61   }
62
63   /**
64    * @return description
65    */

66   public String JavaDoc getDescription() {
67     return description;
68   }
69
70   /**
71    * @param description
72    */

73   public void setDescription(String JavaDoc description) {
74     this.description = description;
75   }
76
77   /**
78    * @return index of axis, negative if not on any axis
79    */

80   public int getIAxis() {
81     return iAxis;
82   }
83
84  } // Parameter
85
Popular Tags