Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.3.0)

E17492-04


oracle.dss.rules.discriminator
Class ValueDiscriminator

java.lang.Object
  extended by oracle.dss.rules.discriminator.ValueDiscriminator

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Discriminator, DiscriminatorXML
Direct Known Subclasses:
DateValueDiscriminator, NumberValueDiscriminator, StringValueDiscriminator

public abstract class ValueDiscriminator
extends java.lang.Object
implements DiscriminatorXML

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.

See Also:
Serialized Form

Field Summary
protected static java.lang.String a_relOperator
           
protected static java.lang.String eq
           
static int EQ
          Equals (=).
protected static java.lang.String ge
           
static int GE
          Greater than or equal to (>=).
protected static java.lang.String gt
           
static int GT
          Greater than (>).
protected static java.lang.String le
           
static int LE
          Less than or equal to (<=).
protected static java.lang.String lt
           
static int LT
          Less than (<).
protected  int m_relOperator
           
protected static java.lang.String ne
           
static int NE
          Not 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

m_relOperator

protected int m_relOperator
For internal use only. Application developers should not use this

EQ

public static final int EQ
Equals (=). The left operand (from the RuleContext) must equal the right operand (from this ValueDiscriminator).
See Also:
Constant Field Values

LT

public static final int LT
Less than (<). The left operand (from the RuleContext) must be less than the right operand (from this ValueDiscriminator). For dates, the left operand must be earlier than the right operand.
See Also:
Constant Field Values

LE

public static final int LE
Less than or equal to (<=). The left operand (from the 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.
See Also:
Constant Field Values

GT

public static final int GT
Greater than (>). The left operand (from the RuleContext) must be greater than the right operand (from this ValueDiscriminator). For dates, the left operand must be later than the right operand.
See Also:
Constant Field Values

GE

public static final int GE
Greater than or equal to (>=). The left operand (from the 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.
See Also:
Constant Field Values

NE

public static final int NE
Not equal (!=). The left operand (from the RuleContext) must not equal the right operand (from this ValueDiscriminator).
See Also:
Constant Field Values

a_relOperator

protected static final java.lang.String a_relOperator
See Also:
Constant Field Values
For internal use only. Application developers should not use this

eq

protected static final java.lang.String eq
See Also:
Constant Field Values
For internal use only. Application developers should not use this

le

protected static final java.lang.String le
See Also:
Constant Field Values
For internal use only. Application developers should not use this

lt

protected static final java.lang.String lt
See Also:
Constant Field Values
For internal use only. Application developers should not use this

ge

protected static final java.lang.String ge
See Also:
Constant Field Values
For internal use only. Application developers should not use this

gt

protected static final java.lang.String gt
See Also:
Constant Field Values
For internal use only. Application developers should not use this

ne

protected static final java.lang.String ne
See Also:
Constant Field Values
For internal use only. Application developers should not use this

s_relOperator

protected static final java.lang.String s_relOperator
See Also:
Constant Field Values
For internal use only. Application developers should not use this

Constructor Detail

ValueDiscriminator

public ValueDiscriminator()
Constructor that does not take an operator. If you use this constructor, call the setRelOperator method to specify the relational operator for this ValueDiscriminator.

ValueDiscriminator

public ValueDiscriminator(int relOp)
Constructor that initializes the relational operator.
Parameters:
relOp - A constant that represents the relational operator to use in this ValueDiscriminator.

Method Detail

clone

public abstract java.lang.Object clone()
Clones this ValueDiscriminator.
Specified by:
clone in interface Discriminator
Overrides:
clone in class java.lang.Object
Returns:
The clone of this ValueDiscriminator

getRelOperator

public int getRelOperator()
Retrieves the relational operator for this ValueDiscriminator.
Returns:
A constant that represents the relational operator that is in effect for this ValueDiscriminator. Valid constants are listed in the See Also section.
See Also:
EQ, LT, LE, GT, GE, NE

setRelOperator

public void setRelOperator(int relOp)
Specifies the relational operator for this. ValueDiscriminator.
Parameters:
relOp - A constant that represents the relational operator for this ValueDiscriminator. Valid constants are defined in the See Also section.
See Also:
EQ, LT, LE, GT, GE, NE

convertRelOperatorToInt

protected int convertRelOperatorToInt(java.lang.String rel)
For internal use only. Application developers should not use this

convertRelOperatorToString

protected java.lang.String convertRelOperatorToString(int rel)
For internal use only. Application developers should not use this

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.3.0)

E17492-04


Copyright © 1997, 2012, Oracle. All rights reserved.