Class TelephoneNumberNormalizer

All Implemented Interfaces:
Serializable, SchemaObject

public class TelephoneNumberNormalizer extends Normalizer
Normalize Telephone Number Strings. We don't process substring differently, as we don't have any significant space in a Telephone Number.
Author:
Apache Directory Project
See Also:
  • Constructor Details

    • TelephoneNumberNormalizer

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

    • 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 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