|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.schema.AbstractSchemaObject
org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
org.apache.directory.api.ldap.model.schema.Normalizer
org.apache.directory.api.ldap.model.schema.normalizers.CachingNormalizer
public class CachingNormalizer
Caches previously normalized values.
| Field Summary | |
|---|---|
static int |
CACHE_MAX
Cache maximum size default |
protected Normalizer |
normalizer
The underlying decorated Normalizer |
| Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
|---|
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.apache.directory.api.ldap.model.schema.Normalizer |
|---|
equals, toString |
| Methods inherited from class org.apache.directory.api.ldap.model.schema.LoadableSchemaObject |
|---|
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn |
| Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
|---|
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setReadOnly, setSchemaName, setSpecification, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CACHE_MAX
protected final Normalizer normalizer
| Constructor Detail |
|---|
public CachingNormalizer(Normalizer normalizer)
normalizer - the underlying Normalizer being decorated
public CachingNormalizer(Normalizer normalizer,
int cacheSz)
normalizer - the underlying Normalizer being decoratedcacheSz - the maximum size of the name cache| Method Detail |
|---|
public String getOid()
getOid in interface SchemaObjectgetOid in class AbstractSchemaObjectpublic void setOid(String oid)
setOid in interface SchemaObjectsetOid in class AbstractSchemaObjectoid - the object identifier to set
public 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 normalization
public 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 SchemaManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||