Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.0.0)

E12063-01


oracle.dss.util
Class SimpleCondition

java.lang.Object
  extended by oracle.dss.util.SimpleCondition


public class SimpleCondition
extends java.lang.Object

Boolean expression involving constants, and data item metadata IDs as returned by getCompatibleDataItemMetadata method in DataDirector3


Field Summary
static int EQ
          Equals (=).
static int GE
          Greater than or equal to (>=).
static int GT
          Greater than (>).
static int IB
          Inclusive Between (A<=B<=C).
static int LE
          Less than or equal to (<=).
static int LT
          Less than (<).
protected  ErrorHandler m_eh
           
protected  java.lang.Object m_left
           
protected  java.lang.Object m_leftOperand
           
protected  int m_operator
           
protected  java.lang.Object m_right
           
static int NE
          Not equal (!=).
static java.lang.String XML_NAME
           

 

Constructor Summary
SimpleCondition()
          default constructor
SimpleCondition(java.lang.Object leftOperand, int operator, double rightOperand)
          constructor
SimpleCondition(java.lang.Object leftOperand, int operator, double left, double right)
          constructor
SimpleCondition(java.lang.Object leftOperand, int operator, java.lang.Object rightOperand)
          constructor
SimpleCondition(java.lang.Object leftOperand, int operator, java.lang.Object left, java.lang.Object right)
          constructor

 

Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether the specified object is equivalent to this SimpleCondition.
 ErrorHandler getErrorHandler()
          get error handler of viewformat
 java.lang.Object getLeftOperand()
          returns the left operand
 int getOperator()
          returns the operator used for this condition
 java.lang.Object[] getRightOperands()
          returns the right operands.
 oracle.dss.util.xml.ObjectNode getXML()
           
 boolean isValidCondition()
          check if the condition is valid
 boolean isValidOperator()
          check if the operator is valid
 void setErrorHandler(ErrorHandler eh)
          Specifies the error handler
 void setXML(oracle.dss.util.xml.ObjectNode node)
           

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

EQ

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

LT

public static final int LT
Less than (<). The left operand must be less than the right operand 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 must be less than or equal to the right operand 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 must be greater than the right operand 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 must be greater than or equal to the right operand 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 must not equal the right operand
See Also:
Constant Field Values

IB

public static final int IB
Inclusive Between (A<=B<=C). The left operand must in between left and right value
See Also:
Constant Field Values

m_eh

protected ErrorHandler m_eh

m_leftOperand

protected java.lang.Object m_leftOperand

m_operator

protected int m_operator

m_left

protected java.lang.Object m_left

m_right

protected java.lang.Object m_right

XML_NAME

public static final java.lang.String XML_NAME
See Also:
Constant Field Values

Constructor Detail

SimpleCondition

public SimpleCondition()
default constructor

SimpleCondition

public SimpleCondition(java.lang.Object leftOperand,
                       int operator,
                       java.lang.Object left,
                       java.lang.Object right)
constructor

SimpleCondition

public SimpleCondition(java.lang.Object leftOperand,
                       int operator,
                       java.lang.Object rightOperand)
constructor

SimpleCondition

public SimpleCondition(java.lang.Object leftOperand,
                       int operator,
                       double rightOperand)
constructor

SimpleCondition

public SimpleCondition(java.lang.Object leftOperand,
                       int operator,
                       double left,
                       double right)
constructor

Method Detail

isValidCondition

public boolean isValidCondition()
check if the condition is valid

isValidOperator

public boolean isValidOperator()
check if the operator is valid

setErrorHandler

public void setErrorHandler(ErrorHandler eh)
Specifies the error handler
Parameters:
eh - The error handler to use.

getErrorHandler

public ErrorHandler getErrorHandler()
get error handler of viewformat
Returns:
the error handler to use.

equals

public boolean equals(java.lang.Object o)
Indicates whether the specified object is equivalent to this SimpleCondition.
Overrides:
equals in class java.lang.Object
Parameters:
o - The object to compare with this SimpleCondition.
Returns:
true if both objects have the same elememnts false if not or if o is not a SimpleCondition.

getLeftOperand

public java.lang.Object getLeftOperand()
returns the left operand
Returns:
object representing metadata of a measure

getOperator

public int getOperator()
returns the operator used for this condition
Returns:
integer representing the operator

getRightOperands

public java.lang.Object[] getRightOperands()
returns the right operands. This method returns two operands if the operator specified for this SimpleCondition is Inclusive between (IB) For Example, (Sales IB 100000 - 300000) i.e. (100000 <= Sales <= 300000)
Returns:
object array either representing measures or values

getXML

public oracle.dss.util.xml.ObjectNode getXML()

setXML

public void setXML(oracle.dss.util.xml.ObjectNode node)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.0.0)

E12063-01


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