com.fdsapi.arrays
Class ConditionalRE

java.lang.Object
  |
  +--com.fdsapi.arrays.ConditionalRE
All Implemented Interfaces:
Conditional

public class ConditionalRE
extends java.lang.Object
implements Conditional

Conditional that compares a column value against a RegularExpression and returns true if they match.

View Code


Constructor Summary
ConditionalRE(int col, java.lang.Object reString)
          Creates a new instance of ConditionalRE comparing the passed in column against the String representation of the passed in object.
 
Method Summary
 java.lang.String getType()
          used to create a String represenation of this object.
 boolean isTrue(java.lang.Object[] row)
          Returns true if the column value matches the RegularExpression passed into the constructor.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConditionalRE

public ConditionalRE(int col,
                     java.lang.Object reString)
Creates a new instance of ConditionalRE comparing the passed in column against the String representation of the passed in object.

Method Detail

isTrue

public boolean isTrue(java.lang.Object[] row)
Returns true if the column value matches the RegularExpression passed into the constructor. If this method returns true the row will be kept and if it returns false it will not be kept.

Specified by:
isTrue in interface Conditional

getType

public java.lang.String getType()
used to create a String represenation of this object. It returns 'like'

Specified by:
getType in interface Conditional

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object