public class NormalizingComparator extends LdapComparator<String>
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)
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
|
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, thenComparingLongpublic NormalizingComparator(String oid, Normalizer normalizer, LdapComparator<String> comparator)
normalizer - the Normalizer to normalize values with before comparingcomparator - the underlying comparator to use for comparisonspublic int compare(String o1, String o2)
public void setOid(String oid)
setOid in interface SchemaObjectsetOid in class AbstractSchemaObjectoid - The new OIDpublic void setOnServer()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.