public class NormalizingComparator extends LdapComparator<String>
| Modifier and Type | Field and Description |
|---|---|
private LdapComparator<String> |
comparator
the underlying comparator to use for comparisons
|
private static org.slf4j.Logger |
LOG
A logger for this class
|
private boolean |
onServer |
private static long |
serialVersionUID
The serial version UID
|
normalizerdescription, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification| Constructor and Description |
|---|
NormalizingComparator(String oid)
The NormalizingComparator constructor.
|
NormalizingComparator(String oid,
Normalizer normalizer,
LdapComparator<String> comparator)
A comparator which normalizes a value first before comparing them.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String o1,
String o2) |
void |
setOid(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, getNormalizer, hashCode, setSchemaManager, toStringcopy, getBytecode, getFqcn, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, computeHashCode, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setSchemaName, setSpecification, unlockclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprivate static final long serialVersionUID
private static final org.slf4j.Logger LOG
private LdapComparator<String> comparator
private boolean onServer
public NormalizingComparator(String oid)
oid - The Comparator's OIDpublic NormalizingComparator(String oid, Normalizer normalizer, LdapComparator<String> comparator)
oid - The Comparator's OIDnormalizer - the Normalizer to normalize values with before comparingcomparator - the underlying comparator to use for comparisonspublic void setOid(String oid)
setOid in interface SchemaObjectsetOid in class AbstractSchemaObjectoid - The new OIDpublic void setOnServer()
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.