public class NormalizingComparator extends LdapComparator<java.lang.String>
| Modifier and Type | Field and Description |
|---|---|
private LdapComparator<java.lang.String> |
comparator
the underlying comparator to use for comparisons
|
private static org.slf4j.Logger |
LOG
A logger for this class
|
private Normalizer |
normalizer
the Normalizer to normalize values with before comparing
|
private boolean |
onServer |
private static long |
serialVersionUID
The serial version UID
|
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification| Constructor and Description |
|---|
NormalizingComparator(java.lang.String oid,
Normalizer normalizer,
LdapComparator<java.lang.String> comparator)
A comparator which normalizes a value first before comparing them.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.String o1,
java.lang.String o2)
If any normalization attempt fails we compare using the unnormalized
object.
|
void |
setOid(java.lang.String oid)
A special method used when renaming an SchemaObject: we may have to
change it's OID
|
void |
setOnServer()
tells that the normalizingComparator should not normalize values which are
already normalized on the server
|
equals, setSchemaManager, toStringcopy, getBytecode, getFqcn, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setReadOnly, setSchemaName, setSpecification, unlockprivate static final long serialVersionUID
private static final org.slf4j.Logger LOG
private Normalizer normalizer
private LdapComparator<java.lang.String> comparator
private boolean onServer
public NormalizingComparator(java.lang.String oid,
Normalizer normalizer,
LdapComparator<java.lang.String> comparator)
normalizer - the Normalizer to normalize values with before comparingcomparator - the underlying comparator to use for comparisonspublic int compare(java.lang.String o1,
java.lang.String o2)
public void setOid(java.lang.String oid)
setOid in interface SchemaObjectsetOid in class AbstractSchemaObjectoid - The new OIDpublic void setOnServer()