Package com.ibm.di.server.criteria
Class DefaultSearchCriteriaMatcher
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description 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
Constructors Constructor Description DefaultSearchCriteriaMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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
-
-
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 interfaceSearchCriteriaMatcher
- Parameters:
entry
- the actual entry to matchsc
- 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 interfaceSearchCriteriaMatcher
- Parameters:
entry
- the actual entry to matchsc
- the criteria definitioncustomize
- 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.
-
-