com.fdsapi.arrays
Interface Conditional

All Known Subinterfaces:
ConditionalComposite
All Known Implementing Classes:
ConditionalBase, ConditionalCompositeContainer, ConditionalCompositeImp, ConditionalIn, ConditionalRE, NegateConditional, NullConditional

public interface Conditional

Interface for conditional logic. Conditionals are analagous to each conditional in a SQL select 'where clause'. For example lname='souza'. Conditionals return true or false. The Conditional's isTrue(...) method is passed a row of a 2 dimensional array and the method returns true if the row should be kept.

Conditionals are similar to a where clause in a select statement. i.e. where col1=5. In this case the isTrue method would compare column1 to the value 5.



View Code


Method Summary
 java.lang.String getType()
          This method returns information about what action/type the conditional takes.
 boolean isTrue(java.lang.Object[] row)
          Pass in one row of an Object[][] array and the implementation of isTrue(...) returns true if the row should be kept and false otherwise
 

Method Detail

isTrue

public boolean isTrue(java.lang.Object[] row)
Pass in one row of an Object[][] array and the implementation of isTrue(...) returns true if the row should be kept and false otherwise


getType

public java.lang.String getType()
This method returns information about what action/type the conditional takes. Examples are <,>,=, like and not like