Class RegexNormalizer

All Implemented Interfaces:
Serializable, SchemaObject

public class RegexNormalizer extends Normalizer
A Normalizer that uses Perl5 based regular expressions to normalize values.
Author:
Apache Directory Project
See Also:
  • Constructor Details

    • RegexNormalizer

      public RegexNormalizer(String oid, Pattern[] regexes)
      Creates a Perl5 regular expression based normalizer.
      Parameters:
      oid - The MR OID to use for this Normalizer
      regexes - the set of regular expressions used to transform values
  • Method Details

    • normalize

      public String normalize(String value)
      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
    • normalize

      public String normalize(String value, PrepareString.AssertionType assertionType)
      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
    • toString

      public String toString()
      Description copied from class: Normalizer
      Overrides:
      toString in class Normalizer
      See Also: