Class DistinguishedNameMatchingRule
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.match.DistinguishedNameMatchingRule
-
- All Implemented Interfaces:
MatchingRule<String>
public class DistinguishedNameMatchingRule extends Object implements MatchingRule<String>
Matching rule for LDAP distinguished name (DN).- Author:
- Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description DistinguishedNameMatchingRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QName
getName()
QName that identifies the rule.boolean
match(String a, String b)
Matches two objects.boolean
matchRegex(String a, String regex)
Matches value against given regex.String
normalize(String original)
Returns a normalized version of the value.boolean
supports(QName xsdType)
Returns true if the rule can be applied to the specified XSD type.String
toString()
-
-
-
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<String>
-
supports
public boolean supports(QName xsdType)
Description copied from interface:MatchingRule
Returns true if the rule can be applied to the specified XSD type.- Specified by:
supports
in interfaceMatchingRule<String>
-
match
public boolean match(String a, String b) throws SchemaException
Description copied from interface:MatchingRule
Matches two objects.- Specified by:
match
in interfaceMatchingRule<String>
- Throws:
SchemaException
-
normalize
public String normalize(String original) throws SchemaException
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<String>
- Throws:
SchemaException
-
matchRegex
public boolean matchRegex(String a, String regex) throws SchemaException
Description copied from interface:MatchingRule
Matches value against given regex.- Specified by:
matchRegex
in interfaceMatchingRule<String>
- Throws:
SchemaException
-
-