org.apache.directory.shared.ldap.schema.comparators
Class UniqueMemberComparator
java.lang.Object
org.apache.directory.shared.ldap.schema.AbstractSchemaObject
org.apache.directory.shared.ldap.schema.LoadableSchemaObject
org.apache.directory.shared.ldap.schema.LdapComparator<String>
org.apache.directory.shared.ldap.schema.comparators.UniqueMemberComparator
- All Implemented Interfaces:
- Serializable, Comparator<String>, SchemaObject
public class UniqueMemberComparator
- extends LdapComparator<String>
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.
- Version:
- $Rev$
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
| Methods inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject |
addExtension, addName, addToRegistries, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setRegistries, setSchemaName, setSpecification |
UniqueMemberComparator
public UniqueMemberComparator(String oid)
- The IntegerOrderingComparator constructor. Its OID is the IntegerOrderingMatch matching
rule OID.
compare
public int compare(String dnstr0,
String dnstr1)
- Implementation of the Compare method
setSchemaManager
public void setSchemaManager(SchemaManager schemaManager)
- Store the SchemaManager in this instance. It may be necessary for some
comparator which needs to have access to the oidNormalizer Map.
- Overrides:
setSchemaManager in class LdapComparator<String>
- Parameters:
schemaManager - the schemaManager to store
getDn
public DN getDn(Object obj)
throws NamingException
- Throws:
NamingException
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.