com.ibm.di.server.criteria
Class DefaultSearchCriteriaMatcher

java.lang.Object
  extended by com.ibm.di.server.criteria.DefaultSearchCriteriaMatcher
All Implemented Interfaces:
SearchCriteriaMatcher

public class DefaultSearchCriteriaMatcher
extends java.lang.Object
implements SearchCriteriaMatcher

A default implementation which is performing criteria matches according to the attribute value's type.

Note: This class is for internal usage only. Any dependency from the end-user will not be supported. Changes to this class will happen without a warning.

Since:
7.2

Field Summary
static java.lang.String MATCH_ALL_NAMES
          The key in the map of customizers which this class will interpret as instruction to use the provided customizer for all value matches.
 
Constructor Summary
DefaultSearchCriteriaMatcher()
           
 
Method Summary
 boolean getCaseSensitive()
           
 boolean match(Entry entry, SearchCriteria sc)
          Matches the specified entry against the defined search criteria using the default mechanism.
 boolean match(Entry entry, SearchCriteria sc, java.util.Map<java.lang.String,MatchCustomizer> customize)
          Matches specified entry against the defined search criteria using the specified customization mechanism.
 void setCaseSensitive(boolean caseSensitive)
          Set flag used to determinate case sensitivity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MATCH_ALL_NAMES

public static final java.lang.String MATCH_ALL_NAMES
The key in the map of customizers which this class will interpret as instruction to use the provided customizer for all value matches.

See Also:
Constant Field Values
Constructor Detail

DefaultSearchCriteriaMatcher

public DefaultSearchCriteriaMatcher()
Method Detail

match

public boolean match(Entry entry,
                     SearchCriteria sc)
Description copied from interface: SearchCriteriaMatcher
Matches the specified entry against the defined search criteria using the default mechanism.

Specified by:
match in interface SearchCriteriaMatcher
Parameters:
entry - the actual entry to match
sc - the criteria definition
Returns:
true if the entry matches the defined search criteria

match

public boolean match(Entry entry,
                     SearchCriteria sc,
                     java.util.Map<java.lang.String,MatchCustomizer> customize)
Description copied from interface: SearchCriteriaMatcher
Matches specified entry against the defined search criteria using the specified customization mechanism.

Specified by:
match in interface SearchCriteriaMatcher
Parameters:
entry - the actual entry to match
sc - the criteria definition
customize - a map containing the name of the attributes for which a customization should be applied. A match-all * can be used to match all attributes.
Returns:

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)
Set flag used to determinate case sensitivity.

Parameters:
caseSensitive - value to be set.

getCaseSensitive

public boolean getCaseSensitive()
Returns:
the case sensitivity flag. The default is false.