org.apache.directory.shared.ldap.schema
Class DeepTrimToLowerNormalizer
java.lang.Object
org.apache.directory.shared.ldap.schema.DeepTrimToLowerNormalizer
- All Implemented Interfaces:
- Normalizer
public class DeepTrimToLowerNormalizer
- 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 - while doing all this in the same pass
it lower cases all characters.
- 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 |
DeepTrimToLowerNormalizer
public DeepTrimToLowerNormalizer()
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.