@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public final class MatchingRuleUse extends Object implements SchemaFileElement
Constructor and Description |
---|
MatchingRuleUse(String definition,
org.forgerock.opendj.ldap.schema.MatchingRule matchingRule,
Map<String,String> names,
String description,
boolean isObsolete,
Set<AttributeType> attributes,
Map<String,List<String>> extraProperties)
Creates a new matching rule use definition with the provided
information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Indicates whether the provided object is equal to this matching
rule use.
|
Set<AttributeType> |
getAttributes()
Retrieves the set of attributes associated with this matching
rule use.
|
String |
getDescription()
Retrieves the description for this matching rule use.
|
Map<String,List<String>> |
getExtraProperties()
Retrieves a mapping between the names of any extra non-standard
properties that may be associated with this matching rule use and
the value for that property.
|
org.forgerock.opendj.ldap.schema.MatchingRule |
getMatchingRule()
Retrieves the matching rule for this matching rule use.
|
String |
getNameOrOID()
Retrieves the primary name to use when referencing this matching
rule use.
|
Map<String,String> |
getNames()
Retrieves the set of names for this matching rule use.
|
int |
hashCode()
Retrieves the hash code for this matching rule use.
|
boolean |
hasName(String lowerName)
Indicates whether this matching rule use has the specified name.
|
boolean |
isObsolete()
Indicates whether this matching rule use is declared "obsolete".
|
String |
toString()
Retrieves the string representation of this matching rule use in
the form specified in RFC 2252.
|
public MatchingRuleUse(String definition, org.forgerock.opendj.ldap.schema.MatchingRule matchingRule, Map<String,String> names, String description, boolean isObsolete, Set<AttributeType> attributes, Map<String,List<String>> extraProperties)
definition
- The definition string used to create
this matching rule use. It must not be
null
.matchingRule
- The matching rule for this matching rule
use. It must not be null
.names
- The set of names for this matching rule
use.description
- The description for this matching rule
use.isObsolete
- Indicates whether this matching rule use
is declared "obsolete".attributes
- The set of attribute types for this
matching rule use.extraProperties
- A set of "extra" properties that may be
associated with this matching rule use.public org.forgerock.opendj.ldap.schema.MatchingRule getMatchingRule()
public Map<String,String> getNames()
public String getNameOrOID()
null
if there is none.public boolean hasName(String lowerName)
lowerName
- The name for which to make the determination,
formatted in all lowercase characters.true
if this matching rule use has the specified
name, or false
if not.public String getDescription()
null
if there is none.public boolean isObsolete()
true
if this matching rule use is declared
"obsolete", or false
if it is not.public Set<AttributeType> getAttributes()
public Map<String,List<String>> getExtraProperties()
getExtraProperties
in interface SchemaFileElement
public boolean equals(Object o)
public int hashCode()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.