org.apache.directory.api.ldap.model.schema.comparators
Class DeepTrimToLowerCachingNormalizingComparator

java.lang.Object
  extended by org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
      extended by org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
          extended by org.apache.directory.api.ldap.model.schema.LdapComparator<String>
              extended by org.apache.directory.api.ldap.model.schema.comparators.DeepTrimToLowerCachingNormalizingComparator
All Implemented Interfaces:
Serializable, Comparator<String>, SchemaObject

public class DeepTrimToLowerCachingNormalizingComparator
extends LdapComparator<String>

TODO DeepTrimCachingNormalizingComparator.

Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification
 
Constructor Summary
DeepTrimToLowerCachingNormalizingComparator(String oid)
           
 
Method Summary
 int compare(String o1, String o2)
          If any normalization attempt fails we compare using the unnormalized object.
 void setOid(String oid)
          A special method used when renaming an SchemaObject: we may have to change it's OID
 
Methods inherited from class org.apache.directory.api.ldap.model.schema.LdapComparator
equals, setSchemaManager, toString
 
Methods inherited from class org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn
 
Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setReadOnly, setSchemaName, setSpecification, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeepTrimToLowerCachingNormalizingComparator

public DeepTrimToLowerCachingNormalizingComparator(String oid)
Method Detail

compare

public int compare(String o1,
                   String o2)
If any normalization attempt fails we compare using the unnormalized object.


setOid

public void setOid(String oid)
A special method used when renaming an SchemaObject: we may have to change it's OID This implementation makes sure we update the oid property of the contained normalizer and comparator.

Specified by:
setOid in interface SchemaObject
Overrides:
setOid in class AbstractSchemaObject
Parameters:
oid - The new OID


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.