Class NumericNormalizer

All Implemented Interfaces:
Serializable, PreparedNormalizer, SchemaObject

public class NumericNormalizer extends Normalizer implements PreparedNormalizer
Normalize Numeric Strings
Author:
Apache Directory Project
See Also:
  • Constructor Details

    • NumericNormalizer

      public NumericNormalizer()
      Creates a new instance of NumericNormalizer.
  • Method Details

    • normalize

      public Value normalize(Value value) throws LdapException
      Normalize a Value
      Parameters:
      value - The value to normalize
      Returns:
      The normalized value
      Throws:
      LdapException - If teh value cannot be normalized or is invalid
    • normalize

      public String normalize(String value) throws LdapException
      Gets the normalized value of AssertionValues.
      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:
      LdapException - if an error results during normalization
    • normalize

      public String normalize(String value, PrepareString.AssertionType assertionType) throws LdapException
      Gets the normalized value of a substring assertion.
      Specified by:
      normalize in interface PreparedNormalizer
      Specified by:
      normalize in class Normalizer
      Parameters:
      value - the substring value to normalize. It must *not* be null !
      assertionType - The type of assertion
      Returns:
      the normalized form for a value
      Throws:
      LdapException - if an error results during normalization