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 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(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, 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, 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 Normalizer normalizer
private LdapComparator<String> comparator
private boolean onServer
public 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–2017 The Apache Software Foundation. All rights reserved.