org.ujac.util.table
Class ExpressionRowFilterRule

java.lang.Object
  extended by org.ujac.util.table.ExpressionRowFilterRule
All Implemented Interfaces:
RowFilterRule

public class ExpressionRowFilterRule
extends Object
implements RowFilterRule

Name: ExpressionRowFilterRule
Description: Test whether or not the specified expression evaluates true for the processed rows.

Author:
lauerc

Constructor Summary
ExpressionRowFilterRule(ExpressionInterpreter exi, String expression)
          Constructs a LikeRowFilterRule instance with specific attributes.
 
Method Summary
 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
 

Constructor Detail

ExpressionRowFilterRule

public ExpressionRowFilterRule(ExpressionInterpreter exi,
                               String expression)
Constructs a LikeRowFilterRule instance with specific attributes.

Parameters:
exi - The expression interpreter to use.
expression - The expression to process.
Method Detail

setup

public void setup(Table table)
           throws TableException
Sets up the rule.

Specified by:
setup in interface RowFilterRule
Parameters:
table - The table for which set up the rule.
Throws:
TableException - In case the expression tuple could not be evaluated.

test

public boolean test(Row row)
             throws TableException
Description copied from interface: RowFilterRule
Tests the filter rule for the given row.

Specified by:
test in interface RowFilterRule
Parameters:
row - The row to test.
Returns:
true in case the test was successfully passed valid, else false.
Throws:
TableException - In case a table handling failure occurred.
See Also:
RowFilterRule.test(org.ujac.util.table.Row)


Copyright © 2003-2004 UJAC.org. All Rights Reserved.