Class PolyStringNormMatchingRule
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.match.PolyStringNormMatchingRule
-
- All Implemented Interfaces:
MatchingRule<PolyString>
public class PolyStringNormMatchingRule extends Object implements MatchingRule<PolyString>
- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description PolyStringNormMatchingRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QName
getName()
QName that identifies the rule.boolean
isSupported(QName xsdType)
Returns true if the rule can be applied to the specified XSD type.boolean
match(PolyString a, PolyString b)
Matches two objects.boolean
matchRegex(PolyString a, String regex)
Matches value against given regex.PolyString
normalize(PolyString original)
Returns a normalized version of the value.
-
-
-
Method Detail
-
getName
public QName getName()
Description copied from interface:MatchingRule
QName that identifies the rule. This QName may be used to refer to this specific matching rule, it is an matching rule identifier.- Specified by:
getName
in interfaceMatchingRule<PolyString>
-
isSupported
public boolean isSupported(QName xsdType)
Description copied from interface:MatchingRule
Returns true if the rule can be applied to the specified XSD type.- Specified by:
isSupported
in interfaceMatchingRule<PolyString>
-
match
public boolean match(PolyString a, PolyString b)
Description copied from interface:MatchingRule
Matches two objects.- Specified by:
match
in interfaceMatchingRule<PolyString>
-
normalize
public PolyString normalize(PolyString original)
Description copied from interface:MatchingRule
Returns a normalized version of the value. For normalized version the following holds: if A matches B then normalize(A) == normalize(B)- Specified by:
normalize
in interfaceMatchingRule<PolyString>
-
matchRegex
public boolean matchRegex(PolyString a, String regex)
Description copied from interface:MatchingRule
Matches value against given regex.- Specified by:
matchRegex
in interfaceMatchingRule<PolyString>
-
-