com.simba.dsi.dataengine.filters
Class StringPatternFilter

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

public class StringPatternFilter
extends java.lang.Object
implements IFilter

An implementation of IFilter which provides pattern filtering on strings.


Constructor Summary
StringPatternFilter(MetadataSourceColumnTag columnTag, java.lang.String value, java.lang.String escapeChar)
          Constructor.
StringPatternFilter(MetadataSourceColumnTag columnTag, java.lang.String value, java.lang.String escapeChar, boolean isCaseInsensitive)
          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.
 boolean hasPatternFilter()
          Get if the filter has a pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPatternFilter

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

Parameters:
columnTag - The column to filter on.
value - The value to use in filtering.
escapeChar - The character used as an escape.

StringPatternFilter

public StringPatternFilter(MetadataSourceColumnTag columnTag,
                           java.lang.String value,
                           java.lang.String escapeChar,
                           boolean isCaseInsensitive)
Constructor.

Parameters:
columnTag - The column to filter on.
value - The value to use in filtering.
escapeChar - The character used as an escape.
isCaseInsensitive - Is this matcher case insensitive
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.

hasPatternFilter

public boolean hasPatternFilter()
Get if the filter has a pattern.

Returns:
true if there is a pattern; false otherwise.


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