com.simba.dsi.dataengine.filters
Class StringFilter

java.lang.Object
  extended by com.simba.dsi.dataengine.filters.StringFilter
All Implemented Interfaces:
IFilter

public class StringFilter
extends java.lang.Object
implements IFilter

An implementation of IFilter which provides filtering on strings.


Constructor Summary
StringFilter(MetadataSourceColumnTag columnTag, java.lang.String value)
          Constructor.
StringFilter(MetadataSourceColumnTag columnTag, java.lang.String value, boolean caseInsensitive)
          Constructor.
 
Method Summary
 boolean filter(DataWrapper data)
          Checks the specified data against the filter.
 MetadataSourceColumnTag getColumnTag()
          Get the metadata source column tag associated with the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringFilter

public StringFilter(MetadataSourceColumnTag columnTag,
                    java.lang.String value,
                    boolean caseInsensitive)
Constructor.

Parameters:
columnTag - The column to filter on.
value - The value to use in filtering.
caseInsensitive - Defines case insensitivity.

StringFilter

public StringFilter(MetadataSourceColumnTag columnTag,
                    java.lang.String value)
Constructor.

Parameters:
columnTag - The column to filter on.
value - The value to use in filtering.
Method Detail

filter

public boolean filter(DataWrapper data)
Checks the specified data against the filter.

Specified by:
filter in interface IFilter
Parameters:
data - The data to check against the filter.
Returns:
true if the filter is satisfied; false otherwise.
See Also:
DataWrapper

getColumnTag

public MetadataSourceColumnTag getColumnTag()
Get the metadata source column tag associated with the filter.

Specified by:
getColumnTag in interface IFilter
Returns:
The metadata source column tag associated with the filter.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.