|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.dss.rules.discriminator.QDRDiscriminator
Discriminator for a rule that applies based on one or more dimension members. For example, you could use this Discriminator to specify that a DiscriminatorRule should apply to any crosstab cell that displays a value for boots, in New York, in December 1999. The item will be formatted, then, regardless of where the data appears in the crosstab.
This Discriminator compares an internal QDR class to a QDR class that is in the RuleContext that describes the item to be painted.
DiscriminatorRule, RuleContext, QDR, Serialized Form| Field Summary | |
static int |
EQUALSThe QDR for this Discriminator must be equivalent to the QDR from the RuleContext. |
static int |
PROPER_SUBSETThe QDR for this Discriminator must be a proper subset of the QDR from the RuleContext. |
static int |
PROPER_SUPERSETThe QDR for this Discriminator must be a proper superset of the QDR from the RuleContext. |
static int |
SUBSETThe QDR for this Discriminator must be a subset of the QDR from the RuleContext. |
static int |
SUPERSETThe QDR for this Discriminator must be a superset of the QDR from the RuleContext. |
| Constructor Summary | |
QDRDiscriminator()Constructor that does not specify a QDR or an operator for comparison. | |
QDRDiscriminator(QDR qdr, int setOp)Constructor that specifies a QDR and an operator for comparison. | |
| Method Summary | |
boolean |
applies(RuleContext context)Specifies whether the data reference from the specified RuleContext meets the conditions set in this QDRDiscriminator. |
java.lang.Object |
clone()Clones this QDRDiscriminator. |
boolean |
equals(java.lang.Object o) |
QDR |
getQDR()Retrieves the QDR of this QDRDiscriminator. |
int |
getSetOperator()Retrieves the comparison operator of this QDRDiscriminator. |
void |
setQDR(QDR qdr)Specifes the QDR object for this QDRDiscriminator. |
void |
setSetOperator(int setOp)Specifies the comparison operator for this QDRDiscriminator. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.dss.rules.discriminator.DiscriminatorXML |
getXML, setXML |
| Field Detail |
public static final int SUBSET
QDR for this Discriminator must be a subset of the QDR from the RuleContext.QDR.isSubsetOf(oracle.dss.util.QDR)public static final int PROPER_SUBSET
QDR for this Discriminator must be a proper subset of the QDR from the RuleContext.QDR.isProperSubsetOf(oracle.dss.util.QDR)public static final int PROPER_SUPERSET
QDR for this Discriminator must be a proper superset of the QDR from the RuleContext.QDR.isProperSupersetOf(oracle.dss.util.QDR)public static final int EQUALS
QDR for this Discriminator must be equivalent to the QDR from the RuleContext.QDR.equals(oracle.dss.util.QDR)public static final int SUPERSET
QDR for this Discriminator must be a superset of the QDR from the RuleContext.QDR.isSupersetOf(oracle.dss.util.QDR)| Constructor Detail |
public QDRDiscriminator()
QDR or an operator for comparison. If you use this constructor, call the setQDR method to specify a QDR for this Discriminator. Call the setSetOperator to specify an operator.
public QDRDiscriminator(QDR qdr,
int setOp)
QDR and an operator for comparison.qdr - The QDR that identifies the dimension members for which a DataView item must display data in order for this QDRDiscriminator to apply.setOp - The operator that describes the required relationship between the two QDR objects (such as SUBSET or SUPERSET).| Method Detail |
public java.lang.Object clone()
QDRDiscriminator.clone in interface DiscriminatorQDRDiscriminator.public void setQDR(QDR qdr)
QDR object for this QDRDiscriminator.qdr - The QDR that identifies the dimension members for which a DataView item must display data in order for this QDRDiscriminator to apply.public QDR getQDR()
QDR of this QDRDiscriminator.QDR that identifies the dimension members for which a DataView item must display data in order for this QDRDiscriminator to apply.public void setSetOperator(int setOp)
QDRDiscriminator.setOp - A constant for the operator that describes the required relationship between the two QDR objects (such as SUBSET or SUPERSET). Valid constants are listed in the See Also section.EQUALS, SUBSET, PROPER_SUBSET, SUPERSET, PROPER_SUPERSETpublic int getSetOperator()
QDRDiscriminator.QDR objects (such as SUBSET or SUPERSET).EQUALS, SUBSET, PROPER_SUBSET, SUPERSET, PROPER_SUPERSETpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean applies(RuleContext context)
RuleContext meets the conditions set in this QDRDiscriminator. This method compares QDR objects. For example, in a rule that displays all values for December 1999 in bold type, the QDR for the QDRDiscriminator would limit the Month dimension to December 1999, and the operator for would be SUPERSET. For a crosstab cell that displays a value for shoes, in New York, in December 1999, the QDR in the RuleContext would limit Product to shoes, Geography to New York, and Month to December 1999. The QDR for the QDRDiscriminator would refer to superset of the data that is specified in the QDR from the RuleContext, so this method would return true.applies in interface Discriminatorcontext - The context of the item to be painted.true if the QDR of the specified RuleContext has the required relationship to the QDR for this QDRDiscriminator, false if not.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||