|
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1.9.0) E52941-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.dss.rules.discriminator.ValueDiscriminator
public abstract class ValueDiscriminator
Abstract Discriminator for a rule that applies based on a comparison of two values. Concrete subclasses of this class specify the kind of value and how the value from the DataView must relate to this value for the DiscriminatorRule to apply. For example, a NumberValueDiscriminator can specify that a DiscriminatorRule should apply to data values greater than 500,000.
This class defines constants for the following relational operators: =, <, <=, >, >=, >, and !=. This class is abstract because it does not define the applies method from the Discriminator interface. Discriminators that extend this class must implement the method.
| Field Summary | |
|---|---|
protected static java.lang.String |
a_relOperator |
protected static java.lang.String |
eq |
static int |
EQEquals (=). |
protected static java.lang.String |
ge |
static int |
GEGreater than or equal to (>=). |
protected static java.lang.String |
gt |
static int |
GTGreater than (>). |
protected static java.lang.String |
le |
static int |
LELess than or equal to (<=). |
protected static java.lang.String |
lt |
static int |
LTLess than (<). |
protected int |
m_relOperator |
protected static java.lang.String |
ne |
static int |
NENot equal (!=). |
protected static java.lang.String |
s_relOperator |
| Constructor Summary | |
|---|---|
ValueDiscriminator()Constructor that does not take an operator. |
|
ValueDiscriminator(int relOp)Constructor that initializes the relational operator. |
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
clone()Clones this ValueDiscriminator. |
protected int |
convertRelOperatorToInt(java.lang.String rel) |
protected java.lang.String |
convertRelOperatorToString(int rel) |
int |
getRelOperator()Retrieves the relational operator for this ValueDiscriminator. |
void |
setRelOperator(int relOp)Specifies the relational operator for this. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.dss.rules.discriminator.DiscriminatorXML |
|---|
getXML, setXML |
| Methods inherited from interface oracle.dss.rules.discriminator.Discriminator |
|---|
applies |
| Field Detail |
|---|
protected int m_relOperator
public static final int EQ
RuleContext) must equal the right operand (from this ValueDiscriminator).
public static final int LT
RuleContext) must be less than the right operand (from this ValueDiscriminator). For dates, the left operand must be earlier than the right operand.
public static final int LE
RuleContext) must be less than or equal to the right operand (from this ValueDiscriminator). For dates, the left operand must be earlier than or equal to the right operand.
public static final int GT
RuleContext) must be greater than the right operand (from this ValueDiscriminator). For dates, the left operand must be later than the right operand.
public static final int GE
RuleContext) must be greater than or equal to the right operand (from this ValueDiscriminator). For dates, the left operand must be later than or equal to the right operand.
public static final int NE
RuleContext) must not equal the right operand (from this ValueDiscriminator).
protected static final java.lang.String a_relOperator
protected static final java.lang.String eq
protected static final java.lang.String le
protected static final java.lang.String lt
protected static final java.lang.String ge
protected static final java.lang.String gt
protected static final java.lang.String ne
protected static final java.lang.String s_relOperator
| Constructor Detail |
|---|
public ValueDiscriminator()
setRelOperator method to specify the relational operator for this ValueDiscriminator.public ValueDiscriminator(int relOp)
relOp - A constant that represents the relational operator to use in this ValueDiscriminator.| Method Detail |
|---|
public abstract java.lang.Object clone()
ValueDiscriminator.clone in interface Discriminatorclone in class java.lang.ObjectValueDiscriminatorpublic int getRelOperator()
ValueDiscriminator.ValueDiscriminator. Valid constants are listed in the See Also section.EQ, LT, LE, GT, GE, NEpublic void setRelOperator(int relOp)
ValueDiscriminator.relOp - A constant that represents the relational operator for this ValueDiscriminator. Valid constants are defined in the See Also section.EQ, LT, LE, GT, GE, NEprotected int convertRelOperatorToInt(java.lang.String rel)
protected java.lang.String convertRelOperatorToString(int rel)
|
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1.9.0) E52941-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||