org.ujac.util.table
Class LessRowFilterRule

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

public class LessRowFilterRule
extends BaseRowFilterRule

Name: LessRowFilterRule
Description: Test whether or not the checked fields values are less than the specified value.

Author:
lauerc

Field Summary
 
Fields inherited from class org.ujac.util.table.BaseRowFilterRule
columnIndex, columnName
 
Constructor Summary
LessRowFilterRule(String columnName, Comparable value)
          Constructs a LessRowFilterRule instance with specific attributes.
 
Method Summary
 boolean test(Row row)
          Tests the filter rule for the given row.
 
Methods inherited from class org.ujac.util.table.BaseRowFilterRule
setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LessRowFilterRule

public LessRowFilterRule(String columnName,
                         Comparable value)
Constructs a LessRowFilterRule instance with specific attributes.

Parameters:
table - The table.
columnName - The column name.
value - The value to compare.
Throws:
TableException - In case the given column was not defined.
Method Detail

test

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

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.