public class MatchingRuleUse extends AbstractSchemaObject
According to ldapbis [MODELS]:
Values of the matchingRuleUse list the attributes which are suitable
for use with an extensible matching rule.
Matching rule use descriptions are written according to the following
ABNF:
MatchingRuleUseDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "APPLIES" SP oids ; attribute types
extensions WSP RPAREN ; extensions
where:
[numericoid] is the object identifier of the matching rule
associated with this matching rule use description;
NAME [qdescrs] are short names (descriptors) identifying this
matching rule use;
DESC [qdstring] is a short descriptive string;
OBSOLETE indicates this matching rule use is not active;
APPLIES provides a list of attribute types the matching rule applies
to; and
[extensions] describe extensions.
The matchingRule within the MatchingRuleUse definition can be used by an
extensible match assertion if the assertion is based on the attributes
listed within the MatchingRuleUse definition. If an extensible match
assertion is based on attributes other than those listed within the
MatchingRuleUse definition then the assertion is deemed undefined.
Also according to 3.3.20 of [SYNTAXES] (ldapbis working group):
A value of the Matching Rule Use Description syntax indicates the
attribute types to which a matching rule may be applied in an
extensibleMatch search filter [PROT]. The LDAP-specific encoding of
a value of this syntax is defined by the <MatchingRuleUseDescription>
rule in [MODELS] above.
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification| Constructor and Description |
|---|
MatchingRuleUse(String oid)
Creates a new instance of MatchingRuleUseDescription
|
| Modifier and Type | Method and Description |
|---|---|
void |
addApplicableAttribute(AttributeType attributeType)
Add a matchingRule's AttributeType the MRU applies to.
|
void |
addApplicableAttributeOids(String oid)
Add a matchingRule's AttributeType OIDs the MRU applies to.
|
void |
addToRegistries(Registries registries)
Inject the MatchingRuleUse into the registries, updating the references to
other SchemaObject
|
void |
clear()
Clear the current SchemaObject : remove all the references to other objects,
and all the Maps.
|
MatchingRuleUse |
copy()
Copy an MatchingRuleUse
|
boolean |
equals(Object o) |
List<String> |
getApplicableAttributeOids() |
List<AttributeType> |
getApplicableAttributes() |
void |
setApplicableAttributeOids(List<String> applicableAttributeOids)
Set the matchingRule's AttributeType OIDs the MRU applies to.
|
void |
setApplicableAttributes(List<AttributeType> applicableAttributes)
Set the matchingRule's AttributeType the MRU applies to.
|
String |
toString() |
addExtension, addName, addToRegistries, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, registerOid, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setRegistries, setSchemaName, setSpecificationpublic MatchingRuleUse(String oid)
public void addToRegistries(Registries registries) throws LdapException
registries - The RegistriesIf - the addition failedLdapExceptionpublic List<String> getApplicableAttributeOids()
public List<AttributeType> getApplicableAttributes()
public void setApplicableAttributeOids(List<String> applicableAttributeOids)
applicableAttributes - The AttributeType OIDs listpublic void setApplicableAttributes(List<AttributeType> applicableAttributes)
applicableAttributes - The AttributeType listpublic void addApplicableAttributeOids(String oid)
oid - A matchingRule's AttributeType OIDs the MRU applies topublic void addApplicableAttribute(AttributeType attributeType)
oid - A matchingRule's AttributeType the MRU applies topublic String toString()
toString in class ObjectObject.toString()public MatchingRuleUse copy()
copy in interface SchemaObjectcopy in class AbstractSchemaObjectpublic boolean equals(Object o)
equals in interface SchemaObjectequals in class AbstractSchemaObjectObject.equals(Object)public void clear()
clear in interface SchemaObjectclear in class AbstractSchemaObjectCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.