public final class MatchingRuleUse extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MatchingRuleUse.Builder
A fluent API for incrementally constructing matching rule uses.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns
true if the provided object is a matching rule use having
the same numeric OID as this matching rule use. |
Set<AttributeType> |
getAttributes()
Returns an unmodifiable set containing the attributes associated with
this matching rule use.
|
String |
getDescription()
Returns the description of this schema element, or the empty string if it does not have a description.
|
Map<String,List<String>> |
getExtraProperties()
Returns an unmodifiable map containing all of the extra properties associated with this schema element.
|
MatchingRule |
getMatchingRule()
Returns the matching rule for this matching rule use.
|
String |
getMatchingRuleOid()
Returns the matching rule OID for this schema definition.
|
String |
getNameOrOid()
Returns the name or matching rule OID for this schema definition.
|
List<String> |
getNames()
Returns an unmodifiable list containing the user-defined names that may
be used to reference this schema definition.
|
boolean |
hasAttribute(AttributeType attributeType)
Indicates whether the provided attribute type is referenced by this
matching rule use.
|
int |
hashCode()
Returns the hash code for this matching rule use.
|
boolean |
hasName(String name)
Indicates whether this schema definition has the specified name.
|
boolean |
hasNameOrOid(String value)
Indicates whether this schema definition has the specified name or
matching rule OID.
|
boolean |
isObsolete()
Indicates whether this schema definition is declared "obsolete".
|
String |
toString()
Returns the string representation of this schema element as defined in
RFC 2252.
|
public boolean equals(Object o)
true
if the provided object is a matching rule use having
the same numeric OID as this matching rule use.o
- The object to be compared.true
if the provided object is a matching rule use having
the same numeric OID as this matching rule use.public Set<AttributeType> getAttributes()
public MatchingRule getMatchingRule()
public String getMatchingRuleOid()
public String getNameOrOid()
public List<String> getNames()
public boolean hasAttribute(AttributeType attributeType)
attributeType
- The attribute type for which to make the determination.true
if the provided attribute type is referenced by this
matching rule use, or false
if it is not.public int hashCode()
public boolean hasName(String name)
name
- The name for which to make the determination.true
if the specified name is assigned to this
schema definition, or false
if not.public boolean hasNameOrOid(String value)
value
- The value for which to make the determination.true
if the provided value matches the OID or one of
the names assigned to this schema definition, or
false
if not.public boolean isObsolete()
true
if this schema definition is declared
"obsolete", or false
if not.public final String getDescription()
SchemaElement
getDescription
in interface SchemaElement
public final Map<String,List<String>> getExtraProperties()
SchemaElement
getExtraProperties
in interface SchemaElement
Copyright 2010-2022 ForgeRock AS.