org.apache.directory.shared.ldap.schema.comparators
Class DeepTrimToLowerCachingNormalizingComparator
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.DeepTrimToLowerCachingNormalizingComparator
- All Implemented Interfaces:
- Serializable, Comparator<String>, SchemaObject
public class DeepTrimToLowerCachingNormalizingComparator
- extends LdapComparator<String>
TODO DeepTrimCachingNormalizingComparator.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
|
Method Summary |
int |
compare(String o1,
String o2)
If any normalization attempt fails we compare using the unnormalized
object. |
void |
setOid(String oid)
Makes sure we update the oid property of the contained normalizer and
comparator. |
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, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setReadOnly, setRegistries, setSchemaName, setSpecification |
DeepTrimToLowerCachingNormalizingComparator
public DeepTrimToLowerCachingNormalizingComparator(String oid)
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
compare
public int compare(String o1,
String o2)
- If any normalization attempt fails we compare using the unnormalized
object.
- See Also:
Comparator.compare(Object, Object)
setOid
public void setOid(String oid)
- 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 object identifier
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.