public class CachingNormalizer extends Normalizer
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_MAX
Cache maximum size default
|
protected Normalizer |
normalizer
The underlying decorated Normalizer
|
serialVersionUIDdescription, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification| Constructor and Description |
|---|
CachingNormalizer(Normalizer normalizer)
Creates a CachingNormalizer that decorates another normalizer using a
default cache size.
|
CachingNormalizer(Normalizer normalizer,
int cacheSz)
Creates a CachingNormalizer that decorates another normalizer using a
specified cache size.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getOid()
Overrides default behavior by returning the OID of the wrapped
Normalizer.
|
String |
normalize(String value)
Gets the normalized value.
|
Value<?> |
normalize(Value<?> value)
Gets the normalized value.
|
void |
setOid(String oid)
Overrides default behavior by setting the OID of the wrapped Normalizer.
|
void |
setSchemaManager(SchemaManager schemaManager)
Sets the SchemaManager
|
equals, toStringcopy, getBytecode, getFqcn, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setReadOnly, setSchemaName, setSpecification, unlockpublic static final int CACHE_MAX
protected final Normalizer normalizer
public CachingNormalizer(Normalizer normalizer)
normalizer - the underlying Normalizer being decoratedpublic CachingNormalizer(Normalizer normalizer, int cacheSz)
normalizer - the underlying Normalizer being decoratedcacheSz - the maximum size of the name cachepublic String getOid()
getOid in interface SchemaObjectgetOid in class AbstractSchemaObjectpublic void setOid(String oid)
setOid in interface SchemaObjectsetOid in class AbstractSchemaObjectoid - the object identifier to setpublic Value<?> normalize(Value<?> value) throws LdapException
normalize in class Normalizervalue - the value to normalize. It must *not* be null !LdapException - if an error results during normalizationpublic String normalize(String value) throws LdapException
normalize in class Normalizervalue - the value to normalize. It must *not* be null !LdapException - if an error results during normalizationpublic void setSchemaManager(SchemaManager schemaManager)
setSchemaManager in class NormalizerschemaManager - The SchemaManagerCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.