| | |
| | | public class SchemaTestMatchingRule |
| | | extends EqualityMatchingRule |
| | | { |
| | | // Indicates whether this matching rule should be considered OBSOLETE. |
| | | private boolean isObsolete; |
| | | |
| | | // The matching rule that will do all the real work behind the scenes. |
| | | private CaseIgnoreEqualityMatchingRule caseIgnoreMatchingRule; |
| | | |
| | |
| | | |
| | | caseIgnoreMatchingRule = new CaseIgnoreEqualityMatchingRule(); |
| | | caseIgnoreMatchingRule.initializeMatchingRule(null); |
| | | isObsolete = false; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Creates a new instance of this matching rule with the provided information. |
| | | * |
| | | * @param name The name to use for this matching rule. |
| | | * @param oid The OID to use for this matching rule. |
| | | * @param isObsolete Indicates whether this matching rule should be marked |
| | | * OBSOLETE. |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | public SchemaTestMatchingRule(String name, String oid, boolean isObsolete) |
| | | throws Exception |
| | | { |
| | | super(); |
| | | |
| | | this.name = name; |
| | | this.oid = oid; |
| | | this.isObsolete = isObsolete; |
| | | |
| | | caseIgnoreMatchingRule = new CaseIgnoreEqualityMatchingRule(); |
| | | caseIgnoreMatchingRule.initializeMatchingRule(null); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean isObsolete() |
| | | { |
| | | return isObsolete; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the normalized form of the provided value, which is best suited |
| | | * for efficiently performing matching operations on that value. |
| | | * |