public class RuleContext
extends java.util.Hashtable
implements java.io.Serializable
Dataview.
 RuleContext objects are used by Rules to
 determine whether the Rule applies to the item.
 
 RuleContext objects store data objects that contain
 information about the Dataview item.
 The fields in this class are the keys into the RuleContext.
 
 To retrieve, for example, a QDR data object for this context,
 you would call the the get method of the superclass, passing
 RuleContext.QDR as the key.
 
 Do not pass null parameters to the put or get methods
 of the Hashtable.  If either parameter is null, the method
 throws a NullPointerException.  It is the responsibility of
 the user of the RuleContext to ensure that this does not happen.
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
COMPONENT_TYPE
Key for an  
Integer object that is used by the
 ComponentTypeDiscriminator. | 
static java.lang.String | 
DATA_ACCESS
Key for the  
DATA_ACCESS object that is used by
 the Discriminator. | 
static java.lang.String | 
DATE_VALUE
Key for a  
Date value. | 
static java.lang.String | 
DIMENSIONQDR
Key for a  
DIMENSIONQDR. | 
static java.lang.String | 
ISPERCENT
Key for a  
Boolean value. | 
static int | 
NOT_TOTAL
Value for  
TOTALS_RELATION: The cell that is being formatted is 
 not a total. | 
static java.lang.String | 
NUMBER_VALUE
Key for a  
Number. | 
static java.lang.String | 
POSITION
Key for a  
ComponentInfo. | 
static java.lang.String | 
QDR
Key for a  
QDR. | 
static java.lang.String | 
STRING_VALUE
Key for a  
String value. | 
static int | 
TOTAL_CELL
Value for  
TOTALS_RELATION: The cell that is being formatted 
 is a total. | 
static java.lang.String | 
TOTALS_RELATION
Key for an  
Integer value that is used by the
 TotalsDiscriminator. | 
| Constructor and Description | 
|---|
RuleContext()
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
clone()
Clones this  
RuleContext. | 
boolean | 
isStopAtFirstMatch()
Indicates whether bundles of rules stop being run after a
  
RuleBundle is run that has a Rule that applies
 and has been fired. | 
void | 
setStopAtFirstMatch(boolean v)
Specifies whether bundles of rules stop being run after a
  
RuleBundle is run that has a Rule that applies
 and has been fired. | 
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic static final java.lang.String QDR
QDR.
 The QDR will most likely be used by a
 QDRDiscriminator.public static final java.lang.String DIMENSIONQDR
DIMENSIONQDR.
 The DIMENSIONQDR will most likely be used by a
 QDRDiscriminator.public static final java.lang.String POSITION
ComponentInfo.
 The ComponentInfo will most likely be used by a
 PositionDiscriminator.public static final java.lang.String NUMBER_VALUE
Number.
 The Number will most likely be used by a
 NumberValueDiscriminator.public static final java.lang.String DATE_VALUE
Date value.public static final java.lang.String STRING_VALUE
String value.public static final java.lang.String ISPERCENT
Boolean value.
 If the Boolean is true, the data value should
 be formatted as a percent value.public static final java.lang.String COMPONENT_TYPE
Integer object that is used by the
 ComponentTypeDiscriminator.  The Integer
 should identify the type of component.public static final java.lang.String DATA_ACCESS
DATA_ACCESS object that is used by
 the Discriminator.public static final java.lang.String TOTALS_RELATION
Integer value that is used by the
 TotalsDiscriminator.
 The Integer should identify whether the cell that
 is being formatted
 is a total.  Valid constants are listed in the See Also section.NOT_TOTAL, 
TOTAL_CELL, 
Constant Field Valuespublic static final int NOT_TOTAL
TOTALS_RELATION: The cell that is being formatted is 
 not a total.public static final int TOTAL_CELL
TOTALS_RELATION: The cell that is being formatted 
 is a total.public java.lang.Object clone()
RuleContext.
 This method creates a shallow copy.clone in class java.util.HashtableRuleContext.public void setStopAtFirstMatch(boolean v)
RuleBundle is run that has a Rule that applies
 and has been fired.
 Stopping at the first RuleBundle prevents rules that are
 in later rule bundles in the vector from changing the effect of the
 RuleBundle.
 Stopping at the first applicable rule also enhances performance.v - true to stop running rule bundles after the
           first bundle that has an applicable rule,
           false to run all the rule bundles.public boolean isStopAtFirstMatch()
RuleBundle is run that has a Rule that applies
 and has been fired.
 Stopping at the first RuleBundle prevents rules that are
 in later rule bundles in the vector from changing the effect of the
 RuleBundle.
 Stopping at the first applicable rule also enhances performance.true if rule bundles are not run after the first
          bundle that has an applicable rule, false if the
          all rule bundles are run.