public class MutableMatchingRule extends MatchingRule
According to ldapbis [MODELS]:
4.1.3. Matching Rules Matching rules are used by servers to compare attribute values against assertion values when performing Search and Compare operations. They are also used to identify the value to be added or deleted when modifying entries, and are used when comparing a purported distinguished name with the name of an entry. A matching rule specifies the syntax of the assertion value. Each matching rule is identified by an object identifier (OID) and, optionally, one or more short names (descriptors). Matching rule definitions are written according to the ABNF: MatchingRuleDescription = LPAREN WSP numericoid ; object identifier [ SP "NAME" SP qdescrs ] ; short names (descriptors) [ SP "DESC" SP qdstring ] ; description [ SP "OBSOLETE" ] ; not active SP "SYNTAX" SP numericoid ; assertion syntax extensions WSP RPAREN ; extensions where: [numericoid] is object identifier assigned to this matching rule; NAME [qdescrs] are short names (descriptors) identifying this matching rule; DESC [qdstring] is a short descriptive string; OBSOLETE indicates this matching rule is not active; SYNTAX identifies the assertion syntax by object identifier; and [extensions] describe extensions.
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID
The mandatory serialVersionUID
|
Constructor and Description |
---|
MutableMatchingRule(String oid)
Creates a new instance of MatchingRule.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the current SchemaObject : remove all the references to other objects,
and all the Maps.
|
void |
setLdapComparator(LdapComparator<?> ldapComparator)
Sets the LdapComparator
|
void |
setNormalizer(Normalizer normalizer)
Sets the Normalizer
|
void |
setSyntax(LdapSyntax ldapSyntax)
Sets the Syntax
|
void |
setSyntaxOid(String oid)
Sets the Syntax's OID
|
void |
updateLdapComparator(LdapComparator<?> ldapComparator)
Update the associated Comparator, even if the SchemaObject is readOnly
|
void |
updateNormalizer(Normalizer normalizer)
Update the associated Normalizer, even if the SchemaObject is readOnly
|
void |
updateSyntax(LdapSyntax ldapSyntax)
Update the associated Syntax, even if the SchemaObject is readOnly
|
copy, equals, getLdapComparator, getNormalizer, getSyntax, getSyntaxOid, toString
addExtension, addExtension, addName, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlock
public static final long serialVersionUID
public MutableMatchingRule(String oid)
oid
- The MatchingRule OIDpublic void setSyntaxOid(String oid)
oid
- The Syntax's OIDpublic void setSyntax(LdapSyntax ldapSyntax)
ldapSyntax
- The Syntaxpublic void updateSyntax(LdapSyntax ldapSyntax)
ldapSyntax
- The Syntaxpublic void setLdapComparator(LdapComparator<?> ldapComparator)
ldapComparator
- The LdapComparatorpublic void updateLdapComparator(LdapComparator<?> ldapComparator)
ldapComparator
- The LdapComparatorpublic void setNormalizer(Normalizer normalizer)
normalizer
- The Normalizerpublic void updateNormalizer(Normalizer normalizer)
normalizer
- The Normalizerpublic void clear()
clear
in interface SchemaObject
clear
in class AbstractSchemaObject
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.