| 
 | Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1.4.0) E12063-05 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.dss.rules.discriminator.QDRDiscriminator
public class 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 | |
|---|---|
| protected static java.lang.String | a_setOperator | 
| protected static java.lang.String | equals | 
| static int | EQUALSThe QDRfor thisDiscriminatormust be
 equivalent to theQDRfrom theRuleContext. | 
| protected  java.util.Hashtable | m_context | 
| protected static QDRDiscriminator | m_defaultDiscriminator | 
| protected  QDR | m_QDR | 
| protected  int | m_setOperator | 
| static java.lang.String | NAME_QDR_DISC | 
| protected static java.lang.String | proper_subset | 
| static int | PROPER_SUBSETThe QDRfor thisDiscriminatormust be a
 proper subset of theQDRfrom theRuleContext. | 
| protected static java.lang.String | proper_superset | 
| static int | PROPER_SUPERSETThe QDRfor thisDiscriminatormust be a proper
 superset of theQDRfrom theRuleContext. | 
| protected static java.lang.String | QDR_NAME | 
| protected static java.lang.String | S_NAME_QDR_DISC | 
| protected static java.lang.String | s_qdrString | 
| protected static java.lang.String | s_setOperator | 
| protected static int | setOperator | 
| protected static java.lang.String | subset | 
| static int | SUBSETThe QDRfor thisDiscriminatormust
 be a subset of theQDRfrom theRuleContext. | 
| protected static java.lang.String | superset | 
| static int | SUPERSETThe QDRfor thisDiscriminatormust
 be a superset of theQDRfrom theRuleContext. | 
| Constructor Summary | |
|---|---|
| QDRDiscriminator()Constructor that does not specify a QDRor an
 operator for comparison. | |
| QDRDiscriminator(QDR qdr,
                 int setOp)Constructor that specifies a QDRand an operator
 for comparison. | |
| Method Summary | |
|---|---|
|  boolean | applies(RuleContext context)Specifies whether the data reference from the specified RuleContextmeets the conditions set in thisQDRDiscriminator. | 
|  java.lang.Object | clone()Clones this QDRDiscriminator. | 
| protected static QDRDiscriminator | createDefaultDiscriminator() | 
|  boolean | equals(java.lang.Object o) | 
|  QDR | getQDR()Retrieves the QDRof thisQDRDiscriminator. | 
|  int | getSetOperator()Retrieves the comparison operator of this QDRDiscriminator. | 
|  oracle.dss.util.xml.ObjectNode | getStateAsObjectNode(java.util.List context,
                     DiscriminatorState baseState) | 
|  oracle.dss.util.xml.ObjectNode | getXML(boolean allProperties,
       ComponentTypeConverter converter,
       boolean emptyElement)Retrieves XML that represents properties and their values in the form of and ObjectNode. | 
|  void | setContext(java.util.Hashtable context) | 
|  void | setQDR(QDR qdr)Specifes the QDRobject for thisQDRDiscriminator. | 
|  void | setSetOperator(int setOp)Specifies the comparison operator for this QDRDiscriminator. | 
|  void | setStateAsObjectNode(java.util.List context,
                     oracle.dss.util.xml.ObjectNode node,
                     DiscriminatorState baseState) | 
|  boolean | setXML(oracle.dss.util.xml.ObjectNode node,
       ComponentTypeConverter converter,
       java.lang.String version,
       int reset)Specifies XML that represents properties and values. | 
| Methods inherited from class java.lang.Object | 
|---|
| finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected QDR m_QDR
protected int m_setOperator
public static final int SUBSET
QDR for this Discriminator must
 be a subset of the QDR from the RuleContext.
QDR.isSubsetOf(oracle.dss.util.QDRInterface), 
Constant Field Valuespublic 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), 
Constant Field Valuespublic 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), 
Constant Field Valuespublic static final int EQUALS
QDR for this Discriminator must be
 equivalent to the QDR from the RuleContext.
QDR.equals(oracle.dss.util.QDR), 
Constant Field Valuespublic static final int SUPERSET
QDR for this Discriminator must
 be a superset of the QDR from the RuleContext.
QDR.isSupersetOf(oracle.dss.util.QDRInterface), 
Constant Field Valuesprotected static final java.lang.String QDR_NAME
protected static final java.lang.String S_NAME_QDR_DISC
protected static final java.lang.String s_setOperator
protected static final java.lang.String s_qdrString
protected static QDRDiscriminator m_defaultDiscriminator
protected java.util.Hashtable m_context
public static final java.lang.String NAME_QDR_DISC
protected static final int setOperator
protected static final java.lang.String a_setOperator
protected static final java.lang.String subset
protected static final java.lang.String proper_subset
protected static final java.lang.String proper_superset
protected static final java.lang.String equals
protected static final java.lang.String superset
| 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 Discriminatorclone in class java.lang.ObjectQDRDiscriminator.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.public void setContext(java.util.Hashtable context)
context - A hashtable that a user can use to pass XMLContext
                One can also use this table to pass more information 
                to its objects.
public boolean setXML(oracle.dss.util.xml.ObjectNode node,
                      ComponentTypeConverter converter,
                      java.lang.String version,
                      int reset)
DiscriminatorXMLDiscriminatorXML.
setXML in interface DiscriminatorXMLnode - ObjectNode that has the properties and their values.converter - A converter that converts component strings to integers
                  and vice versa.version - The XML version.reset - A constant that indicates how much to reset when XML
               is applied. Valid values are listed in the See Also section.
true if XML is properly applied,
         false if the XML cannot be applied.Rule.RESET_NONE, 
Rule.RESET_XML_PROPERTIES, 
Rule.RESET_EVERYTHING
public oracle.dss.util.xml.ObjectNode getXML(boolean allProperties,
                                             ComponentTypeConverter converter,
                                             boolean emptyElement)
DiscriminatorXMLObjectNode.
getXML in interface DiscriminatorXMLallProperties - true to store all property values in XML,
                      false to store only values that are different
                      from default values.converter - A converter that converts component strings to integers
                  and integers to strings.emptyElement - true if an empty element needs to be returned
                     when none of the property values have changed from default.
                      false if null should should be returned when
                      none of the property values have changed from default.
                      This argument is considered only if
                      allProperties is false.
public void setStateAsObjectNode(java.util.List context,
                                 oracle.dss.util.xml.ObjectNode node,
                                 DiscriminatorState baseState)
setStateAsObjectNode in interface DiscriminatorState
public oracle.dss.util.xml.ObjectNode getStateAsObjectNode(java.util.List context,
                                                           DiscriminatorState baseState)
getStateAsObjectNode in interface DiscriminatorStateprotected static QDRDiscriminator createDefaultDiscriminator()
| 
 | Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1.4.0) E12063-05 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||