org.apache.directory.shared.ldap.schema.normalizers
Class DeepTrimToLowerNormalizer
java.lang.Object
org.apache.directory.shared.ldap.schema.AbstractSchemaObject
org.apache.directory.shared.ldap.schema.LoadableSchemaObject
org.apache.directory.shared.ldap.schema.Normalizer
org.apache.directory.shared.ldap.schema.normalizers.DeepTrimToLowerNormalizer
- All Implemented Interfaces:
- Serializable, SchemaObject
public class DeepTrimToLowerNormalizer
- extends 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: 912436 $
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
| Methods inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject |
addExtension, addName, addToRegistries, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setRegistries, setSchemaName, setSpecification |
serialVersionUID
public static final long serialVersionUID
- The serial UID
- See Also:
- Constant Field Values
DeepTrimToLowerNormalizer
public DeepTrimToLowerNormalizer(String oid)
- Creates a new instance of DeepTrimToLowerNormalizer.
- Parameters:
oid - The MR OID to use with this Normalizer
DeepTrimToLowerNormalizer
public DeepTrimToLowerNormalizer()
- Creates a new instance of DeepTrimToLowerNormalizer where the OID is
set after instantiation.
normalize
public Value<?> normalize(Value<?> value)
throws NamingException
- Gets the normalized value.
- Specified by:
normalize in class 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
normalize
public String normalize(String value)
throws NamingException
- Gets the normalized value.
- Specified by:
normalize in class 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-2010 The Apache Software Foundation. All Rights Reserved.