public class RegexNormalizer extends Normalizer
serialVersionUID
Constructor and Description |
---|
RegexNormalizer(String oid,
Pattern[] regexes)
Creates a Perl5 regular expression based normalizer.
|
Modifier and Type | Method and Description |
---|---|
String |
normalize(String value)
Gets the normalized value of AssertionValues.
|
String |
normalize(String value,
PrepareString.AssertionType assertionType)
Gets the normalized value of a substring assertion.
|
String |
toString() |
equals, setSchemaManager
copy, getBytecode, getFqcn, hashCode, isValid, setBytecode, setFqcn
addExtension, addExtension, addName, clear, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
public RegexNormalizer(String oid, Pattern[] regexes)
oid
- The MR OID to use for this Normalizerregexes
- the set of regular expressions used to transform valuespublic String normalize(String value)
normalize
in class Normalizer
value
- the value to normalize. It must *not* be null !public String normalize(String value, PrepareString.AssertionType assertionType)
normalize
in class Normalizer
value
- the substring value to normalize. It must *not* be null !assertionType
- The type of assertionpublic String toString()
Normalizer
toString
in class Normalizer
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.