org.apache.directory.api.ldap.model.schema.comparators
Class DeepTrimToLowerCachingNormalizingComparator
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.DeepTrimToLowerCachingNormalizingComparator
- All Implemented Interfaces:
- Serializable, Comparator<String>, SchemaObject
public class DeepTrimToLowerCachingNormalizingComparator
- extends LdapComparator<String>
TODO DeepTrimCachingNormalizingComparator.
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
| Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification |
|
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.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 |
DeepTrimToLowerCachingNormalizingComparator
public DeepTrimToLowerCachingNormalizingComparator(String oid)
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.