|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.ParameterImpl
public class ParameterImpl
Implementation of Parameter.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface mondrian.olap.Parameter |
|---|
Parameter.Scope |
| Constructor Summary | |
|---|---|
ParameterImpl(java.lang.String name,
Exp defaultExp,
java.lang.String description,
Type type)
|
|
| Method Summary | |
|---|---|
Calc |
compile(ExpCompiler compiler)
|
boolean |
equals(java.lang.Object other)
Returns whether this parameter is equal to another, based upon name, type and value |
java.lang.Object[] |
getChildren()
|
Exp |
getDefaultExp()
Returns the expression which provides the default value for this Parameter. |
java.lang.String |
getDescription()
Returns the description of this Parameter. |
java.lang.String |
getName()
Returns the name of this Parameter. |
Parameter.Scope |
getScope()
Returns the scope where this parmater is defined. |
Type |
getType()
Returns the type of this Parameter. |
java.lang.Object |
getValue()
Returns the value of this parameter. |
int |
hashCode()
|
boolean |
isModifiable()
Returns whether the parameter can be modified. |
void |
setDefaultExp(Exp defaultExp)
|
void |
setDescription(java.lang.String description)
|
void |
setType(Type type)
|
void |
setValue(java.lang.Object value)
Sets the value of this parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterImpl(java.lang.String name,
Exp defaultExp,
java.lang.String description,
Type type)
| Method Detail |
|---|
public Parameter.Scope getScope()
Parameter
getScope in interface Parameterpublic Type getType()
Parameter
getType in interface Parameterpublic Exp getDefaultExp()
Parameter
getDefaultExp in interface Parameterpublic java.lang.String getName()
Parameter
getName in interface Parameterpublic java.lang.Object getValue()
ParameterParameter.setValue(Object) has
not been called, and the parameter still has its default value, returns
null.
The type of the value is (depending on the type of the parameter)
a String, Number, or Member.
getValue in interface Parameterpublic void setValue(java.lang.Object value)
Parameter
setValue in interface Parametervalue - Value of the parameter; must be a String,
a Double, or a Memberpublic java.lang.String getDescription()
Parameter
getDescription in interface Parameterpublic java.lang.Object[] getChildren()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isModifiable()
isModifiable in interface Parameterpublic void setDescription(java.lang.String description)
public void setType(Type type)
public void setDefaultExp(Exp defaultExp)
public Calc compile(ExpCompiler compiler)
compile in interface ParameterCompilable
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||