org.apache.directory.api.ldap.model.schema.normalizers
Class DefaultStringNormalizer
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.DefaultStringNormalizer
- All Implemented Interfaces:
- Serializable, SchemaObject
public class DefaultStringNormalizer
- extends Normalizer
A normalizer which transforms an escape sequence into an internal
canonical form: into UTF-8 characters presuming the escape sequence
fits that range. This is used explicity for non-binary attribute
types only.
- 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 |
DefaultStringNormalizer
protected DefaultStringNormalizer()
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
normalizeString
public static String normalizeString(String string)
throws LdapException
- Normalize the given String
- Parameters:
string - The string to normalize
- Returns:
- The normalized object
- Throws:
LdapException - If the normalization throws an error
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.