org.apache.directory.shared.ldap.schema
Interface Normalizer

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BooleanNormalizer, CachingNormalizer, DeepTrimNormalizer, DeepTrimToLowerNormalizer, DefaultStringNormalizer, GeneralizedTimeNormalizer, NoOpNormalizer, NumericNormalizer, ObjectIdentifierNormalizer, RegexNormalizer, TelephoneNumberNormalizer

public interface Normalizer
extends java.io.Serializable

Converts attribute values to a canonical form.

Version:
$Rev: 798550 $
Author:
Apache Directory Project

Method Summary
 java.lang.String normalize(java.lang.String value)
          Gets the normalized value.
 Value<?> normalize(Value<?> value)
          Gets the normalized value.
 

Method Detail

normalize

Value<?> normalize(Value<?> value)
                   throws javax.naming.NamingException
Gets the normalized value.

Parameters:
value - the value to normalize. It must *not* be null !
Returns:
the normalized form for a value
Throws:
javax.naming.NamingException - if an error results during normalization

normalize

java.lang.String normalize(java.lang.String value)
                           throws javax.naming.NamingException
Gets the normalized value.

Parameters:
value - the value to normalize. It must *not* be null !
Returns:
the normalized form for a value
Throws:
javax.naming.NamingException - if an error results during normalization


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.