Class StringIgnoreCaseMatchingRule
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.match.StringIgnoreCaseMatchingRule
-
- All Implemented Interfaces:
MatchingRule<String>
public class StringIgnoreCaseMatchingRule extends Object implements MatchingRule<String>
String matching rule that ignores the case.- Author:
- Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description StringIgnoreCaseMatchingRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QNamegetName()QName that identifies the rule.booleanmatch(String a, String b)Matches two objects.booleanmatchRegex(String a, String regex)Matches value against given regex.Stringnormalize(String original)Returns a normalized version of the value.booleansupports(QName xsdType)Returns true if the rule can be applied to the specified XSD type.StringtoString()
-
-
-
Method Detail
-
getName
public QName getName()
Description copied from interface:MatchingRuleQName that identifies the rule. This QName may be used to refer to this specific matching rule, it is an matching rule identifier.- Specified by:
getNamein interfaceMatchingRule<String>
-
supports
public boolean supports(QName xsdType)
Description copied from interface:MatchingRuleReturns true if the rule can be applied to the specified XSD type.- Specified by:
supportsin interfaceMatchingRule<String>
-
match
public boolean match(String a, String b)
Description copied from interface:MatchingRuleMatches two objects.- Specified by:
matchin interfaceMatchingRule<String>
-
normalize
public String normalize(String original)
Description copied from interface:MatchingRuleReturns a normalized version of the value. For normalized version the following holds: if A matches B then normalize(A) == normalize(B)- Specified by:
normalizein interfaceMatchingRule<String>
-
matchRegex
public boolean matchRegex(String a, String regex)
Description copied from interface:MatchingRuleMatches value against given regex.- Specified by:
matchRegexin interfaceMatchingRule<String>
-
-