public class SimpleCondition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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) |
public static final int EQ
public static final int LT
public static final int LE
public static final int GT
public static final int GE
public static final int NE
public static final int IB
protected ErrorHandler m_eh
protected java.lang.Object m_leftOperand
protected int m_operator
protected java.lang.Object m_left
protected java.lang.Object m_right
public static final java.lang.String XML_NAME
public SimpleCondition()
public SimpleCondition(java.lang.Object leftOperand, int operator, java.lang.Object left, java.lang.Object right)
public SimpleCondition(java.lang.Object leftOperand, int operator, java.lang.Object rightOperand)
public SimpleCondition(java.lang.Object leftOperand, int operator, double rightOperand)
public SimpleCondition(java.lang.Object leftOperand, int operator, double left, double right)
public boolean isValidCondition()
public boolean isValidOperator()
public void setErrorHandler(ErrorHandler eh)
eh
- The error handler to use.public ErrorHandler getErrorHandler()
public boolean equals(java.lang.Object o)
SimpleCondition
.equals
in class java.lang.Object
o
- The object to compare with this
SimpleCondition
.true
if both objects have the same elememnts
false
if not or if o
is not a
SimpleCondition
.public java.lang.Object getLeftOperand()
public int getOperator()
public java.lang.Object[] getRightOperands()
public oracle.dss.util.xml.ObjectNode getXML()
public void setXML(oracle.dss.util.xml.ObjectNode node)