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

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

public class DeepTrimNormalizer
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.

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

Constructor Summary
DeepTrimNormalizer()
           
 
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

DeepTrimNormalizer

public DeepTrimNormalizer()
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.