public final class SymmetricConditionElement extends SyntaxObject
SyntaxObject
that specifies a collection of the members of a dimension for a SymmetricCondition
. You use a SymmetricCondition
as the parameter for the setPrecomputeCondition(SymmetricCondition cond)
method of an AWCubeOrganization
.
When you create a SymmetricConditionElement
, you specify an MdmPrimaryDimension
and a qualifier or a collection of MdmDimensionLevel
objects. The qualifier is one of the constant fields of this class, which specify either all of the members of a dimension or none of the members. The collection of MdmDimensionLevel
objects can have one or more MdmDimensionLevel
objects.
For compatibility with the SymmetricCondition
class in the 11.1 release of the Oracle OLAP Java API, you can also specify a Condition
when creating a SymmetricConditionElement
. The Condition
is an Expression
that specifies the dimension members. For an 11.2 application, use one of the other constructors.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL
A constant that specifies all of the members of a dimension.
|
static java.lang.String |
NONE
A constant that specifies none of the members of a dimension.
|
Constructor and Description |
---|
SymmetricConditionElement(MdmPrimaryDimension dimension, Condition condition)
For compatibility with the 11.1 Oracle OLAP Java API, creates a
SymmetricConditionElement with the specified dimension and Condition . |
SymmetricConditionElement(MdmPrimaryDimension dimension, java.util.List<MdmDimensionLevel> levels)
Creates a
SymmetricConditionElement with the specified dimension and dimension levels. |
SymmetricConditionElement(MdmPrimaryDimension dimension, MdmDimensionLevel[] levels)
Creates a
SymmetricConditionElement with the specified dimension and dimension levels. |
SymmetricConditionElement(MdmPrimaryDimension dimension, java.lang.String qualifier)
Creates a
SymmetricConditionElement with the specified dimension and qualifier. |
Modifier and Type | Method and Description |
---|---|
Condition |
getCondition()
Gets the
Condition that is associated with this SymmetricConditionElement . |
MdmPrimaryDimension |
getDimension()
Gets the
MdmPrimaryDimension that is associated with this SymmetricConditionElement . |
java.lang.String |
getDimensionID()
Gets the ID of the
MdmPrimaryDimension that is associated with this SymmetricConditionElement . |
java.lang.String[] |
getLevelIDs()
Gets the IDs of the
MdmDimensionLevel objects that are associated with this SymmetricConditionElement . |
MdmDimensionLevel[] |
getLevels()
Gets the
MdmDimensionLevel objects that are associated with this SymmetricConditionElement . |
java.lang.String |
getQualifier()
Gets the qualifier that is associated with this
SymmetricConditionElement . |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitSymmetricConditionElement method of the SyntaxObjectVisitor and passes that method this SymmetricConditionElement and an Object . |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public static final java.lang.String ALL
public static final java.lang.String NONE
public SymmetricConditionElement(MdmPrimaryDimension dimension, java.lang.String qualifier)
SymmetricConditionElement
with the specified dimension and qualifier. The qualifier is one of the constants of this class, either SymmetricConditionElement.ALL
or SymmetricConditionElement.NONE
.dimension
- An MdmPrimaryDimension
.qualifier
- A String
that is one of the constants of this class.public SymmetricConditionElement(MdmPrimaryDimension dimension, Condition condition)
SymmetricConditionElement
with the specified dimension and Condition
. For an 11.2 application, use one of the other constructors.dimension
- An MdmPrimaryDimension
.condition
- A Condition
that specifies members of the dimension.public SymmetricConditionElement(MdmPrimaryDimension dimension, MdmDimensionLevel[] levels)
SymmetricConditionElement
with the specified dimension and dimension levels.dimension
- An MdmPrimaryDimension
.levels
- An array of MdmDimensionLevel
objects.public SymmetricConditionElement(MdmPrimaryDimension dimension, java.util.List<MdmDimensionLevel> levels)
SymmetricConditionElement
with the specified dimension and dimension levels.dimension
- An MdmPrimaryDimension
.levels
- A List
of MdmDimensionLevel
objects.public MdmPrimaryDimension getDimension()
MdmPrimaryDimension
that is associated with this SymmetricConditionElement
.MdmPrimaryDimension
object of this SymmetricConditionElement
.public java.lang.String getDimensionID()
MdmPrimaryDimension
that is associated with this SymmetricConditionElement
.String
that contains the ID of the MdmPrimaryDimension
object of this SymmetricConditionElement
.public Condition getCondition()
Condition
that is associated with this SymmetricConditionElement
.Condition
object of this SymmetricConditionElement
.public java.lang.String[] getLevelIDs()
MdmDimensionLevel
objects that are associated with this SymmetricConditionElement
.String
objects that contain the IDs of the MdmDimensionLevel
objects of this SymmetricConditionElement
.public MdmDimensionLevel[] getLevels()
MdmDimensionLevel
objects that are associated with this SymmetricConditionElement
.MdmDimensionLevel
objects of this SymmetricConditionElement
.public java.lang.String getQualifier()
SymmetricConditionElement
. A qualifier is one of the constant fields of this class.String
that contains the value of one of constant fields of this class or null
if this SymmetricConditionElement
does not have a qualifier.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitSymmetricConditionElement
method of the SyntaxObjectVisitor
and passes that method this SymmetricConditionElement
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitSymmetricConditionElement
method.