|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.XConditionGroup
public class XConditionGroup
A ConditionGroup stores a list of conditions to be applied to the resulting data.
| Nested Class Summary | |
|---|---|
protected class |
XConditionGroup.BooleanItem
Internal class represents a boolean item. |
protected static interface |
XConditionGroup.BooleanValue
Boolean value. |
protected class |
XConditionGroup.CondItem
Internal class represents a condition item. |
protected class |
XConditionGroup.Operator
Internal class represents an operator. |
| Field Summary | |
|---|---|
static int |
AND
Flag indicating that a given condition should be and'ed to the associated column. |
static int |
OR
Flag indicating that a given condition should be or'ed to the associated column. |
| Constructor Summary | |
|---|---|
XConditionGroup()
|
|
| Method Summary | |
|---|---|
void |
addCondition(int col,
XCondition condition,
int level)
Associate a filter condition with the specified column. |
void |
addOperator(int junction,
int level)
Associate a junction with the condition around this junction. |
protected XConditionGroup.BooleanItem |
calc(XConditionGroup.BooleanValue i1,
XConditionGroup.Operator op,
XConditionGroup.BooleanValue i2,
inetsoft.util.Queue queue,
Stack stack,
Object[] values)
Calculate two boolean values. |
protected void |
calcQueueStack(inetsoft.util.Queue queue,
Stack stack,
Object[] values)
Calculate conditions from queue and stack and put to queue. |
protected void |
calcStack(inetsoft.util.Queue queue,
Stack stack,
Object[] values)
Calculate conditions from stack and put to queue. |
protected void |
calcStackStack(inetsoft.util.Queue queue,
Stack stack,
Object[] values)
Calculate conditions from stack and put back to stack. |
protected boolean |
calculate(inetsoft.util.Queue queue,
Object[] values)
Calculate the condition group. |
protected int |
checkLevel(int original,
inetsoft.util.Queue queue,
Stack stack)
Check the result item level. |
void |
clear()
Clear all conditions from this selection. |
boolean |
evaluate(Object values)
Evaluate the condition group with a give object array. |
protected boolean |
evaluate0(Object[] values)
Evaluate the condition group with a given object array. |
Object |
getItem(int idx)
Return the item at the specified index. |
boolean |
getNotFoundResult()
Get the option to return true or false when the column of a condition isn't found or value isn't available. |
void |
setNotFoundResult(boolean result)
Set the option to return true or false when the column of a condition isn't found or value isn't available. |
int |
size()
Get the size of the condition group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OR
public static final int AND
| Constructor Detail |
|---|
public XConditionGroup()
| Method Detail |
|---|
public void setNotFoundResult(boolean result)
public boolean getNotFoundResult()
public void addCondition(int col,
XCondition condition,
int level)
col - this column number.condition - the condition to addlevel - the level of the condition will be added
public void addOperator(int junction,
int level)
junction - the junction to use with the condition.level - the level of the junction will be addedpublic void clear()
public int size()
public Object getItem(int idx)
public boolean evaluate(Object values)
values - the object array used for evaluation.protected boolean evaluate0(Object[] values)
values - the object array used for evaluation.
protected boolean calculate(inetsoft.util.Queue queue,
Object[] values)
protected void calcQueueStack(inetsoft.util.Queue queue,
Stack stack,
Object[] values)
protected int checkLevel(int original,
inetsoft.util.Queue queue,
Stack stack)
protected void calcStack(inetsoft.util.Queue queue,
Stack stack,
Object[] values)
protected void calcStackStack(inetsoft.util.Queue queue,
Stack stack,
Object[] values)
protected XConditionGroup.BooleanItem calc(XConditionGroup.BooleanValue i1,
XConditionGroup.Operator op,
XConditionGroup.BooleanValue i2,
inetsoft.util.Queue queue,
Stack stack,
Object[] values)
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||