Class UniqueMemberComparator
java.lang.Object
org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
org.apache.directory.api.ldap.model.schema.LdapComparator<String>
org.apache.directory.api.ldap.model.schema.comparators.UniqueMemberComparator
- All Implemented Interfaces:
Serializable, Comparator<String>, SchemaObject
A comparator that sorts OIDs based on their numeric id value. Needs a
OidRegistry to properly do it's job. Public method to set the oid
registry will be used by the server after instantiation in deserialization.
- Author:
- Apache Directory Project
- See Also:
-
Field Summary
Fields inherited from class LdapComparator
normalizerFields inherited from class AbstractSchemaObject
description, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the DN from the given objectvoidsetSchemaManager(SchemaManager schemaManager) Store the SchemaManager in this instance.Methods inherited from class LdapComparator
equals, getNormalizer, hashCode, toStringMethods inherited from class LoadableSchemaObject
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcnMethods inherited from class AbstractSchemaObject
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, rehash, rehashBase, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlockMethods inherited from interface Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
UniqueMemberComparator
The IntegerComparator constructor. Its OID is the IntegerOrderingMatch matching rule OID.- Parameters:
oid- The Comparator's OID
-
-
Method Details
-
compare
-
setSchemaManager
Store the SchemaManager in this instance. It may be necessary for some comparator which needs to have access to the oidNormalizer Map.- Overrides:
setSchemaManagerin classLdapComparator<String>- Parameters:
schemaManager- the schemaManager to store
-
getDn
Get the DN from the given object- Parameters:
obj- The object containing a DN (either as an instance of Dn or as a String)- Returns:
- A Dn instance
- Throws:
LdapInvalidDnException- If the Dn is invalid
-