Style Intelligence v12.0

inetsoft.uql
Class XConditionGroup

java.lang.Object
  extended by inetsoft.uql.XConditionGroup
Direct Known Subclasses:
ConditionGroup

public class XConditionGroup
extends Object

A ConditionGroup stores a list of conditions to be applied to the resulting data.

Since:
10.3

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

OR

public static final int OR
Flag indicating that a given condition should be or'ed to the associated column.

See Also:
Constant Field Values

AND

public static final int AND
Flag indicating that a given condition should be and'ed to the associated column.

See Also:
Constant Field Values
Constructor Detail

XConditionGroup

public XConditionGroup()
Method Detail

setNotFoundResult

public 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.


getNotFoundResult

public boolean getNotFoundResult()
Get the option to return true or false when the column of a condition isn't found or value isn't available.


addCondition

public void addCondition(int col,
                         XCondition condition,
                         int level)
Associate a filter condition with the specified column.

Parameters:
col - this column number.
condition - the condition to add
level - the level of the condition will be added

addOperator

public void addOperator(int junction,
                        int level)
Associate a junction with the condition around this junction.

Parameters:
junction - the junction to use with the condition.
level - the level of the junction will be added

clear

public void clear()
Clear all conditions from this selection.


size

public int size()
Get the size of the condition group.


getItem

public Object getItem(int idx)
Return the item at the specified index.


evaluate

public boolean evaluate(Object values)
Evaluate the condition group with a give object array.

Parameters:
values - the object array used for evaluation.

evaluate0

protected boolean evaluate0(Object[] values)
Evaluate the condition group with a given object array.

Parameters:
values - the object array used for evaluation.

calculate

protected boolean calculate(inetsoft.util.Queue queue,
                            Object[] values)
Calculate the condition group.


calcQueueStack

protected void calcQueueStack(inetsoft.util.Queue queue,
                              Stack stack,
                              Object[] values)
Calculate conditions from queue and stack and put to queue.


checkLevel

protected int checkLevel(int original,
                         inetsoft.util.Queue queue,
                         Stack stack)
Check the result item level.


calcStack

protected void calcStack(inetsoft.util.Queue queue,
                         Stack stack,
                         Object[] values)
Calculate conditions from stack and put to queue.


calcStackStack

protected void calcStackStack(inetsoft.util.Queue queue,
                              Stack stack,
                              Object[] values)
Calculate conditions from stack and put back to stack.


calc

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.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.