org.apache.directory.shared.ldap.schema
Class DeepTrimToLowerNormalizer

java.lang.Object
  extended byorg.apache.directory.shared.ldap.schema.DeepTrimToLowerNormalizer
All Implemented Interfaces:
Normalizer

public class DeepTrimToLowerNormalizer
extends java.lang.Object
implements Normalizer

Normalizer which trims down whitespace replacing multiple whitespace characters on the edges and within the string with a single space character thereby preserving tokenization order - while doing all this in the same pass it lower cases all characters.

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

Constructor Summary
DeepTrimToLowerNormalizer()
           
 
Method Summary
 java.lang.Object normalize(java.lang.Object value)
          Gets the normalized value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeepTrimToLowerNormalizer

public DeepTrimToLowerNormalizer()
Method Detail

normalize

public java.lang.Object normalize(java.lang.Object value)
                           throws javax.naming.NamingException
Description copied from interface: Normalizer
Gets the normalized value.

Specified by:
normalize in interface Normalizer
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 © 2003-2006 . All Rights Reserved.