|
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.ValueDiscriminator
|
+--oracle.dss.rules.discriminator.StringValueDiscriminator
Discriminator for a rule that applies based on a comparison of one string and a vector of strings. For example, you could use this Discriminator to specify that a DiscriminatorRule should apply to string a in vector [a, b, c, d] This Discriminator compares an internal string value to a value that is in the RuleContext that describes the item to be displayed. In the comparison, the left operand comes from the RuleContext, and the right operand is the value stored in this Discriminator.
| Fields inherited from class oracle.dss.rules.discriminator.ValueDiscriminator |
EQ, GE, GT, LE, LT, NE |
| Constructor Summary | |
StringValueDiscriminator()Constructor that does not specify a string or a relational operator. | |
StringValueDiscriminator(java.lang.String str, int operator)Constructor that specifies the string and the relational operator. | |
StringValueDiscriminator(java.util.Vector strings, int operator)Constructor that specifies the strings and the relational operator. | |
| Method Summary | |
boolean |
applies(RuleContext context)Specifies whether the value from the DataView item meets the conditions specified in this Discriminator. |
java.lang.Object |
clone()Clones this StringValueDiscriminator. |
boolean |
equals(java.lang.Object o)Indicates whether the specified object is equivalent to this StringValueDiscriminator. |
java.lang.String |
getString()Retrieves the string for this StringValueDiscriminator. |
java.util.Vector |
getStrings()Retrieves the strings for this StringValueDiscriminator. |
void |
setString(java.lang.String str)Specifies the string value for this StringValueDiscriminator. |
void |
setStrings(java.util.Vector strings)Specifies the strings for this StringValueDiscriminator. |
| Methods inherited from class oracle.dss.rules.discriminator.ValueDiscriminator |
getRelOperator, setRelOperator |
| 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 |
| Constructor Detail |
public StringValueDiscriminator()
setStrings or the setString method to specify a number to compare with. Call setRelOperator to specify the way the numbers should compare, remembering that the left operand comes from the RuleContext and the right operand is the number that you set for this Discriminator.
public StringValueDiscriminator(java.util.Vector strings,
int operator)
strings - The vector of strings for this Discriminator. This vector becomes the right operand in the comparison.operator - The relationship that the value from the RuleContext should have with strings, in order for this Discriminator to apply. Valid constants are listed in the See Also section.ValueDiscriminator.EQ, ValueDiscriminator.GE, ValueDiscriminator.GT, ValueDiscriminator.LE, ValueDiscriminator.LT, ValueDiscriminator.NE
public StringValueDiscriminator(java.lang.String str,
int operator)
str - The string for this Discriminator. This number becomes the right operand in the comparison.operator - The relationship that the value from the RuleContext should have with number, in order for this Discriminator to apply. Valid constants are listed in the See Also section.ValueDiscriminator.EQ, ValueDiscriminator.GE, ValueDiscriminator.GT, ValueDiscriminator.LE, ValueDiscriminator.LT, ValueDiscriminator.NE| Method Detail |
public java.lang.Object clone()
StringValueDiscriminator.clone in class ValueDiscriminatorStringValueDiscriminator.public void setString(java.lang.String str)
StringValueDiscriminator.str - The string that the string from the DataView item must compare to in order to apply. The relationship that the two strings must have is specified by the RelOperator property of the superclass.public void setStrings(java.util.Vector strings)
StringValueDiscriminator.strings - The strings that the string from the DataView item must compare to in order to apply. The relationship that the string vector and the string must have is specified by the RelOperator property of the superclass.public java.util.Vector getStrings()
StringValueDiscriminator.DataView item will be compared. The relationship that the two strings must have is specified by the RelOperator property of the superclass.public java.lang.String getString()
StringValueDiscriminator.DataView item will be compared. The relationship that the two strings must have is specified by the RelOperator property of the superclass.public boolean applies(RuleContext context)
DataView item meets the conditions specified in this Discriminator. For example, if the string for this StringValueDiscriminator is "HELLO" and the RelOperator is EQ (=), then this method returns true if the value in the specified RuleContext is "HELLO".context - The context of the item to be displayed.true if the String value from context has the specified relationship with the strings in this Discriminator, false if not.public boolean equals(java.lang.Object o)
StringValueDiscriminator. They are equivalent if the strings are equal and if the RelOperator values are equal.equals in class java.lang.Objecto - The object to compare with this StringValueDiscriminator.true if both objects have the same string and RelOperator false if not or if o is not a StringValueDiscriminator.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||