KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > olap > query > ExpBean


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.query;
14
15
16 /*
17  * serialization for Exp - used by memento
18  */

19 public class ExpBean {
20   public static final int TYPE_MEMBER = 0;
21   public static final int TYPE_FUNCALL = 1;
22   public static final int TYPE_LEVEL = 2;
23   public static final int TYPE_DIM = 3;
24   public static final int TYPE_HIER = 4;
25   public static final int TYPE_STRING_LITERAL = 5;
26   public static final int TYPE_INTEGER_LITERAL = 6;
27   public static final int TYPE_DOUBLE_LITERAL = 7;
28   public static final int TYPE_TOPLEVEL_MEMBERS = 8;
29   
30   private int type;
31   private String JavaDoc name;
32   private ExpBean[] args;
33   private Object JavaDoc literalValue = null;
34
35   /**
36    * @return args
37    */

38   public ExpBean[] getArgs() {
39     return args;
40   }
41
42   /**
43    * @return name
44    */

45   public String JavaDoc getName() {
46     return name;
47   }
48
49   /**
50    * @param args
51    */

52   public void setArgs(ExpBean[] args) {
53     this.args = args;
54   }
55
56   /**
57    * @param name
58    */

59   public void setName(String JavaDoc name) {
60     this.name = name;
61   }
62
63   /**
64    * @return type
65    */

66   public int getType() {
67     return type;
68   }
69
70   /**
71    * @param type
72    */

73   public void setType(int type) {
74     this.type = type;
75   }
76
77   /**
78    * @return
79    */

80   public Object JavaDoc getLiteralValue() {
81     return literalValue;
82   }
83
84   /**
85    * @param object
86    */

87   public void setLiteralValue(Object JavaDoc object) {
88     literalValue = object;
89   }
90
91 } //ExpBean
92
Popular Tags