Style Intelligence v12.0

inetsoft.report.filter
Class ConditionGroup

java.lang.Object
  extended by inetsoft.uql.XConditionGroup
      extended by inetsoft.report.filter.ConditionGroup
All Implemented Interfaces:
Serializable, Cloneable

public class ConditionGroup
extends XConditionGroup
implements Cloneable, Serializable

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

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class inetsoft.uql.XConditionGroup
XConditionGroup.BooleanItem, XConditionGroup.BooleanValue, XConditionGroup.CondItem, XConditionGroup.Operator
 
Field Summary
protected  int[][] colmap
           
protected  Vector fieldmap
           
protected  boolean hasField
           
protected static int THIS_FIELD
           
 
Fields inherited from class inetsoft.uql.XConditionGroup
AND, OR
 
Constructor Summary
ConditionGroup()
          Construct a new instance of Condition Group.
ConditionGroup(ConditionList list)
          Construct a new instance of Condition Group.
ConditionGroup(ConditionList list, Map cidx)
           
ConditionGroup(int colidx, ConditionList list)
          Construct a new instance of Condition Group.
ConditionGroup(int colidx, ConditionList list, Object box)
          Construct a new instance of Condition Group.
ConditionGroup(TableLens table, ConditionList list)
          Construct a new instance of Condition Group.
ConditionGroup(TableLens table, ConditionList list, Object box)
          Construct a new instance of Condition Group.
 
Method Summary
 void addCondition(int col, XCondition condition, int level)
          Associate a filter condition with the specified column.
 boolean evaluate(Object[] values)
          Evaluate the condition group with a give object array.
 boolean evaluate(TableLens lens, int row)
          Evalu-ate the condition group with a specified table lens row.
 boolean evaluate(TableLens lens, int row, int col)
          Evalu-ate the condition group with a specified table lens row.
protected  int findColumn(XTable table, DataRef attr)
          Find column index.
protected  Object getExpressionVal(ExpressionValue eval, inetsoft.report.composition.execution.AssetQuerySandbox box, DataRef attr, String type)
          Get the value when condition value is ExpressionValue.
protected  Object getScriptValue(Object val, String type)
          Get the script value object.
protected  void normalConditionVal(AssetCondition acond, inetsoft.report.composition.execution.AssetQuerySandbox box, DataRef attr, String type)
          Get the value for condition when the condition value is ExpressionValue.
protected  void normalExpressionVal(DataRef attr, XCondition xcon)
          Get the value when condition value is ExpressionValue.
 void normalExpressionVal(DataRef attr, XCondition xcon, Object box)
          Get the value when condition value is ExpressionValue.
 
Methods inherited from class inetsoft.uql.XConditionGroup
addOperator, calc, calcQueueStack, calcStack, calcStackStack, calculate, checkLevel, clear, evaluate, evaluate0, getItem, getNotFoundResult, setNotFoundResult, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THIS_FIELD

protected static final int THIS_FIELD
See Also:
Constant Field Values

hasField

protected boolean hasField

fieldmap

protected Vector fieldmap

colmap

protected transient int[][] colmap
Constructor Detail

ConditionGroup

public ConditionGroup()
Construct a new instance of Condition Group.


ConditionGroup

public ConditionGroup(ConditionList list)
Construct a new instance of Condition Group.


ConditionGroup

public ConditionGroup(int colidx,
                      ConditionList list)
Construct a new instance of Condition Group. The column index is forcely specified.

Parameters:
colidx - the column index.
list - the condition list.

ConditionGroup

public ConditionGroup(ConditionList list,
                      Map cidx)

ConditionGroup

public ConditionGroup(int colidx,
                      ConditionList list,
                      Object box)
Construct a new instance of Condition Group. The column index is forcely specified.

Parameters:
colidx - the column index.
list - the condition list.

ConditionGroup

public ConditionGroup(TableLens table,
                      ConditionList list)
Construct a new instance of Condition Group.


ConditionGroup

public ConditionGroup(TableLens table,
                      ConditionList list,
                      Object box)
Construct a new instance of Condition Group.

Method Detail

findColumn

protected int findColumn(XTable table,
                         DataRef attr)
Find column index.


evaluate

public boolean evaluate(TableLens lens,
                        int row)
Evalu-ate the condition group with a specified table lens row.

Parameters:
lens - the table lens used for evaluation.
row - the row number of the table lens.

evaluate

public boolean evaluate(TableLens lens,
                        int row,
                        int col)
Evalu-ate the condition group with a specified table lens row.

Parameters:
lens - the table lens used for evaluation.
row - the row number of the table lens.
col - the column number of the table lens.

evaluate

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

Parameters:
values - the object array used for evaluation.

addCondition

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

Overrides:
addCondition in class XConditionGroup
Parameters:
col - this column number.
condition - the condition to add
level - the level of the condition will be added

normalExpressionVal

protected void normalExpressionVal(DataRef attr,
                                   XCondition xcon)
Get the value when condition value is ExpressionValue.


normalExpressionVal

public void normalExpressionVal(DataRef attr,
                                XCondition xcon,
                                Object box)
Get the value when condition value is ExpressionValue.


normalConditionVal

protected void normalConditionVal(AssetCondition acond,
                                  inetsoft.report.composition.execution.AssetQuerySandbox box,
                                  DataRef attr,
                                  String type)
Get the value for condition when the condition value is ExpressionValue.

Parameters:
acond - the condition.
box - the specified asset query sandbox.
attr - the attribute for condition.
type - the data type of the value.

getExpressionVal

protected Object getExpressionVal(ExpressionValue eval,
                                  inetsoft.report.composition.execution.AssetQuerySandbox box,
                                  DataRef attr,
                                  String type)
Get the value when condition value is ExpressionValue.

Parameters:
eval - the ExpressionValue.
box - the specified asset query sandbox.
attr - the attribute for condition.
type - the data type of the value.
Returns:
the expression value.

getScriptValue

protected final Object getScriptValue(Object val,
                                      String type)
Get the script value object.

Parameters:
val - the value to be get
type - the data type of the value.
Returns:
the script value.

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