|
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
inetsoft.report.filter.ConditionGroup
public class ConditionGroup
A ConditionGroup stores a list of conditions to be applied to the resulting data.
| 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 |
|---|
protected static final int THIS_FIELD
protected boolean hasField
protected Vector fieldmap
protected transient int[][] colmap
| Constructor Detail |
|---|
public ConditionGroup()
public ConditionGroup(ConditionList list)
public ConditionGroup(int colidx,
ConditionList list)
colidx - the column index.list - the condition list.
public ConditionGroup(ConditionList list,
Map cidx)
public ConditionGroup(int colidx,
ConditionList list,
Object box)
colidx - the column index.list - the condition list.
public ConditionGroup(TableLens table,
ConditionList list)
public ConditionGroup(TableLens table,
ConditionList list,
Object box)
| Method Detail |
|---|
protected int findColumn(XTable table,
DataRef attr)
public boolean evaluate(TableLens lens,
int row)
lens - the table lens used for evaluation.row - the row number of the table lens.
public boolean evaluate(TableLens lens,
int row,
int col)
lens - the table lens used for evaluation.row - the row number of the table lens.col - the column number of the table lens.public boolean evaluate(Object[] values)
values - the object array used for evaluation.
public void addCondition(int col,
XCondition condition,
int level)
addCondition in class XConditionGroupcol - this column number.condition - the condition to addlevel - the level of the condition will be added
protected void normalExpressionVal(DataRef attr,
XCondition xcon)
public void normalExpressionVal(DataRef attr,
XCondition xcon,
Object box)
protected void normalConditionVal(AssetCondition acond,
inetsoft.report.composition.execution.AssetQuerySandbox box,
DataRef attr,
String type)
acond - the condition.box - the specified asset query sandbox.attr - the attribute for condition.type - the data type of the value.
protected Object getExpressionVal(ExpressionValue eval,
inetsoft.report.composition.execution.AssetQuerySandbox box,
DataRef attr,
String type)
eval - the ExpressionValue.box - the specified asset query sandbox.attr - the attribute for condition.type - the data type of the value.
protected final Object getScriptValue(Object val,
String type)
val - the value to be gettype - the data type of the value.
|
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 | ||||||||