org.apache.directory.shared.ldap.schema
Class DeepTrimNormalizer
java.lang.Object
org.apache.directory.shared.ldap.schema.DeepTrimNormalizer
- All Implemented Interfaces:
- Normalizer
public class DeepTrimNormalizer
- extends 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: 434411 $
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeepTrimNormalizer
public DeepTrimNormalizer()
normalize
public Object normalize(Object value)
throws 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:
NamingException
- if an error results during normalization
Copyright © 2004-2012. All Rights Reserved.