|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.util.table.RowFilterRuleSet
public class RowFilterRuleSet
Name: RowFilterRuleSet
Description: A set of rules which combines table row rules.
Field Summary | |
---|---|
static Integer |
AND
The connector type 'AND'. |
static Integer |
OR
The connector type 'OR'. |
Constructor Summary | |
---|---|
RowFilterRuleSet(RowFilterRule firstRule)
Constructs a RowFilterRuleSet instance with specific attributes. |
Method Summary | |
---|---|
RowFilterRuleSet |
add(Integer connector,
RowFilterRule rule)
Adds another rule to the connector. |
void |
setup(Table table)
Sets up the rule. |
boolean |
test(Row row)
Tests the filter rule for the given row. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Integer AND
public static final Integer OR
Constructor Detail |
---|
public RowFilterRuleSet(RowFilterRule firstRule)
firstRule
- The first rule to adds.Method Detail |
---|
public RowFilterRuleSet add(Integer connector, RowFilterRule rule)
connector
- The connector (AND/OR).rule
- The rule to add
public void setup(Table table) throws TableException
setup
in interface RowFilterRule
table
- The table for which set up the rule.
TableException
- In case a table handling failure occurred.public boolean test(Row row) throws TableException
RowFilterRule
test
in interface RowFilterRule
row
- The row to test.
TableException
- In case a table handling failure occurred.RowFilterRule.test(org.ujac.util.table.Row)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |