org.apache.directory.api.ldap.model.schema.normalizers
Class NameOrNumericIdNormalizer
java.lang.Object
org.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.NameOrNumericIdNormalizer
- All Implemented Interfaces:
- Serializable, SchemaObject
public class NameOrNumericIdNormalizer
- extends Normalizer
A name or numeric id normalizer. Needs an OID registry to operate properly.
The OID registry is injected into this class after instantiation if a
setRegistries(Registries) method is exposed.
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
| Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification |
| Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlock |
INSTANCE
public static final NameOrNumericIdNormalizer INSTANCE
- A static instance of this normalizer
NameOrNumericIdNormalizer
public NameOrNumericIdNormalizer()
- Creates a new instance of GeneralizedTimeNormalizer.
normalize
public Value<?> normalize(Value<?> value)
throws LdapException
- Gets the normalized value.
- Specified by:
normalize in class Normalizer
- Parameters:
value - the value to normalize. It must *not* be null !
- Returns:
- the normalized form for a value
- Throws:
LdapException - if an error results during normalization
normalize
public String normalize(String value)
throws LdapException
- Gets the normalized value.
- Specified by:
normalize in class Normalizer
- Parameters:
value - the value to normalize. It must *not* be null !
- Returns:
- the normalized form for a value
- Throws:
LdapException - if an error results during normalization
setSchemaManager
public void setSchemaManager(SchemaManager schemaManager)
- Store the SchemaManager in this instance. It may be necessary for some
normalizer which needs to have access to the oidNormalizer Map.
- Overrides:
setSchemaManager in class Normalizer
- Parameters:
schemaManager - the schemaManager to store
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.