|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.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(String name,
Exp defaultExp,
String description,
Type type)
|
Method Summary | |
---|---|
Calc |
compile(ExpCompiler compiler)
|
boolean |
equals(Object other)
Returns whether this parameter is equal to another, based upon name, type and value |
Object[] |
getChildren()
|
Exp |
getDefaultExp()
Returns the expression which provides the default value for this Parameter. |
String |
getDescription()
Returns the description of this Parameter. |
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. |
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(String description)
|
void |
setType(Type type)
|
void |
setValue(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(String name, Exp defaultExp, String description, Type type)
Method Detail |
---|
public Parameter.Scope getScope()
Parameter
getScope
in interface Parameter
public Type getType()
Parameter
getType
in interface Parameter
public Exp getDefaultExp()
Parameter
getDefaultExp
in interface Parameter
public String getName()
Parameter
getName
in interface Parameter
public Object getValue()
Parameter
Parameter.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 Parameter
public void setValue(Object value)
Parameter
setValue
in interface Parameter
value
- Value of the parameter; must be a String
,
a Double
, or a Member
public String getDescription()
Parameter
getDescription
in interface Parameter
public Object[] getChildren()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean isModifiable()
isModifiable
in interface Parameter
public void setDescription(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 |