Class RegexNormalizer

    • Constructor Detail

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

      • 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