public class DefaultMatchingRule<T> extends Object implements MatchingRule<T>
Constructor and Description |
---|
DefaultMatchingRule() |
Modifier and Type | Method and 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(T a,
T b)
Matches two objects.
|
boolean |
matchRegex(T a,
String regex)
Matches value against given regex.
|
T |
normalize(T original)
Returns a normalized version of the value.
|
public static final QName NAME
public QName getName()
MatchingRule
getName
in interface MatchingRule<T>
public boolean isSupported(QName xsdType)
MatchingRule
isSupported
in interface MatchingRule<T>
public boolean match(T a, T b)
MatchingRule
match
in interface MatchingRule<T>
public T normalize(T original)
MatchingRule
normalize
in interface MatchingRule<T>
public boolean matchRegex(T a, String regex)
MatchingRule
matchRegex
in interface MatchingRule<T>
Copyright © 2019 Evolveum. All rights reserved.