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<java.lang.String>
org.apache.directory.shared.ldap.schema.comparators.UniqueMemberComparator
- All Implemented Interfaces:
- java.io.Serializable, java.util.Comparator<java.lang.String>, SchemaObject
public class UniqueMemberComparator
- extends LdapComparator<java.lang.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
Fields inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject |
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification |
Method Summary |
int |
compare(java.lang.String dnstr0,
java.lang.String dnstr1)
Implementation of the Compare method |
DN |
getDn(java.lang.Object obj)
|
void |
setSchemaManager(SchemaManager schemaManager)
Store the SchemaManager in this instance. |
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, lock, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setRegistries, setSchemaName, setSpecification |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
UniqueMemberComparator
public UniqueMemberComparator(java.lang.String oid)
- The IntegerOrderingComparator constructor. Its OID is the IntegerOrderingMatch matching
rule OID.
compare
public int compare(java.lang.String dnstr0,
java.lang.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<java.lang.String>
- Parameters:
schemaManager
- the schemaManager to store
getDn
public DN getDn(java.lang.Object obj)
throws LdapInvalidDnException
- Throws:
LdapInvalidDnException
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.