public final class AggregationCase extends SyntaxObject
SyntaxObject
that represents an aggregation case for an AggregationCommand
. An AggregationCase
specifies a method of aggregation for a measure.Constructor and Description |
---|
AggregationCase(java.lang.String functionName, FunctionArgument[] args, MdmBaseMeasure measure)
Creates an
AggregationCase that has the specified function, with function arguments, as the aggregation method for the specified measure. |
AggregationCase(java.lang.String functionName, FunctionArgument[] args, TypedExpression aggregationSwitchValue)
Creates an
AggregationCase that has the specified function, with function arguments, as the aggregation method for the specified dimension member or attribute value. |
AggregationCase(java.lang.String functionName, java.util.List<FunctionArgument> args, MdmBaseMeasure measure)
Creates an
AggregationCase that has the specified function, with function arguments, as the aggregation method for the specified measure. |
AggregationCase(java.lang.String functionName, java.util.List<FunctionArgument> args, TypedExpression aggregationSwitchValue)
Creates an
AggregationCase that has the specified function, with function arguments, as the aggregation method for the specified dimension member or attribute value. |
Modifier and Type | Method and Description |
---|---|
TypedExpression |
getAggregationSwitchValue()
Gets the dimension member or attribute value that is associated with this
AggregationCase . |
FunctionArgument[] |
getArguments()
Gets the function arguments contained by this
AggregationCase . |
FunctionDescriptor |
getFunctionDescriptor()
Gets the function descriptor associated with this
AggregationCase . |
java.lang.String |
getFunctionName()
Gets the name of the function for this
AggregationCase . |
MdmBaseMeasure |
getMeasure()
Gets the measure that is associated with this
AggregationCase . |
java.lang.String |
getMeasureID()
Gets the ID of the measure that is associated with this
AggregationCase . |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitAggregationCase method of the SyntaxObjectVisitor and passes that method this AggregationCase and an Object . |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public AggregationCase(java.lang.String functionName, java.util.List<FunctionArgument> args, MdmBaseMeasure measure)
AggregationCase
that has the specified function, with function arguments, as the aggregation method for the specified measure.functionName
- A String
that contains the name of the function to use to aggregate the data of the measure.args
- A List
of FunctionArgument
objects that modify the function.measure
- The MdmBaseMeasure
to which to apply the aggregation.public AggregationCase(java.lang.String functionName, FunctionArgument[] args, MdmBaseMeasure measure)
AggregationCase
that has the specified function, with function arguments, as the aggregation method for the specified measure.functionName
- A String
that contains the name of the function to use to aggregate the data of the measure.args
- An array of FunctionArgument
objects that modify the function.measure
- The MdmBaseMeasure
to which to apply the aggregation.public AggregationCase(java.lang.String functionName, java.util.List<FunctionArgument> args, TypedExpression aggregationSwitchValue)
AggregationCase
that has the specified function, with function arguments, as the aggregation method for the specified dimension member or attribute value.functionName
- A String
that contains the name of the function to use to aggregate the data of the measure.args
- A List
of FunctionArgument
objects that modify the function.aggregationSwitchValue
- A TypedExpression
that evaluates to a dimension member or attribute value for which to apply the aggregation.public AggregationCase(java.lang.String functionName, FunctionArgument[] args, TypedExpression aggregationSwitchValue)
AggregationCase
that has the specified function, with function arguments, as the aggregation method for the specified dimension member or attribute value.functionName
- A String
that contains the name of the function to use to aggregate the data of the measure.args
- An array of FunctionArgument
objects that modify the function.aggregationSwitchValue
- A TypedExpression
that evaluates to a dimension member or attribute value for which to apply the aggregation.public FunctionArgument[] getArguments()
AggregationCase
.FunctionArgument
of this AggregationCase
.public FunctionDescriptor getFunctionDescriptor()
AggregationCase
.FunctionDescriptor
for this AggregationCase
.public java.lang.String getFunctionName()
AggregationCase
.String
that contains the name of the function for this AggregationCase
.public MdmBaseMeasure getMeasure()
AggregationCase
.MdmBaseMeasure
associated with this AggregationCase
.public java.lang.String getMeasureID()
AggregationCase
.String
that contains the ID of the MdmBaseMeasure
associated with this AggregationCase
.public TypedExpression getAggregationSwitchValue()
AggregationCase
.TypedExpression
that evaluates to a dimension member or attribute value of the MdmPrimaryDimension
of the AggregationCase
.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitAggregationCase
method of the SyntaxObjectVisitor
and passes that method this AggregationCase
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitAggregationCase
method.