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
|
description, 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 |
setRegistries(Registries registries)
Inject the Registries into the SchemaObject
|
void |
setSchemaManager(SchemaManager schemaManager)
Sets the SchemaManager
|
equals, toString
copy, getBytecode, getFqcn, isValid, registerOid, setBytecode, setFqcn
addExtension, addName, addToRegistries, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setReadOnly, setSchemaName, setSpecification
public 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 SchemaObject
getOid
in class AbstractSchemaObject
public void setOid(String oid)
setOid
in interface SchemaObject
setOid
in class AbstractSchemaObject
oid
- the object identifier to setpublic Value<?> normalize(Value<?> value) throws LdapException
normalize
in class Normalizer
value
- 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 Normalizer
value
- the value to normalize. It must *not* be null !LdapException
- if an error results during normalizationpublic void setRegistries(Registries registries)
setRegistries
in interface SchemaObject
setRegistries
in class AbstractSchemaObject
registries
- The Registriespublic void setSchemaManager(SchemaManager schemaManager)
setSchemaManager
in class Normalizer
schemaManager
- The SchemaManagerCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.