public final class AssignmentCommand extends SimpleCommand
SimpleCommand
that represents the assignment of values for a measure of an MdmCube
or an attribute of an MdmPrimaryDimension
in a BuildSpecification
.Constructor and Description |
---|
AssignmentCommand(MdmBaseAttribute base, java.util.List<Qualifier> qualifiers, TypedExpression rhsExpression)
Creates a
AssignmentCommand with the specified base expression and dimension member qualifiers. |
AssignmentCommand(MdmBaseAttribute base, Qualifier[] qualifiers, TypedExpression rhsExpression)
Creates a
AssignmentCommand with the specified base expression and dimension member qualifiers. |
AssignmentCommand(MdmBaseMeasure base, java.util.List<Qualifier> qualifiers, TypedExpression rhsExpression)
Creates a
AssignmentCommand with the specified base expression and dimension member qualifiers. |
AssignmentCommand(MdmBaseMeasure base, Qualifier[] qualifiers, TypedExpression rhsExpression)
Creates a
AssignmentCommand with the specified base expression and dimension member qualifiers. |
Modifier and Type | Method and Description |
---|---|
MdmBaseAttribute |
getBaseAttribute()
Gets the
MdmBaseAttribute to which this AssignmentCommand assigns values. |
MdmBaseMeasure |
getBaseMeasure()
Gets the
MdmBaseMeasure to which this AssignmentCommand assigns values. |
Qualifier[] |
getQualifiers()
Gets the qualifiers of this
AssignmentCommand . |
TypedExpression |
getRHSExpression()
Gets the expression that specifies the values that this
AssignmentCommand assigns. |
MdmDimensionedObject |
getTarget()
Gets the
MdmBaseAttribute or MdmBaseMeasure to which this AssignmentCommand assigns values. |
java.lang.String |
getTargetID()
Gets the ID of the
MdmBaseAttribute or MdmBaseMeasure to which this AssignmentCommand assigns values. |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitAssignmentCommand method of the SyntaxObjectVisitor and passes that method this AssignmentCommand and an Object . |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public AssignmentCommand(MdmBaseMeasure base, Qualifier[] qualifiers, TypedExpression rhsExpression)
AssignmentCommand
with the specified base expression and dimension member qualifiers.base
- The MdmBaseMeasure
to which you are assigning values.qualifiers
- An array of Qualifier
objects that specify members of the dimensions of the measure.rhsExpression
- A TypedExpression
that resolves to the value that you want to assign.public AssignmentCommand(MdmBaseMeasure base, java.util.List<Qualifier> qualifiers, TypedExpression rhsExpression)
AssignmentCommand
with the specified base expression and dimension member qualifiers.base
- The MdmBaseMeasure
to which you are assigning values.qualifiers
- A List
of Qualifier
objects that specify members of the dimensions of the measure.rhsExpression
- A TypedExpression
that resolves to the value that you want to assign.public AssignmentCommand(MdmBaseAttribute base, Qualifier[] qualifiers, TypedExpression rhsExpression)
AssignmentCommand
with the specified base expression and dimension member qualifiers.base
- The MdmBaseAttribute
to which you are assigning values.qualifiers
- An array of Qualifier
objects that specify members of the dimensions of the attribute.rhsExpression
- A TypedExpression
that resolves to the value that you want to assign.public AssignmentCommand(MdmBaseAttribute base, java.util.List<Qualifier> qualifiers, TypedExpression rhsExpression)
AssignmentCommand
with the specified base expression and dimension member qualifiers.base
- The MdmBaseAttribute
to which you are assigning values.qualifiers
- A List
of Qualifier
objects that specify members of the dimensions of the attribute.rhsExpression
- A TypedExpression
that resolves to the value that you want to assign.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitAssignmentCommand
method of the SyntaxObjectVisitor
and passes that method this AssignmentCommand
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitAssignmentCommand
method.public MdmBaseMeasure getBaseMeasure()
MdmBaseMeasure
to which this AssignmentCommand
assigns values.MdmBaseMeasure
of this AssignmentCommand
.public MdmBaseAttribute getBaseAttribute()
MdmBaseAttribute
to which this AssignmentCommand
assigns values.MdmBaseAttribute
of this AssignmentCommand
.public MdmDimensionedObject getTarget()
MdmBaseAttribute
or MdmBaseMeasure
to which this AssignmentCommand
assigns values.MdmDimensionedObject
of this AssignmentCommand
.public java.lang.String getTargetID()
MdmBaseAttribute
or MdmBaseMeasure
to which this AssignmentCommand
assigns values.String
that contains the ID of the MdmDimensionedObject
of this AssignmentCommand
.public Qualifier[] getQualifiers()
AssignmentCommand
.Qualifier
objects that limit the data of the base expression of this AssignmentCommand
.public TypedExpression getRHSExpression()
AssignmentCommand
assigns.TypedExpression
that evaluates to an expression that specifies the values assigned by this AssignmentCommand
.