public class RegexNormalizer extends Normalizer
| Modifier and Type | Field and Description |
|---|---|
private Matcher[] |
matchers
the set of regular expressions used to transform values
|
private Pattern[] |
regexes
the perl 5 regex engine
|
serialVersionUIDdescription, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification| 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, setSchemaManagercopy, getBytecode, getFqcn, hashCode, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, computeHashCode, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlockprivate final Pattern[] regexes
private final transient Matcher[] matchers
public String normalize(String value)
normalize in class Normalizervalue - the value to normalize. It must *not* be null !public String normalize(String value, PrepareString.AssertionType assertionType)
normalize in class Normalizervalue - the substring value to normalize. It must *not* be null !assertionType - The type of assertionpublic String toString()
NormalizertoString in class NormalizerObject.toString()Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.